annotate gpp/templates/contests/contest_list.html @ 571:c2ba9c3395da

For Django 1.4, add a require_debug_false logging filter.
author Brian Neal <bgneal@gmail.com>
date Wed, 02 May 2012 20:43:16 -0500
parents 0a8e6a9ccf53
children
rev   line source
bgneal@540 1 {% extends 'base.html' %}
bgneal@567 2 {% load bio_tags %}
bgneal@540 3 {% block title %}Contests{% endblock %}
bgneal@540 4 {% block content %}
bgneal@540 5 <h2>Contests</h2>
bgneal@540 6 <p>From time to time, SurfGuitar101.com may hold drawings and contests. This page lists
bgneal@540 7 the current and past contests on the site.</p>
bgneal@540 8 {% if object_list %}
bgneal@540 9 <ul>
bgneal@540 10 {% for contest in contests %}
bgneal@540 11 <li><a href="{{ contest.get_absolute_url }}">{{ contest.title }}</a> -
bgneal@540 12 {{ contest.creation_date|date:"F d, Y" }} to {{ contest.end_date|date:"F d, Y" }}
bgneal@567 13 {% if contest.is_active %}
bgneal@567 14 <img src="{{ STATIC_URL }}icons/new.png" alt="New" />
bgneal@567 15 {% else %}
bgneal@567 16 {% if contest.winner %}
bgneal@567 17 <img src="{{ STATIC_URL }}icons/rosette.png" alt="Winner" /> {% profile_link contest.winner.username %}
bgneal@567 18 {% else %}
bgneal@567 19 <img src="{{ STATIC_URL }}icons/lock.png" alt="Old" />
bgneal@567 20 {% endif %}
bgneal@567 21 {% endif %}
bgneal@540 22 </li>
bgneal@540 23 {% endfor %}
bgneal@540 24 </ul>
bgneal@540 25 {% else %}
bgneal@540 26 <p>No contests at this time.</p>
bgneal@540 27 {% endif %}
bgneal@540 28 {% endblock %}