diff options
Diffstat (limited to '')
-rw-r--r-- | alphabetlearning/templates/resources/admin_bar.html | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/alphabetlearning/templates/resources/admin_bar.html b/alphabetlearning/templates/resources/admin_bar.html index be49e65..6d7b4b6 100644 --- a/alphabetlearning/templates/resources/admin_bar.html +++ b/alphabetlearning/templates/resources/admin_bar.html @@ -1,21 +1,8 @@ - {# admin block #} - {% if request.user.is_authenticated and request.user.is_staff %} - <div> - <h5>Admin bar</h5> - <p> - Only you will see this bar - normal users will not see it. It allows us to - include buttons for adding new resources, etc. - </p> - <div> - <a href="{% url 'resources:create_resource' %}">Add a new resource</a> - <div> - Logged in as - <strong>{{ request.user.email }}</strong> - </div> - <form action="{% url 'account_logout' %}" method="post" class="my-2"> - {% csrf_token %} - <button type="submit">Log out</button> - </form> - </div> - </div> - {% endif %} +{# admin block #} +{% if request.user.is_authenticated and request.user.is_staff %} +<h1>Admin</h1> +<p> (this is not visible to customers!)</p> +<div> + <a href="{% url 'resources:create_resource' %}">Add a new resource</a> +</div> +{% endif %} |