5c03a28f59
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.
12 lines
383 B
HTML
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>
|
|
})
|