annotate gpp/templates/messages/outbox_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>To</th>
bgneal@425 14 <th>Subject</th>
bgneal@425 15 <th>Sent</th>
bgneal@425 16 <th>Received</th>
bgneal@425 17 <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'outbox_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.receiver.username %}">
bgneal@425 22 {{ msg.receiver.username }}</a></td>
bgneal@425 23 <td>
bgneal@425 24 <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;"
bgneal@425 25 class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a>
bgneal@425 26 </td>
bgneal@425 27 <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td>
bgneal@425 28 <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"M j, Y g:i A" }}{% endif %}</td>
bgneal@425 29 <td><input type="checkbox" name="outbox_ids" value="{{ msg.id }}" /></td>
bgneal@425 30 </tr>
bgneal@425 31 {% endfor %}
bgneal@425 32 <tr><td colspan="5"><input type="submit" value="Delete Checked Messages" /></td></tr>
bgneal@425 33 </table>
bgneal@425 34 </form>
bgneal@425 35 {% include "messages/pagination.html" %}
bgneal@425 36 <ul>
bgneal@425 37 <li>Messages in <strong>bold</strong> are unread.</li>
bgneal@425 38 <li>Messages in <em>italics</em> have been replied to.</li>
bgneal@425 39 </ul>
bgneal@425 40 {% else %}
bgneal@425 41 <p><em>Your Outbox is empty.</em></p>
bgneal@425 42 {% endif %}