Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% extends 'messages/base.html' %} | 1 {% extends 'messages/base.html' %} |
2 {% load url from future %} | |
2 {% block title %}Messages: {{ msg.subject }}{% endblock %} | 3 {% block title %}Messages: {{ msg.subject }}{% endblock %} |
3 {% block messages_content %} | 4 {% block messages_content %} |
4 <h3>Viewing Message: {{ msg.subject }}</h3> | 5 <h3>Viewing Message: {{ msg.subject }}</h3> |
5 <table class="message-header"> | 6 <table class="message-header"> |
6 <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr> | 7 <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr> |
19 <div class="message-signature"> | 20 <div class="message-signature"> |
20 {{ msg.sender.get_profile.signature_html|safe }} | 21 {{ msg.sender.get_profile.signature_html|safe }} |
21 </div> | 22 </div> |
22 {% endif %} | 23 {% endif %} |
23 {% if is_deleted %} | 24 {% if is_deleted %} |
24 <form action="{% url messages-undelete msg.id %}" method="post">{% csrf_token %} | 25 <form action="{% url 'messages-undelete' msg.id %}" method="post">{% csrf_token %} |
25 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} | 26 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} |
26 <input type="submit" value="Undelete" /> | 27 <input type="submit" value="Undelete" /> |
27 </form> | 28 </form> |
28 {% else %} | 29 {% else %} |
29 <a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | | 30 <a href="{% url 'messages-reply' msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | |
30 <form action="{% url messages-delete msg.id %}" method="post" class="messages-button">{% csrf_token %} | 31 <form action="{% url 'messages-delete' msg.id %}" method="post" class="messages-button">{% csrf_token %} |
31 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} | 32 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} |
32 <input type="submit" value="Delete" /> | 33 <input type="submit" value="Delete" /> |
33 </form> | 34 </form> |
34 {% endif %} | 35 {% endif %} |
35 {% endblock %} | 36 {% endblock %} |