Mercurial > public > sg101
annotate gpp/templates/messages/trash.html @ 96:93d9e74a471e
Forums: added forum post counts for each user in the user profile.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Sep 2009 18:43:08 +0000 |
parents | dbd703f7d63a |
children | d51743322bb2 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'messages/base.html' %} |
gremmie@1 | 2 {% block title %}Messages: Trash{% endblock %} |
gremmie@1 | 3 {% block custom_js %} |
gremmie@1 | 4 <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script> |
gremmie@1 | 5 {% endblock %} |
gremmie@1 | 6 {% block trash-class %}class="active"{% endblock %} |
gremmie@1 | 7 {% block messages_content %} |
gremmie@1 | 8 <h3>Trash</h3> |
gremmie@1 | 9 {% if messages %} |
gremmie@1 | 10 <ul class="user-messages"> |
gremmie@1 | 11 {% for msg in messages %} |
gremmie@1 | 12 <li>{{ msg }}</li> |
gremmie@1 | 13 {% endfor %} |
gremmie@1 | 14 </ul> |
gremmie@1 | 15 {% endif %} |
gremmie@1 | 16 {% if msgs %} |
gremmie@1 | 17 <form action="{% url messages-undelete_bulk %}" method="post" name="messages_box_form" |
gremmie@1 | 18 onsubmit="return messages_confirm_undelete();"> |
gremmie@1 | 19 <table class="messages"> |
gremmie@1 | 20 <tr> |
gremmie@1 | 21 <th>From</th> |
gremmie@1 | 22 <th>To</th> |
gremmie@1 | 23 <th>Subject</th> |
gremmie@1 | 24 <th>Date</th> |
gremmie@1 | 25 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th> |
gremmie@1 | 26 </tr> |
gremmie@1 | 27 {% for msg in msgs %} |
gremmie@1 | 28 <tr> |
gremmie@1 | 29 <td><a href="{% url bio.views.view_profile msg.sender.username %}"> |
gremmie@1 | 30 {{ msg.sender.username }}</a></td> |
gremmie@1 | 31 <td><a href="{% url bio.views.view_profile msg.receiver.username %}"> |
gremmie@1 | 32 {{ msg.receiver.username }}</a></td> |
gremmie@1 | 33 <td> |
gremmie@1 | 34 {% if msg.unread %}<strong>{% endif %} |
gremmie@1 | 35 {% if msg.replied_to %}<em>{% endif %} |
gremmie@1 | 36 <a href="{{ msg.get_absolute_url }}?box=trash">{{ msg.subject }}</a> |
gremmie@1 | 37 {% if msg.replied_to %}</em>{% endif %} |
gremmie@1 | 38 {% if msg.unread %}</strong>{% endif %} |
gremmie@1 | 39 </td> |
gremmie@1 | 40 <td>{{ msg.send_date|date:"M j, Y g:i:s A T" }}</td> |
gremmie@1 | 41 <td><input type="checkbox" name="undelete_ids" value="{{ msg.id }}" |
gremmie@1 | 42 onclick="messages_set_master();" /></td> |
gremmie@1 | 43 </tr> |
gremmie@1 | 44 {% endfor %} |
gremmie@1 | 45 <tr><td colspan="5" align="center"><input type="submit" value="Undelete Checked Messages" /></td></tr> |
gremmie@1 | 46 </table> |
gremmie@1 | 47 </form> |
gremmie@1 | 48 {% else %} |
gremmie@1 | 49 <p><em>Your Trash is empty.</em></p> |
gremmie@1 | 50 {% endif %} |
gremmie@1 | 51 {% endblock %} |