Skip to content

Commit

Permalink
Link to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
norm committed Aug 9, 2021
1 parent b2a1dd2 commit a80d2a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/panel.html
Expand Up @@ -2,7 +2,12 @@

{% block content %}

<p>Logged in as: <em>{{request.user}}</em></p>
<p>
Logged in as: <em>{{request.user}}</em>
{% if request.user.is_superuser %}
<a href='{% url "admin:index" %}'>admin</a>
{% endif %}
</p>
<form method='post' action='{% url "logout" %}'>
{% csrf_token %}
<input type='submit' value='Logout'>
Expand Down

0 comments on commit a80d2a2

Please sign in to comment.