Mercurial > public > sg101
comparison gpp/templates/messages/outbox.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: Outbox{% endblock %} | 3 {% block title %}Messages: Outbox{% 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 outbox-class %}class="active"{% endblock %} | 7 {% block outbox-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-delete_bulk %}" method="post" name="messages_box_form" | 18 <form action="{% url 'messages-delete_bulk' %}" method="post" name="messages_box_form" |
18 onsubmit="return messages_confirm_delete();">{% csrf_token %} | 19 onsubmit="return messages_confirm_delete();">{% csrf_token %} |
19 <table class="messages"> | 20 <table class="messages"> |
20 <tr> | 21 <tr> |
21 <th>To</th> | 22 <th>To</th> |
22 <th>Subject</th> | 23 <th>Subject</th> |
24 <th>Received</th> | 25 <th>Received</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.receiver.username %}"> | 30 <td><a href="{% url 'bio.views.view_profile' msg.receiver.username %}"> |
30 {{ msg.receiver.username }}</a></td> | 31 {{ msg.receiver.username }}</a></td> |
31 <td> | 32 <td> |
32 {% if msg.unread %}<strong>{% endif %} | 33 {% if msg.unread %}<strong>{% endif %} |
33 {% if msg.replied_to %}<em>{% endif %} | 34 {% if msg.replied_to %}<em>{% endif %} |
34 <a href="{{ msg.get_absolute_url }}?box=outbox">{{ msg.subject }}</a> | 35 <a href="{{ msg.get_absolute_url }}?box=outbox">{{ msg.subject }}</a> |