added admin panel access on the account page for admins

This commit is contained in:
Artemis 2025-02-09 16:59:04 +01:00
parent 77f231c913
commit b1fc5edc6e

View file

@ -5,6 +5,9 @@
<p class="subnav">
<a href="/account/new_tag">New tag</a>
<a href="/account/settings">Account settings</a>
{% if user.is_admin %}
<a href="/admin">Admin panel</a>
{% endif %}
<a href="/logout">Log out</a>
</p>
</aside>
@ -39,7 +42,8 @@
<summary>show the QR code</summary>
<picture class="block">
<img loading="lazy" src="/account/qr-png/{{profile.id}}" alt="A QrCode containing a direct link to the profile" />
<img loading="lazy" src="/account/qr-png/{{profile.id}}"
alt="A QrCode containing a direct link to the profile" />
</picture>
</details>
</article>