comparison gpp/templates/messages/trash.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children d51743322bb2
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'messages/base.html' %}
2 {% block title %}Messages: Trash{% endblock %}
3 {% block custom_js %}
4 <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script>
5 {% endblock %}
6 {% block trash-class %}class="active"{% endblock %}
7 {% block messages_content %}
8 <h3>Trash</h3>
9 {% if messages %}
10 <ul class="user-messages">
11 {% for msg in messages %}
12 <li>{{ msg }}</li>
13 {% endfor %}
14 </ul>
15 {% endif %}
16 {% if msgs %}
17 <form action="{% url messages-undelete_bulk %}" method="post" name="messages_box_form"
18 onsubmit="return messages_confirm_undelete();">
19 <table class="messages">
20 <tr>
21 <th>From</th>
22 <th>To</th>
23 <th>Subject</th>
24 <th>Date</th>
25 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th>
26 </tr>
27 {% for msg in msgs %}
28 <tr>
29 <td><a href="{% url bio.views.view_profile msg.sender.username %}">
30 {{ msg.sender.username }}</a></td>
31 <td><a href="{% url bio.views.view_profile msg.receiver.username %}">
32 {{ msg.receiver.username }}</a></td>
33 <td>
34 {% if msg.unread %}<strong>{% endif %}
35 {% if msg.replied_to %}<em>{% endif %}
36 <a href="{{ msg.get_absolute_url }}?box=trash">{{ msg.subject }}</a>
37 {% if msg.replied_to %}</em>{% endif %}
38 {% if msg.unread %}</strong>{% endif %}
39 </td>
40 <td>{{ msg.send_date|date:"M j, Y g:i:s A T" }}</td>
41 <td><input type="checkbox" name="undelete_ids" value="{{ msg.id }}"
42 onclick="messages_set_master();" /></td>
43 </tr>
44 {% endfor %}
45 <tr><td colspan="5" align="center"><input type="submit" value="Undelete Checked Messages" /></td></tr>
46 </table>
47 </form>
48 {% else %}
49 <p><em>Your Trash is empty.</em></p>
50 {% endif %}
51 {% endblock %}