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.
11 lines
395 B
HTML
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>
|
|
})
|