comparison sg101/templates/messages/trash_tab.html @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/templates/messages/trash_tab.html@76ba9478ebbd
children 25a408bb71a3
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 {% load url from future %}
2 {% if messages %}
3 <ul class="user-messages">
4 {% for msg in messages %}
5 <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li>
6 {% endfor %}
7 </ul>
8 {% endif %}
9 {% if msgs.object_list %}
10 <form action="." onsubmit="return bulkMsgAction(this, 'undelete');">
11 <table class="messages">
12 <tr>
13 <th>From</th>
14 <th>To</th>
15 <th>Subject</th>
16 <th>Date</th>
17 <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'trash_ids');" /></th>
18 </tr>
19 {% for msg in msgs.object_list %}
20 <tr>
21 <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}">
22 {{ msg.sender.username }}</a></td>
23 <td><a href="{% url 'bio.views.view_profile' msg.receiver.username %}">
24 {{ msg.receiver.username }}</a></td>
25 <td>
26 <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;"
27 class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a>
28 </td>
29 <td>{{ msg.send_date|date:"M j, Y g:i:s A T" }}</td>
30 <td><input type="checkbox" name="trash_ids" value="{{ msg.id }}" /></td>
31 </tr>
32 {% endfor %}
33 <tr><td colspan="5"><input type="submit" value="Undelete Checked Messages" /></td></tr>
34 </table>
35 </form>
36 {% include "messages/pagination.html" %}
37 <ul>
38 <li>Messages in <strong>bold</strong> are unread.</li>
39 <li>Messages in <em>italics</em> have been replied to.</li>
40 </ul>
41 {% else %}
42 <p><em>Your Trash is empty.</em></p>
43 {% endif %}