album/templates/photo_link.rs.html

8 lines
344 B
HTML
Raw Normal View History

2018-11-01 02:08:29 +04:00
@use crate::server::PhotoLink;
2017-11-20 01:01:17 +04:00
@(photo: &PhotoLink)
<div class="item">@if let Some(ref title) = photo.title {<h2>@title</h2>}
<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>}
</div>