album/templates/person.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

11 lines
395 B
HTML

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