Mercurial > public > sg101
annotate gpp/templates/contests/contest_list.html @ 557:7247a406f92b
Merging change to requirements.txt made on production server.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 29 Jan 2012 14:45:09 -0600 |
parents | 51fa1e0ca218 |
children | 0a8e6a9ccf53 |
rev | line source |
---|---|
bgneal@540 | 1 {% extends 'base.html' %} |
bgneal@540 | 2 {% block title %}Contests{% endblock %} |
bgneal@540 | 3 {% block content %} |
bgneal@540 | 4 <h2>Contests</h2> |
bgneal@540 | 5 <p>From time to time, SurfGuitar101.com may hold drawings and contests. This page lists |
bgneal@540 | 6 the current and past contests on the site.</p> |
bgneal@540 | 7 {% if object_list %} |
bgneal@540 | 8 <ul> |
bgneal@540 | 9 {% for contest in contests %} |
bgneal@540 | 10 <li><a href="{{ contest.get_absolute_url }}">{{ contest.title }}</a> - |
bgneal@540 | 11 {{ contest.creation_date|date:"F d, Y" }} to {{ contest.end_date|date:"F d, Y" }} |
bgneal@540 | 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 %} |
bgneal@540 | 13 </li> |
bgneal@540 | 14 {% endfor %} |
bgneal@540 | 15 </ul> |
bgneal@540 | 16 {% else %} |
bgneal@540 | 17 <p>No contests at this time.</p> |
bgneal@540 | 18 {% endif %} |
bgneal@540 | 19 {% endblock %} |