bgneal@801
|
1 {% extends 'messages/messages_base.html' %}
|
bgneal@1018
|
2 {% load static from staticfiles %}
|
bgneal@801
|
3 {% block messages_content %}
|
bgneal@1133
|
4 <h3>Inbox <small>{{ inbox_pct }}% used</small></h3>
|
bgneal@801
|
5 <p>
|
bgneal@801
|
6 This is your inbox. It contains messages sent to you by others. Messages in <strong>bold</strong> are unread.
|
bgneal@806
|
7 Messages in <em>italics</em> indicate you have replied to the message.
|
bgneal@801
|
8 </p>
|
bgneal@801
|
9 {% if page.object_list %}
|
bgneal@1133
|
10 {% include "core/v3/pagination.html" %}
|
bgneal@818
|
11 <form action="{% url 'messages-bulk' %}" method="post">{% csrf_token %}
|
bgneal@1133
|
12 <table class="sg101-stack">
|
bgneal@1133
|
13 <thead>
|
bgneal@425
|
14 <tr>
|
bgneal@425
|
15 <th>From</th>
|
bgneal@425
|
16 <th>Subject</th>
|
bgneal@425
|
17 <th>Date</th>
|
bgneal@806
|
18 <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'pm_ids');" /></th>
|
bgneal@425
|
19 </tr>
|
bgneal@1133
|
20 </thead>
|
bgneal@801
|
21 {% for msg in page.object_list %}
|
bgneal@425
|
22 <tr>
|
bgneal@1032
|
23 <td><a href="{% url 'bio-view_profile' msg.sender.username %}">
|
bgneal@425
|
24 {{ msg.sender.username }}</a></td>
|
bgneal@425
|
25 <td>
|
bgneal@805
|
26 <a href="{% url 'messages-view' msg.pk %}"
|
bgneal@425
|
27 class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a>
|
bgneal@425
|
28 </td>
|
bgneal@425
|
29 <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td>
|
bgneal@806
|
30 <td><input type="checkbox" name="pm_ids" value="{{ msg.id }}" /></td>
|
bgneal@425
|
31 </tr>
|
bgneal@425
|
32 {% endfor %}
|
bgneal@425
|
33 </table>
|
bgneal@806
|
34 <input type="hidden" name="src" value="inbox" />
|
bgneal@806
|
35 <input type="hidden" name="page" value="{{ page.number }}" />
|
bgneal@1133
|
36 <div class="row">
|
bgneal@1133
|
37 <div class="columns">
|
bgneal@1133
|
38 <input type="submit" name="action" value="Email Checked Messages"
|
bgneal@1133
|
39 class="secondary button" onclick="return bulkMsgAction('email');" />
|
bgneal@1133
|
40 <input type="submit" name="action" value="Delete Checked Messages"
|
bgneal@1133
|
41 class="alert button" onclick="return bulkMsgAction('delete');" />
|
bgneal@1133
|
42 </div>
|
bgneal@1133
|
43 </div>
|
bgneal@425
|
44 </form>
|
bgneal@1133
|
45 {% include "core/v3/pagination.html" %}
|
bgneal@425
|
46 {% else %}
|
bgneal@425
|
47 <p><em>Your Inbox is empty.</em></p>
|
bgneal@425
|
48 {% endif %}
|
bgneal@801
|
49 {% include 'messages/usage_graph.html' with pct_used=inbox_pct box_name='inbox' %}
|
bgneal@801
|
50 {% endblock %}
|
bgneal@1133
|
51 {% block custom_js %}
|
bgneal@1133
|
52 <script src="{% static "js/messages.js" %}"></script>
|
bgneal@1133
|
53 {% endblock %}
|