Mercurial > public > sg101
annotate gpp/templates/messages/inbox_tab.html @ 557:7247a406f92b
Merging change to requirements.txt made on production server.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 29 Jan 2012 14:45:09 -0600 |
parents | 76ba9478ebbd |
children | 7cec8d6f9581 |
rev | line source |
---|---|
bgneal@425 | 1 {% load url from future %} |
bgneal@425 | 2 {% if messages %} |
bgneal@425 | 3 <ul class="user-messages"> |
bgneal@425 | 4 {% for msg in messages %} |
bgneal@425 | 5 <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li> |
bgneal@425 | 6 {% endfor %} |
bgneal@425 | 7 </ul> |
bgneal@425 | 8 {% endif %} |
bgneal@425 | 9 {% if msgs.object_list %} |
bgneal@425 | 10 <form action="." onsubmit="return bulkMsgAction(this, 'delete');"> |
bgneal@425 | 11 <table class="messages"> |
bgneal@425 | 12 <tr> |
bgneal@425 | 13 <th>From</th> |
bgneal@425 | 14 <th>Subject</th> |
bgneal@425 | 15 <th>Date</th> |
bgneal@425 | 16 <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'inbox_ids');" /></th> |
bgneal@425 | 17 </tr> |
bgneal@425 | 18 {% for msg in msgs.object_list %} |
bgneal@425 | 19 <tr> |
bgneal@425 | 20 <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}"> |
bgneal@425 | 21 {{ msg.sender.username }}</a></td> |
bgneal@425 | 22 <td> |
bgneal@425 | 23 <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;" |
bgneal@425 | 24 class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a> |
bgneal@425 | 25 </td> |
bgneal@425 | 26 <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td> |
bgneal@425 | 27 <td><input type="checkbox" name="inbox_ids" value="{{ msg.id }}" /></td> |
bgneal@425 | 28 </tr> |
bgneal@425 | 29 {% endfor %} |
bgneal@425 | 30 <tr><td colspan="4"><input type="submit" value="Delete Checked Messages" /></td></tr> |
bgneal@425 | 31 </table> |
bgneal@425 | 32 </form> |
bgneal@425 | 33 {% include "messages/pagination.html" %} |
bgneal@425 | 34 <ul> |
bgneal@425 | 35 <li>Messages in <strong>bold</strong> are unread.</li> |
bgneal@425 | 36 <li>Messages in <em>italics</em> have been replied to.</li> |
bgneal@425 | 37 </ul> |
bgneal@425 | 38 {% else %} |
bgneal@425 | 39 <p><em>Your Inbox is empty.</em></p> |
bgneal@425 | 40 {% endif %} |