album/templates/photo_link.rs.html

8 lines
365 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)
2019-05-18 23:43:58 +04:00
<div class="item@if photo.is_portrait() { portrait}">@if let Some(ref title) = photo.title {<h2>@title</h2>}
<a href="@photo.href"><img src="/img/@photo.id-s.jpg" width="@photo.size.0" height="@photo.size.1" 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>