Mercurial > public > sg101
comparison gpp/templates/messages/inbox_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 | 7cec8d6f9581 |
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, 'delete');"> | |
11 <table class="messages"> | |
12 <tr> | |
13 <th>From</th> | |
14 <th>Subject</th> | |
15 <th>Date</th> | |
16 <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'inbox_ids');" /></th> | |
17 </tr> | |
18 {% for msg in msgs.object_list %} | |
19 <tr> | |
20 <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}"> | |
21 {{ msg.sender.username }}</a></td> | |
22 <td> | |
23 <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;" | |
24 class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a> | |
25 </td> | |
26 <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td> | |
27 <td><input type="checkbox" name="inbox_ids" value="{{ msg.id }}" /></td> | |
28 </tr> | |
29 {% endfor %} | |
30 <tr><td colspan="4"><input type="submit" value="Delete Checked Messages" /></td></tr> | |
31 </table> | |
32 </form> | |
33 {% include "messages/pagination.html" %} | |
34 <ul> | |
35 <li>Messages in <strong>bold</strong> are unread.</li> | |
36 <li>Messages in <em>italics</em> have been replied to.</li> | |
37 </ul> | |
38 {% else %} | |
39 <p><em>Your Inbox is empty.</em></p> | |
40 {% endif %} |