add edit links
This commit is contained in:
parent
595cb8bde9
commit
5523475988
1 changed files with 10 additions and 0 deletions
|
@ -5,6 +5,11 @@
|
|||
<div class="intro">
|
||||
{{ intro.body | safe }}
|
||||
</div>
|
||||
{% if request.user.is_staff %}
|
||||
<div class="menu">
|
||||
[<a href="admin/page/page/{{ intro.id }}/change/">edit</a>]
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="events">
|
||||
{% for event in events %}
|
||||
<div class="event" {% if event.date %}data-date="{{ event.date }}"{% endif %} id="{{ event.slug }}">
|
||||
|
@ -35,5 +40,10 @@
|
|||
<div class="postscript">
|
||||
{{ postscript.body | safe }}
|
||||
</div>
|
||||
{% if request.user.is_staff %}
|
||||
<div class="menu">
|
||||
[<a href="admin/page/page/{{ postscript.id }}/change/">edit</a>]
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue