album/templates/place.rs.html
2023-01-28 12:51:34 +01:00

11 lines
420 B
HTML

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