show admin/staff permission

This commit is contained in:
Your Name 2024-04-07 20:31:54 -04:00 committed by Henri Dickson
parent 99790c5995
commit 5ef23d60be
2 changed files with 27 additions and 10 deletions

View file

@ -77,7 +77,9 @@
{% include 'users/profile_actions.html' %}
{% endif %}
</span>
<p>{{ identity.summary|bleach:"a,p,span,br" }}</p>
<p>
{{ identity.summary|bleach:"a,p,span,br"|default:"<br>" }}
</p>
</details>
</article>
</section>

View file

@ -32,15 +32,30 @@
<i class="fa-solid fa-circle-nodes"></i>
</a>
</span>
{% elif identity.user and identity.user.mastodon_account %}
<span>
<a href="{{ identity.user.mastodon_account.url }}"
target="_blank"
rel="noopener"
title="@{{ identity.user.mastodon_acct }}">
<i class="fa-brands fa-mastodon"></i>
</a>
</span>
{% else %}
{% if identity.user.is_superuser %}
<span>
<a title="admin">
<i class="fa-solid fa-user-astronaut"></i>
</a>
</span>
{% elif identity.user.is_staff %}
<span>
<a title="staff">
<i class="fa-solid fa-hat-wizard"></i>
</a>
</span>
{% endif %}
{% if identity.user and identity.user.mastodon_account %}
<span>
<a href="{{ identity.user.mastodon_account.url }}"
target="_blank"
rel="noopener"
title="@{{ identity.user.mastodon_acct }}">
<i class="fa-brands fa-mastodon"></i>
</a>
</span>
{% endif %}
{% endif %}
{% if relationship.requested %}
<span>