Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/contests/contest_list.html Mon Jan 09 01:13:08 2012 +0000 @@ -0,0 +1,19 @@ +{% extends 'base.html' %} +{% 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 %}<img src="{{ STATIC_URL }}icons/lock.png" alt="Old" />{% endif %} + </li> + {% endfor %} +</ul> +{% else %} +<p>No contests at this time.</p> +{% endif %} +{% endblock %}