album/templates/tag.rs.html
Rasmus Kaj 5c03a28f59 Use warp instead of nickel.
Use the modern async warp web framework instead of nickel (which is
starting to feel a bit stale).

Url routing and context passing is changed a lot.
2019-04-22 16:08:19 +02:00

12 lines
383 B
HTML

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