Edit Category Link
Add Edit Category link for staff members
{{ category.description|default:""|striptags }}
{% endblock %}
-{% block headertext %}{{ category.name }}{% endblock %}
+{% block header%}
+ <div class="page-header action">
+ {% if user.is_authenticated and user.is_staff %}
+ <a class="pull-right hidden-xs" href="{% url 'dashboard:catalogue-category-update' pk=category.id %}"><small><i class="icon-edit"></i> {% trans "Edit this category" %}</small></a>
+ {% endif %}
+ <h1>{% block headertext %}{{ category.name }}{% endblock %}</h1>
+ </div>
+{% endblock %}
{% block breadcrumbs %}
<ul class="breadcrumb">
