into/postscript => about/imprint
This commit is contained in:
parent
2170a219f5
commit
108aa4a710
2 changed files with 8 additions and 7 deletions
|
@ -11,7 +11,8 @@ def events(request, slug=''):
|
|||
context = {}
|
||||
context['settings'] = settings
|
||||
context['events'] = Event.objects.all().order_by('position')
|
||||
context['intro'], c = Page.objects.get_or_create(slug='intro')
|
||||
context['about'], c = Page.objects.get_or_create(slug='about')
|
||||
context['imprint'], c = Page.objects.get_or_create(slug='imprint')
|
||||
return render(request, 'events.html', context)
|
||||
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
{% block title %}{{ settings.title }}{% endblock title %}
|
||||
{% block main %}
|
||||
<div class="index">
|
||||
<div class="intro">
|
||||
{{ intro.body | safe }}
|
||||
<div class="about">
|
||||
{{ about.body | safe }}
|
||||
</div>
|
||||
{% if request.user.is_staff %}
|
||||
<div class="menu">
|
||||
[<a href="admin/page/page/{{ intro.id }}/change/">edit</a>]
|
||||
[<a href="admin/page/page/{{ about.id }}/change/">edit</a>]
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="events">
|
||||
|
@ -37,12 +37,12 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="postscript">
|
||||
{{ postscript.body | safe }}
|
||||
<div class="imprint">
|
||||
{{ imprint.body | safe }}
|
||||
</div>
|
||||
{% if request.user.is_staff %}
|
||||
<div class="menu">
|
||||
[<a href="admin/page/page/{{ postscript.id }}/change/">edit</a>]
|
||||
[<a href="admin/page/page/{{ imprint.id }}/change/">edit</a>]
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue