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">
|
<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 %}
|
||||||
|
|
Loading…
Reference in a new issue