annotate gpp/templates/messages/trash_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
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 %}