1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{% extends "django_messages/base.html" %}
{% load i18n %}
{% load custom_date %}
{% load wlprofile_extras %}
{% load static %}
{% block title %}
Trash - {{ block.super }}
{% endblock %}
{% block msg_title %}Trash{% endblock %}
{% block msg_content %}
<table class="messages">
<thead>
<tr>
<th>{% trans "Sender" %}</th>
<th>{% trans "Recipient" %}</th>
<th>{% trans "Subject" %}</th>
<th>{% trans "Received" %}</th>
<th>{% trans "Action" %}</th>
</tr>
</thead>
<tbody>
{% for message in message_list %}
<tr class="{% if message.new %}italic{% endif %}">
<td>{{ message.sender|user_link }}</td>
<td>{{ message.recipient|user_link }}</td>
<td>
{% if message.replied %}
<img src="{% static 'img/replied.png' %}" alt="replied" title="replied" />
{% endif %}
<a href="{{message.get_absolute_url }}">{{ message.subject }}</a>
</td>
<td>{{ message.sent_at|custom_date:user }}</td>
<td>
{% if message.sender == request.user %}
<a href="{% url 'messages_undelete' message.id %}?next=/messages/outbox/">
<img src="{% static 'img/undelete.png' %}" alt="undelete" title="undelete" />
</a>
{% else %}
<a href="{% url 'messages_undelete' message.id %}?next=/messages/inbox/">
<img src="{% static 'img/undelete.png' %}" alt="undelete" title="undelete" />
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p class="errormessage">
{% trans "Deleted messages are removed from the trash at unregular intervals. Don't rely on this feature for long-time storage." %}
</p>
{% endblock %}
|