Init repository
This commit is contained in:
43
templates/index.html
Normal file
43
templates/index.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Upcoming Chaos Events</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1>Chaos Events</h1>
|
||||
<div>
|
||||
<a href="/chaosevents.ics">Add to calendar</a> | <a href="mailto:chaosevents@clerie.de"> Event missing?</a>
|
||||
</div>
|
||||
</header>
|
||||
{% if currentevents %}
|
||||
<section>
|
||||
<h2>Current</h2>
|
||||
</section>
|
||||
{% for event in currentevents %}
|
||||
<section>
|
||||
<h3>{{ event.name }} <span class="date">{{ event.begin.format("YYYY-MM-DD") }} - {{ event.end.shift(seconds=-1).format("YYYY-MM-DD") }}</span></h3>
|
||||
<div class="description">
|
||||
{{ event.description_rendered|safe }}
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<section>
|
||||
<h2>Upcoming</h2>
|
||||
</section>
|
||||
{% for event in upcomingevents %}
|
||||
<section>
|
||||
<h3>{{ event.name }} <span class="date">{{ event.begin.format("YYYY-MM-DD") }} - {{ event.end.shift(seconds=-1).format("YYYY-MM-DD") }}</span></h3>
|
||||
<div class="description">
|
||||
{{ event.description_rendered|safe }}
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
<footer>
|
||||
<a href="https://legal.clerie.de/impressum">Imprint</a> | <a href="https://legal.clerie.de/datenschutz">Privacy</a>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
Reference in New Issue
Block a user