2016-09-23 23:03:04 +03:00
|
|
|
@use rphotos::models::{Photo, Place};
|
2016-09-26 01:45:13 +03:00
|
|
|
@use templates::page_base;
|
2016-09-23 23:03:04 +03:00
|
|
|
|
|
|
|
@(user: Option<String>, photos: Vec<Photo>, place: Place)
|
2016-09-26 01:45:13 +03:00
|
|
|
@:page_base(&format!("Photos from {}", place.place_name), vec![], user, {
|
|
|
|
<div class="group">
|
2016-09-23 23:03:04 +03:00
|
|
|
@for p in photos {
|
|
|
|
<p class="item"><a href="/details/@p.id"><img src="/img/@p.id/s"></a></p>
|
|
|
|
}
|
2016-09-26 01:45:13 +03:00
|
|
|
</div>
|
|
|
|
})
|