Mercurial > public > sg101
diff gpp/templates/messages/view.html @ 310:daa2916f5b34
Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 04:03:48 +0000 |
parents | 6a5549c2efb5 |
children | 26956137b890 |
line wrap: on
line diff
--- a/gpp/templates/messages/view.html Mon Jan 17 04:00:59 2011 +0000 +++ b/gpp/templates/messages/view.html Thu Jan 20 04:03:48 2011 +0000 @@ -1,4 +1,5 @@ {% extends 'messages/base.html' %} +{% load url from future %} {% block title %}Messages: {{ msg.subject }}{% endblock %} {% block messages_content %} <h3>Viewing Message: {{ msg.subject }}</h3> @@ -21,13 +22,13 @@ </div> {% endif %} {% if is_deleted %} -<form action="{% url messages-undelete msg.id %}" method="post">{% csrf_token %} +<form action="{% url 'messages-undelete' msg.id %}" method="post">{% csrf_token %} {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} <input type="submit" value="Undelete" /> </form> {% else %} -<a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | -<form action="{% url messages-delete msg.id %}" method="post" class="messages-button">{% csrf_token %} +<a href="{% url 'messages-reply' msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | +<form action="{% url 'messages-delete' msg.id %}" method="post" class="messages-button">{% csrf_token %} {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} <input type="submit" value="Delete" /> </form>