structables/templates/contests.html

40 lines
1.2 KiB
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>{{ title }}</h1>
{{ contest_count|safe }}
2023-06-01 21:25:13 +00:00
<br>
<div class="contest-list">
{% for contest in contests %}
2023-06-01 21:25:13 +00:00
<div class="contest-list-item">
<a href="{{ contest.link }}">
<img src="{{ contest.img }}" alt="{{ contest.alt }}" style="max-width:500px;">
2023-06-01 21:25:13 +00:00
</a>
<p>Closes {{ contest.deadline }}</p>
<p class="ible-small">{{ contest.prizes }} Prizes, {{ contest.entries }} Entries</p>
2023-06-01 21:25:13 +00:00
</div>
{% endfor %}
</div>
<div class="closed-contests" id="contest-winners">
<h2>Winner's Circle</h2>
{% for closed in closed %}
2023-06-01 21:25:13 +00:00
<div class="closed-contest">
<a href="{{ closed.link }}"><img class="closed-contest-contest" src="{{ closed.img }}"
alt="{{ closed.alt }}"></a>
{% for featured_items in closed.featured_items %}
2023-06-01 21:25:13 +00:00
<div class="closed-contest-winner">
<a href="{{ featured_items.link }}">
<img class="closed-contest-winner-img" src="{{ featured_items.img }}"
alt="{{ featured_items.title}}">
2023-06-01 21:25:13 +00:00
<br>
<b>{{ featured_items.title }}</b>
2023-06-01 21:25:13 +00:00
</a>
<p>by <a href="{{ featured_items.author_link }}">{{ featured_items.author }}</a></p>
2023-06-01 21:25:13 +00:00
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</center>
{% endblock %}