event-timeline/app/templates/index.html
2021-11-12 16:51:24 +00:00

25 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 %}