Skip to content

Commit

Permalink
ux: easy access to admin, Closes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi-De committed Nov 10, 2023
1 parent a76866f commit dbeedcf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions leerming/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@
{% heroicon_outline "user-circle" class="flex-none" width="16" height="16" %}
{% trans "Profile & Préférences" %}
</a>
{% if user.is_superuser %}
<a
class="flex items-center gap-x-3.5 py-2 px-3 rounded-md text-sm text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300"
href="{% url 'admin:index' %}">
{% heroicon_outline "user-plus" class="flex-none" width="16" height="16" %}
{% trans "Admin" %}
</a>
{% endif %}
<a
class="flex items-center gap-x-3.5 py-2 px-3 rounded-md text-sm text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300"
href="{% url "account_logout" %}">
Expand Down

0 comments on commit dbeedcf

Please sign in to comment.