bgneal@540: {% extends 'base.html' %} bgneal@540: {% load url from future %} bgneal@540: {% load bio_tags %} bgneal@540: {% load core_tags %} bgneal@540: {% block custom_meta %} bgneal@540: {% open_graph_meta_tags contest %} bgneal@540: {% endblock %} bgneal@540: {% block title %}Contests: {{ contest.title }}{% endblock %} bgneal@540: {% block custom_js %} bgneal@540: bgneal@540: bgneal@540: {% endblock %} bgneal@540: bgneal@540: {% block begin_body %}{% include 'core/social_sharing_begin.html' %}{% endblock %} bgneal@540: {% block content %} bgneal@540:

Contests

bgneal@540:

{{ contest.title }}

bgneal@540:
bgneal@540: {{ contest.description|safe }} bgneal@561:
bgneal@540:
bgneal@540: bgneal@540:

Contest Dates

bgneal@540:

bgneal@540: {% if contest.is_active %} bgneal@540: This contest began on {{ contest.creation_date|date:"F d, Y" }} and ends on bgneal@540: {{ contest.end_date|date:"F d, Y" }}. bgneal@540: {% else %} bgneal@540: This contest ran from {{ contest.creation_date|date:"F d, Y" }} to bgneal@540: {{ contest.end_date|date:"F d, Y" }}. bgneal@540: {% endif %} bgneal@540:

bgneal@540: bgneal@567: {% if contest.can_enter %} bgneal@540:

Contest Entry

bgneal@540:

bgneal@567: {% if user.is_authenticated %} bgneal@540: {% if user in contest.contestants.all %} bgneal@540: You are currently entered into this contest.
bgneal@540: bgneal@540: {% else %} bgneal@540: You are not participating in this contest.
bgneal@540: bgneal@540: {% endif %} bgneal@540: {% else %} bgneal@567: Please login bgneal@567: to enter this contest. bgneal@540: {% endif %} bgneal@540:

bgneal@567: {% endif %} bgneal@540: bgneal@540:

Contest Winner

bgneal@540:

bgneal@540: {% if contest.winner %} bgneal@540: The winner of this contest, selected on {{ contest.win_date|date:"l, F d, Y" }}, is bgneal@567: {% profile_link contest.winner.username '.' %} Congratulations to {{ contest.winner.username }}! bgneal@540: {% else %} bgneal@540: A contest winner will be determined sometime on or after {{ contest.end_date|date:"l, F d, Y" }}. bgneal@540: Please check back later. bgneal@540: {% endif %} bgneal@540:

bgneal@540:
bgneal@540: {% social_sharing contest.title contest.get_absolute_url %} bgneal@540: {% endblock %} bgneal@540: {% block end_body %}{% include 'core/social_sharing_end.html' %}{% endblock %}