only show admin tools when logged in

This commit is contained in:
Kibi Kelburton 2022-05-18 13:57:48 +02:00 committed by schrumpel
parent 81f4817f03
commit 45792787ba

View File

@ -4,10 +4,12 @@
<div class="gapLeft"> <div class="gapLeft">
<span class="populateME"><b><i>f0ck</i></b> - {{ item.id }}</span> <span class="populateME"><b><i>f0ck</i></b> - {{ item.id }}</span>
</div> </div>
@if(session)
<div class="gapRight"> <div class="gapRight">
<svg class="iconset" id="a_favo"><use href="/s/img/iconset.svg#heart_{{ Object.values(item.favorites).filter(u => u.user == session.user)[0] ? 'solid' : 'regular' }}"></use></svg> <svg class="iconset" id="a_favo"><use href="/s/img/iconset.svg#heart_{{ Object.values(item.favorites).filter(u => u.user == session.user)[0] ? 'solid' : 'regular' }}"></use></svg>
<svg class="iconset" id="a_delete"><use href="/s/img/iconset.svg#cross"></use></svg> <svg class="iconset" id="a_delete"><use href="/s/img/iconset.svg#cross"></use></svg>
</div> </div>
@endif
</div> </div>
<div class="content"> <div class="content">
<div class="next-post"> <div class="next-post">