Photo details
@if context.is_authorized() {
@if photo.is_public() {
This photo is public.
} else {This photo is not public.
} } @if let Some(g) = photo.grade {Grade: @g
} @if let Some(d) = photo.date {Time: @d.format("%F %T")
} @if !photo.people.is_empty() {People: @for p in &photo.people {@p.person_name, }
} @if !photo.tags.is_empty() {Tags: @for t in &photo.tags {@t.tag_name, }
} @if !photo.places.is_empty() {Places: @for p in &photo.places {@p.place_name, }
} @if let Some(ref pos) = photo.pos {Position: @pos.x @pos.y
} @if let Some(ref a) = photo.attribution {Av: @a
} @if let Some(ref c) = photo.camera {Camera: @c.model (@c.manufacturer)
}