structables/templates/archives.html

31 lines
671 B
HTML
Raw Normal View History

{% extends "base.html" %}
2023-06-01 21:25:13 +00:00
{% block content %}
2023-06-01 21:25:13 +00:00
<center>
<h1>Past Contests</h1>
<p>{{ contest_count }}</p>
2023-06-01 21:25:13 +00:00
<p><a href="/contest/">See running contests</a></p>
</center>
{% for year in contest_list %}
2023-06-01 21:25:13 +00:00
<div class="archive-year">
<hr>
<h2>{{ year[0] }}</h2>
<hr>
{% for month in year[1] %}
<div class="archive-month-wrapper">
<div class="archive-month">
<h3>{{ month[0] }}</h3>
{% for contest in month[1] %}
<div class="archive">
<p>{{ contest[0] }}<a href="{{ contest[1] }}">{{ contest[2] }}</a></p>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
<br>
</div>
{% endfor %}
<hr>
{{ pagination|safe }}
{% endblock %}