Add admin link to tools dropdown menu

At the moment the only way to get to the index is to manually type in
the URL, which is a little inconvenent. Add a link to the Tools
drop-down (visible only for users with admin access) that will take you
to it for convenience.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-09-11 13:37:36 +12:00
parent 517424dc81
commit c7c6cf9ea6

View File

@ -84,6 +84,9 @@
{% if rrs_enabled %} {% if rrs_enabled %}
<li><a href="{% url 'rrs_frontpage' %}">Recipe Maintenance</a></li> <li><a href="{% url 'rrs_frontpage' %}">Recipe Maintenance</a></li>
{% endif %} {% endif %}
{% if user.is_staff %}
<li><a href="{% url 'admin:index' %}">Admin</a></li>
{% endif %}
</ul> </ul>
</li> </li>
{% endif %} {% endif %}