mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 09:46:32 +01:00
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:
parent
d2f410ee26
commit
ac4e900703
1 changed files with 8 additions and 1 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue