@use ::{Coord, Link}; @use rphotos::models::{Photo, Person, Place, Tag, Camera}; @use templates::page_base; @(lpath: Vec, user: Option, people: Vec, places: Vec, tags: Vec, position: Option, camera: Option, time: String, photo: Photo) @:page_base("Photo details", lpath, user, {

@photo.path

@if let Some(ref pos) = position {
} @if let Some(g) = photo.grade {

Betyg: @g

}

Tid: @time

People: @for p in people{@p.person_name, }

Places: @for p in places{@p.place_name, }

Tags: @for t in tags{@t.tag_name, }

@if let Some(ref pos) = position {

Position: @pos.x @pos.y

} @if let Some(ref c) = camera{

Camera: @c.model (@c.manufacturer)

} })