album/templates/index.rs.html
2018-07-19 21:17:00 +02:00

13 lines
356 B
HTML

@use models::Coord;
@use nickel::Request;
@use server::{Link, PhotoLink};
@use templates::{data_positions, page_base, photo_link};
@(req: &Request, title: &str, lpath: &[Link], photos: &[PhotoLink], coords: &[(Coord, i32)])
@:page_base(req, title, lpath, {
<div class="group"@:data_positions(coords)>
@for p in photos {@:photo_link(p)}
</div>
})