bgneal@425: {% load url from future %} bgneal@425: {% if messages %} bgneal@425: <ul class="user-messages"> bgneal@425: {% for msg in messages %} bgneal@425: <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li> bgneal@425: {% endfor %} bgneal@425: </ul> bgneal@425: {% endif %} bgneal@425: {% if msgs.object_list %} bgneal@425: <form action="." onsubmit="return bulkMsgAction(this, 'delete');"> bgneal@425: <table class="messages"> bgneal@425: <tr> bgneal@425: <th>From</th> bgneal@425: <th>Subject</th> bgneal@425: <th>Date</th> bgneal@425: <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'inbox_ids');" /></th> bgneal@425: </tr> bgneal@425: {% for msg in msgs.object_list %} bgneal@425: <tr> bgneal@425: <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}"> bgneal@425: {{ msg.sender.username }}</a></td> bgneal@425: <td> bgneal@425: <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;" bgneal@425: class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a> bgneal@425: </td> bgneal@425: <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td> bgneal@425: <td><input type="checkbox" name="inbox_ids" value="{{ msg.id }}" /></td> bgneal@425: </tr> bgneal@425: {% endfor %} bgneal@425: <tr><td colspan="4"><input type="submit" value="Delete Checked Messages" /></td></tr> bgneal@425: </table> bgneal@425: </form> bgneal@425: {% include "messages/pagination.html" %} bgneal@425: <ul> bgneal@425: <li>Messages in <strong>bold</strong> are unread.</li> bgneal@425: <li>Messages in <em>italics</em> have been replied to.</li> bgneal@425: </ul> bgneal@425: {% else %} bgneal@425: <p><em>Your Inbox is empty.</em></p> bgneal@425: {% endif %}