album/templates/place.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
390 B
HTML

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