Mercurial > public > sg101
view gpp/templates/polls/poll_vote.html @ 23:a5f27f25fa52
Added a latest_downloads template tag. Made the comments view the details view for a download. Changed get_absolute_url to point to this new view.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 21:16:59 +0000 |
parents | dbd703f7d63a |
children | 6a5549c2efb5 |
line wrap: on
line source
{% extends 'base.html' %} {% block title %}Polls: {{ poll.question }}{% endblock %} {% block custom_css %} <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" /> {% endblock %} {% block content %} <h2>Poll</h2> <h3>{{ poll.question }}</h3> <form action="." method="post"> <div class="poll-form"> {{ vote_form.as_p }} <input type="submit" value="Vote" /> </div> </form> <p class="poll-nav"> <a href="{{ poll.get_absolute_url }}">Poll Details</a> | <a href="{% url polls.views.poll_results poll.id %}">View Results</a> | <a href="{% url polls.views.poll_index %}">Poll Index</a> </p> <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p> {% endblock %}