{# If user is not authenticated show login form #}
{% if not request.user.is_authenticated %}
Don't you have an account? Register
Or Login Connect with Facebook Forgot your password?
{# user is authenticated, check if not answered yet #}
{% elif not answered and not success %}
{# just answered success message #}
{% elif success %}
Thanks for joining the promo!
{# User already answered #}
{% else %}
You already answered this promo
{% endif %}
Rules
{# The link above should load the rules in a modal #}
{{ promo.rules|safe }}
{%if promo.display_answers %}
Answers
{% paginate answers %}
{% for answer in answers %}
{{ answer.answer }}
{{ answer.user.get_full_name }} in {{ answer.date_insert }}
{% empty %}
No answers yet, be the first!
{% endfor %}
{% show_pages %}
{% endif %}