only show admin tools when logged in

This commit is contained in:
Kibi Kelburton 2022-05-18 13:57:48 +02:00
parent 44ca53a050
commit e159776e9b

View File

@ -4,10 +4,12 @@
<div class="gapLeft">
<span class="populateME"><b><i>f0ck</i></b> - {{ item.id }}</span>
</div>
@if(session)
<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_delete"><use href="/s/img/iconset.svg#cross"></use></svg>
</div>
@endif
</div>
<div class="content">
<div class="next-post">