Mercurial > public > sg101
comparison gpp/templates/messages/inbox.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: Inbox{% endblock %} | |
3 {% block custom_js %} | |
4 <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script> | |
5 {% endblock %} | |
6 {% block inbox-class %}class="active"{% endblock %} | |
7 {% block messages_content %} | |
8 <h3>Inbox</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-delete_bulk %}" method="post" name="messages_box_form" | |
18 onsubmit="return messages_confirm_delete();"> | |
19 <table class="messages"> | |
20 <tr> | |
21 <th>From</th> | |
22 <th>Subject</th> | |
23 <th>Date</th> | |
24 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th> | |
25 </tr> | |
26 {% for msg in msgs %} | |
27 <tr> | |
28 <td><a href="{% url bio.views.view_profile msg.sender.username %}"> | |
29 {{ msg.sender.username }}</a></td> | |
30 <td> | |
31 {% if msg.unread %}<strong>{% endif %} | |
32 {% if msg.replied_to %}<em>{% endif %} | |
33 <a href="{{ msg.get_absolute_url }}">{{ msg.subject }}</a> | |
34 {% if msg.replied_to %}</em>{% endif %} | |
35 {% if msg.unread %}</strong>{% endif %} | |
36 </td> | |
37 <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td> | |
38 <td><input type="checkbox" name="delete_ids" value="{{ msg.id }}" | |
39 onclick="messages_set_master();" /></td> | |
40 </tr> | |
41 {% endfor %} | |
42 <tr><td colspan="4" align="center"><input type="submit" value="Delete Checked Messages" /></td></tr> | |
43 </table> | |
44 <input type="hidden" name="box" value="inbox" /> | |
45 </form> | |
46 {% else %} | |
47 <p><em>Your Inbox is empty.</em></p> | |
48 {% endif %} | |
49 {% endblock %} |