album/templates/tag.rs.html
2023-01-28 12:51:34 +01:00

12 lines
413 B
HTML

@use super::{data_positions_html, page_base_html, photo_link_html};
@use crate::models::{Coord, Tag};
@use crate::server::{Context, PhotoLink};
@(context: &Context, photos: &[PhotoLink], coords: &[(Coord, i32)], tag: &Tag)
@:page_base_html(context, &format!("Photos tagged {}", tag.tag_name), &[], {}, {
<div class="group"@:data_positions_html(coords)>
@for p in photos {@:photo_link_html(p)}
</div>
})