Mercurial > public > sg101
comparison gpp/templates/messages/inbox.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: Inbox{% endblock %} | 3 {% block title %}Messages: Inbox{% 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 inbox-class %}class="active"{% endblock %} | 7 {% block inbox-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>From</th> | 22 <th>From</th> |
22 <th>Subject</th> | 23 <th>Subject</th> |
23 <th>Date</th> | 24 <th>Date</th> |
24 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th> | 25 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th> |
25 </tr> | 26 </tr> |
26 {% for msg in msgs %} | 27 {% for msg in msgs %} |
27 <tr> | 28 <tr> |
28 <td><a href="{% url bio.views.view_profile msg.sender.username %}"> | 29 <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}"> |
29 {{ msg.sender.username }}</a></td> | 30 {{ msg.sender.username }}</a></td> |
30 <td> | 31 <td> |
31 {% if msg.unread %}<strong>{% endif %} | 32 {% if msg.unread %}<strong>{% endif %} |
32 {% if msg.replied_to %}<em>{% endif %} | 33 {% if msg.replied_to %}<em>{% endif %} |
33 <a href="{{ msg.get_absolute_url }}">{{ msg.subject }}</a> | 34 <a href="{{ msg.get_absolute_url }}">{{ msg.subject }}</a> |