album/templates/tag.rs.html

13 lines
365 B
HTML
Raw Normal View History

@use nickel::Request;
2018-02-07 23:56:23 +04:00
@use models::{Coord, Tag};
@use server::PhotoLink;
2018-02-07 23:56:23 +04:00
@use templates::{data_positions, page_base, photo_link};
2016-09-23 23:03:04 +03:00
2018-02-07 23:56:23 +04:00
@(req: &Request, photos: &[PhotoLink], coords: &[Coord], tag: &Tag)
2017-02-05 15:08:38 +04:00
@:page_base(req, &format!("Photos tagged {}", tag.tag_name), &[], {
2018-02-07 23:56:23 +04:00
<div class="group"@:data_positions(coords)>
@for p in photos {@:photo_link(p)}
2016-09-26 01:45:13 +03:00
</div>
})