-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% load i18n static %} | ||
|
||
{% if has_permission %} | ||
<div id="user-tools"> | ||
{% block welcome-msg %} | ||
<span class="text-uppercase text-white"> | ||
Welcome, | ||
<span class="fw-bold">{% firstof user.get_short_name user.get_username %}</span>. | ||
</span> | ||
{% endblock welcome-msg %} | ||
{% block userlinks %} | ||
{% if user.is_active and user.is_staff %} | ||
{% url 'django-admindocs-docroot' as docsroot %} | ||
{% if docsroot %}<a href="{{ docsroot }}">Documentation</a> /{% endif %} | ||
{% endif %} | ||
{% if user.has_usable_password %} | ||
<a href="{% url 'admin:password_change' %}">Change password</a> / | ||
{% endif %} | ||
<img class="icon" width="15" height="15" src="{% static "img/icon/box-arrow-right.svg" %}" alt="" /> | ||
<form id="logout-form" method="post" action="{% url 'admin:logout' %}"> | ||
{% csrf_token %} | ||
<button type="submit" class="border-0">Log out</button> | ||
</form> | ||
{% endblock userlinks %} | ||
</div> | ||
{% endif %} |