comparison gpp/templates/messages/trash.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 6e7e84707e7d
children 88b2b9cb8c1f
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: Trash{% endblock %} 3 {% block title %}Messages: Trash{% endblock %}
3 {% block custom_js %} 4 {% block custom_js %}
4 <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script> 5 <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script>
5 {% endblock %} 6 {% endblock %}
6 {% block trash-class %}class="active"{% endblock %} 7 {% block trash-class %}class="active"{% endblock %}
12 <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li> 13 <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li>
13 {% endfor %} 14 {% endfor %}
14 </ul> 15 </ul>
15 {% endif %} 16 {% endif %}
16 {% if msgs %} 17 {% if msgs %}
17 <form action="{% url messages-undelete_bulk %}" method="post" name="messages_box_form" 18 <form action="{% url 'messages-undelete_bulk' %}" method="post" name="messages_box_form"
18 onsubmit="return messages_confirm_undelete();">{% csrf_token %} 19 onsubmit="return messages_confirm_undelete();">{% csrf_token %}
19 <table class="messages"> 20 <table class="messages">
20 <tr> 21 <tr>
21 <th>From</th> 22 <th>From</th>
22 <th>To</th> 23 <th>To</th>
24 <th>Date</th> 25 <th>Date</th>
25 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th> 26 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th>
26 </tr> 27 </tr>
27 {% for msg in msgs %} 28 {% for msg in msgs %}
28 <tr> 29 <tr>
29 <td><a href="{% url bio.views.view_profile msg.sender.username %}"> 30 <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}">
30 {{ msg.sender.username }}</a></td> 31 {{ msg.sender.username }}</a></td>
31 <td><a href="{% url bio.views.view_profile msg.receiver.username %}"> 32 <td><a href="{% url 'bio.views.view_profile' msg.receiver.username %}">
32 {{ msg.receiver.username }}</a></td> 33 {{ msg.receiver.username }}</a></td>
33 <td> 34 <td>
34 {% if msg.unread %}<strong>{% endif %} 35 {% if msg.unread %}<strong>{% endif %}
35 {% if msg.replied_to %}<em>{% endif %} 36 {% if msg.replied_to %}<em>{% endif %}
36 <a href="{{ msg.get_absolute_url }}?box=trash">{{ msg.subject }}</a> 37 <a href="{{ msg.get_absolute_url }}?box=trash">{{ msg.subject }}</a>