Tell a logged in user if a photo is public or not.
This commit is contained in:
parent
24a6783c4b
commit
60807405bb
@ -7,7 +7,11 @@
|
|||||||
<div class="details">
|
<div class="details">
|
||||||
<div class="item"><img src="/img/@photo.id-m.jpg"></div>
|
<div class="item"><img src="/img/@photo.id-m.jpg"></div>
|
||||||
<div class="meta">
|
<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(g) = photo.grade {<p>Betyg: @g</p>}
|
||||||
@if let Some(d) = photo.date{<p>Tid: @d.format("%F %T")</p>}
|
@if let Some(d) = photo.date{<p>Tid: @d.format("%F %T")</p>}
|
||||||
@if !people.is_empty() {
|
@if !people.is_empty() {
|
||||||
|
Loading…
Reference in New Issue
Block a user