edit link

Provided an edit link if the help entry can be edited on the website and the user is staff.
This commit is contained in:
davewiththenicehat 2021-06-19 18:13:13 -04:00
parent d2f410ee26
commit ac4e900703

View file

@ -40,7 +40,14 @@
<h5><a id="{{ web_help_category.grouper }}"></a>{{ web_help_category.grouper|title }}</h5>
<ul>
{% for object in web_help_category.list %}
<li><a href="{{ object.web_get_detail_url }}">{{ object|title }}</a></li>
<li>
<a href="{{ object.web_get_detail_url }}">{{ object|title }}</a>
{% if object.web_get_update_url %}
{% if user.is_staff %}
<a href="{% url "admin:help_helpentry_changelist" %}">-edit-</a>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}