event timeline

This commit is contained in:
j 2021-11-12 16:49:35 +00:00
commit fc1a929428
53 changed files with 806 additions and 0 deletions

19
app/templates/base.html Normal file
View file

@ -0,0 +1,19 @@
<!doctype html>{% load sass_tags static %}
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>
{% block title %}
{% endblock title %}
</title>
<link href="{% sass_src 'css/style.scss' %}" rel="stylesheet" type="text/css">
{% block head %}{% endblock head %}
</head>
<body class="{% block body_class%}{% endblock %}">
<main>
{% block main %}{% endblock main %}
</main>
{% block end %}{% endblock end %}
</body>
</html>

25
app/templates/index.html Normal file
View file

@ -0,0 +1,25 @@
{% 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 %}