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
365 B
HTML
12 lines
365 B
HTML
@use super::{data_positions, page_base, photo_link};
|
|
@use crate::models::Coord;
|
|
@use crate::server::{Context, Link, PhotoLink};
|
|
|
|
@(context: &Context, title: &str, lpath: &[Link], photos: &[PhotoLink], coords: &[(Coord, i32)])
|
|
|
|
@:page_base(context, title, lpath, {}, {
|
|
<div class="group"@:data_positions(coords)>
|
|
@for p in photos {@:photo_link(p)}
|
|
</div>
|
|
})
|