album/templates/tag.rs.html
2018-07-19 21:17:00 +02:00

13 lines
372 B
HTML

@use nickel::Request;
@use models::{Coord, Tag};
@use server::PhotoLink;
@use templates::{data_positions, page_base, photo_link};
@(req: &Request, photos: &[PhotoLink], coords: &[(Coord, i32)], tag: &Tag)
@:page_base(req, &format!("Photos tagged {}", tag.tag_name), &[], {
<div class="group"@:data_positions(coords)>
@for p in photos {@:photo_link(p)}
</div>
})