26 lines
784 B
HTML
26 lines
784 B
HTML
|
{% extends "base.html" %}
|
||
|
{% block title %}
|
||
|
{% endblock title %}
|
||
|
{% block main %}
|
||
|
<div class="index">
|
||
|
<div class="intro">
|
||
|
{{ intro.body | safe }}
|
||
|
</div>
|
||
|
<div class="events">
|
||
|
{% for event in events %}
|
||
|
<div class="event" {% if event.date %}data-date="{{ event.date }}"{% endif %} id="{{ event.slug }}">
|
||
|
{% if request.user.is_staff %}
|
||
|
[<a href="admin/event/event/{{ event.id }}/change/">edit</a>]
|
||
|
{% endif %}
|
||
|
<h2 class="{{ event.type }}">{{ event.title | safe }}</h2>
|
||
|
<div class="date">{{ event.date }}</div>
|
||
|
{{ event.body | safe }}
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
<div class="postscript">
|
||
|
{{ postscript.body | safe }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endblock %}
|