album/templates/place.rs.html
2018-02-07 20:56:23 +01:00

12 lines
372 B
HTML

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