diff options
Diffstat (limited to 'alphabetlearning/templates/resources')
-rw-r--r-- | alphabetlearning/templates/resources/admin_bar.html | 29 | ||||
-rw-r--r-- | alphabetlearning/templates/resources/resource_list.html | 6 |
2 files changed, 10 insertions, 25 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 %} diff --git a/alphabetlearning/templates/resources/resource_list.html b/alphabetlearning/templates/resources/resource_list.html index bb32d90..a6e2a5d 100644 --- a/alphabetlearning/templates/resources/resource_list.html +++ b/alphabetlearning/templates/resources/resource_list.html @@ -6,7 +6,7 @@ Alphabet Learning - Resource List {% endblock title %} {% block content %} <div class="container"> - <div> + <div class="admin-box"> {% include "resources/admin_bar.html" %} </div> @@ -35,9 +35,7 @@ Alphabet Learning - Resource List {# standard resources #} <div> - <div> - <h1>Standard resources</h1> - </div> + <h1>Standard resources</h1> </div> <!-- Tabbed navigation bar for filtering --> |