add edit links

This commit is contained in:
j 2022-03-18 15:56:06 +00:00
parent 595cb8bde9
commit 5523475988

View file

@ -5,6 +5,11 @@
<div class="intro"> <div class="intro">
{{ intro.body | safe }} {{ intro.body | safe }}
</div> </div>
{% if request.user.is_staff %}
<div class="menu">
[<a href="admin/page/page/{{ intro.id }}/change/">edit</a>]
</div>
{% endif %}
<div class="events"> <div class="events">
{% for event in events %} {% for event in events %}
<div class="event" {% if event.date %}data-date="{{ event.date }}"{% endif %} id="{{ event.slug }}"> <div class="event" {% if event.date %}data-date="{{ event.date }}"{% endif %} id="{{ event.slug }}">
@ -35,5 +40,10 @@
<div class="postscript"> <div class="postscript">
{{ postscript.body | safe }} {{ postscript.body | safe }}
</div> </div>
{% if request.user.is_staff %}
<div class="menu">
[<a href="admin/page/page/{{ postscript.id }}/change/">edit</a>]
</div>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}