Mercurial > public > sg101
view gpp/templates/contests/contest_list.html @ 568:7cec8d6f9581
For bitbucket issue #7, provide a bar graph indication of inbox and outbox
usage.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 10 Mar 2012 15:24:46 -0600 |
parents | 0a8e6a9ccf53 |
children |
line wrap: on
line source
{% extends 'base.html' %} {% load bio_tags %} {% block title %}Contests{% endblock %} {% block content %} <h2>Contests</h2> <p>From time to time, SurfGuitar101.com may hold drawings and contests. This page lists the current and past contests on the site.</p> {% if object_list %} <ul> {% for contest in contests %} <li><a href="{{ contest.get_absolute_url }}">{{ contest.title }}</a> - {{ contest.creation_date|date:"F d, Y" }} to {{ contest.end_date|date:"F d, Y" }} {% if contest.is_active %} <img src="{{ STATIC_URL }}icons/new.png" alt="New" /> {% else %} {% if contest.winner %} <img src="{{ STATIC_URL }}icons/rosette.png" alt="Winner" /> {% profile_link contest.winner.username %} {% else %} <img src="{{ STATIC_URL }}icons/lock.png" alt="Old" /> {% endif %} {% endif %} </li> {% endfor %} </ul> {% else %} <p>No contests at this time.</p> {% endif %} {% endblock %}