Mercurial > public > sg101
annotate gpp/templates/messages/trash_tab.html @ 430:9df368d9775d
Fix bug where messages were never getting replied to.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 05 May 2011 02:58:44 +0000 |
parents | 76ba9478ebbd |
children |
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, 'undelete');"> |
bgneal@425 | 11 <table class="messages"> |
bgneal@425 | 12 <tr> |
bgneal@425 | 13 <th>From</th> |
bgneal@425 | 14 <th>To</th> |
bgneal@425 | 15 <th>Subject</th> |
bgneal@425 | 16 <th>Date</th> |
bgneal@425 | 17 <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'trash_ids');" /></th> |
bgneal@425 | 18 </tr> |
bgneal@425 | 19 {% for msg in msgs.object_list %} |
bgneal@425 | 20 <tr> |
bgneal@425 | 21 <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}"> |
bgneal@425 | 22 {{ msg.sender.username }}</a></td> |
bgneal@425 | 23 <td><a href="{% url 'bio.views.view_profile' msg.receiver.username %}"> |
bgneal@425 | 24 {{ msg.receiver.username }}</a></td> |
bgneal@425 | 25 <td> |
bgneal@425 | 26 <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;" |
bgneal@425 | 27 class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a> |
bgneal@425 | 28 </td> |
bgneal@425 | 29 <td>{{ msg.send_date|date:"M j, Y g:i:s A T" }}</td> |
bgneal@425 | 30 <td><input type="checkbox" name="trash_ids" value="{{ msg.id }}" /></td> |
bgneal@425 | 31 </tr> |
bgneal@425 | 32 {% endfor %} |
bgneal@425 | 33 <tr><td colspan="5"><input type="submit" value="Undelete Checked Messages" /></td></tr> |
bgneal@425 | 34 </table> |
bgneal@425 | 35 </form> |
bgneal@425 | 36 {% include "messages/pagination.html" %} |
bgneal@425 | 37 <ul> |
bgneal@425 | 38 <li>Messages in <strong>bold</strong> are unread.</li> |
bgneal@425 | 39 <li>Messages in <em>italics</em> have been replied to.</li> |
bgneal@425 | 40 </ul> |
bgneal@425 | 41 {% else %} |
bgneal@425 | 42 <p><em>Your Trash is empty.</em></p> |
bgneal@425 | 43 {% endif %} |