2018-11-01 02:08:29 +04:00
|
|
|
@use crate::server::PhotoLink;
|
2017-11-20 01:01:17 +04:00
|
|
|
|
|
|
|
@(photo: &PhotoLink)
|
2018-03-03 17:30:27 +04:00
|
|
|
<div class="item">@if let Some(ref title) = photo.title {<h2>@title</h2>}
|
2018-04-08 04:37:02 +04:00
|
|
|
<a href="@photo.href"><img src="/img/@photo.id-s.jpg" @if let Some((w, h)) = photo.size {width="@w" height="@h"} alt="Photo @photo.id"></a>
|
2017-12-17 18:52:25 +04:00
|
|
|
@if let Some(ref d) = photo.lable {<span class="lable">@d</span>}
|
2018-03-03 17:30:27 +04:00
|
|
|
</div>
|