comparison gpp/templates/messages/trash_tab.html @ 425:76ba9478ebbd

Initial beta-test commit of a revamped, jquery ui tab-based PM system. This is for #211.
author Brian Neal <bgneal@gmail.com>
date Tue, 26 Apr 2011 00:16:35 +0000
parents
children
comparison
equal deleted inserted replaced
424:8df6e9edac22 425:76ba9478ebbd
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 %}