album/templates/place.rs.html

11 lines
390 B
HTML
Raw Normal View History

2018-11-01 02:08:29 +04:00
@use crate::models::{Coord, Place};
@use crate::server::{Context, PhotoLink};
2018-11-01 02:08:29 +04:00
@use super::{data_positions, page_base, photo_link};
2016-09-23 23:03:04 +03:00
@(context: &Context, photos: &[PhotoLink], coords: &[(Coord, i32)], place: &Place)
@:page_base(context, &format!("Photos from {}", place.place_name), &[], {}, {
2018-02-07 23:56:23 +04:00
<div class="group"@:data_positions(coords)>
@for p in photos {@:photo_link(p)}
2016-09-26 01:45:13 +03:00
</div>
})