Skip to content

Commit 8cb67d9

Browse files
committed
Add a site administration link if users are allowed to access it
1 parent 7507bb2 commit 8cb67d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/templates/projects/projects.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ <h2>{% translate 'Account' %}</h2>
3434
{% if request.user.has_usable_password %}
3535
<a class="button" href="{% url 'password_change' %}">{% translate 'Change password' %}</a>
3636
{% endif %}
37+
{% if request.user.is_staff %}
38+
<a class="button" href="{% url 'admin:index' %}">{% translate 'Site administration' %}</a>
39+
{% endif %}
3740
</form>
3841

3942
{% endblock %}

0 commit comments

Comments
 (0)