Tell a logged in user if a photo is public or not.

This commit is contained in:
Rasmus Kaj 2017-07-30 17:51:19 +02:00
parent 24a6783c4b
commit 60807405bb

View File

@ -7,7 +7,11 @@
<div class="details">
<div class="item"><img src="/img/@photo.id-m.jpg"></div>
<div class="meta">
@if user.is_some() {<p><a href="/img/@photo.id-l.jpg">@photo.path</a></p>}
@if user.is_some() {
<p><a href="/img/@photo.id-l.jpg">@photo.path</a></p>
@if photo.is_public() {<p>This photo is public.</p>}
else {<p>This photo is not public.</p>}
}
@if let Some(g) = photo.grade {<p>Betyg: @g</p>}
@if let Some(d) = photo.date{<p>Tid: @d.format("%F %T")</p>}
@if !people.is_empty() {