2016-09-26 01:45:13 +03:00
|
|
|
@use ::Link;
|
2018-02-07 23:56:23 +04:00
|
|
|
@use models::Coord;
|
2017-08-03 21:59:21 +04:00
|
|
|
@use nickel::Request;
|
2017-11-20 18:10:42 +04:00
|
|
|
@use server::PhotoLink;
|
2018-02-07 23:56:23 +04:00
|
|
|
@use templates::{data_positions, page_base, photo_link};
|
2016-09-23 17:40:54 +03:00
|
|
|
|
2018-02-07 23:56:23 +04:00
|
|
|
@(req: &Request, title: &str, lpath: &[Link], photos: &[PhotoLink], coords: &[Coord])
|
2016-09-23 17:40:54 +03:00
|
|
|
|
2017-08-03 21:59:21 +04:00
|
|
|
@:page_base(req, title, lpath, {
|
2018-02-07 23:56:23 +04:00
|
|
|
<div class="group"@:data_positions(coords)>
|
2017-11-20 18:10:42 +04:00
|
|
|
@for p in photos {@:photo_link(p)}
|
2016-09-26 01:45:13 +03:00
|
|
|
</div>
|
|
|
|
})
|