Mercurial > public > sg101
diff gpp/templates/polls/poll.html @ 439:1f139de929c4
Fixing #216; added anti-ballot stuffing feature to the polls application.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 21 May 2011 19:55:48 +0000 |
parents | daa2916f5b34 |
children | ac9217eef610 |
line wrap: on
line diff
--- a/gpp/templates/polls/poll.html Wed May 18 03:04:25 2011 +0000 +++ b/gpp/templates/polls/poll.html Sat May 21 19:55:48 2011 +0000 @@ -10,6 +10,9 @@ <li>{{ choice.choice }}</li> {% endfor %} </ul> +{% if user_choice %} +<p>You voted for "{{ user_choice.choice }}".</p> +{% endif %} {% get_comment_count for poll as comment_count %} <p> This poll has <a href="{% url 'polls.views.poll_results' poll.id %}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>. @@ -23,10 +26,10 @@ {% endif %} </p> <p class="poll-nav"> -<a href="{% url 'polls.views.poll_results' poll.id %}">View Results & Comments</a> +<a href="{% url 'polls-results' poll.id %}">View Results & Comments</a> {% if poll.is_open and user.is_authenticated %} -| <a href="{% url 'polls.views.poll_vote' poll_id=poll.id %}">Vote</a> +| <a href="{% url 'polls-vote' poll_id=poll.id %}">Vote</a> {% endif %} -| <a href="{% url 'polls.views.poll_index' %}">Poll Index</a> +| <a href="{% url 'polls-main' %}">All Polls</a> </p> {% endblock %}