comparison gpp/templates/contests/contest_list.html @ 540:51fa1e0ca218

For #243, create a contests application.
author Brian Neal <bgneal@gmail.com>
date Mon, 09 Jan 2012 01:13:08 +0000
parents
children 0a8e6a9ccf53
comparison
equal deleted inserted replaced
539:2f0a372c92b4 540:51fa1e0ca218
1 {% extends 'base.html' %}
2 {% block title %}Contests{% endblock %}
3 {% block content %}
4 <h2>Contests</h2>
5 <p>From time to time, SurfGuitar101.com may hold drawings and contests. This page lists
6 the current and past contests on the site.</p>
7 {% if object_list %}
8 <ul>
9 {% for contest in contests %}
10 <li><a href="{{ contest.get_absolute_url }}">{{ contest.title }}</a> -
11 {{ contest.creation_date|date:"F d, Y" }} to {{ contest.end_date|date:"F d, Y" }}
12 {% if contest.is_active %}<img src="{{ STATIC_URL }}icons/new.png" alt="New" />{% else %}<img src="{{ STATIC_URL }}icons/lock.png" alt="Old" />{% endif %}
13 </li>
14 {% endfor %}
15 </ul>
16 {% else %}
17 <p>No contests at this time.</p>
18 {% endif %}
19 {% endblock %}