2017-11-20 01:01:17 +04:00
|
|
|
@use server::PhotoLink;
|
|
|
|
|
|
|
|
@(photo: &PhotoLink)
|
2018-03-03 17:30:27 +04:00
|
|
|
<div class="item">@if let Some(ref title) = photo.title {<h2>@title</h2>}
|
2018-03-05 03:29:36 +04:00
|
|
|
<a href="@photo.href"><img src="/img/@photo.id-s.jpg" @if let Some(s) = photo.size {width="@s.0" height="@s.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>}
|
2018-03-03 17:30:27 +04:00
|
|
|
</div>
|