You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1021 B
31 lines
1021 B
{% extends "django_messages/base.html" %}
|
|
{% load i18n %}
|
|
{% load url from future %}
|
|
|
|
{% block content %}
|
|
<h1>{% trans "Inbox" %}</h1>
|
|
{% if message_list %}
|
|
<table class="messages">
|
|
<thead>
|
|
<tr><th>{% trans "Sender" %}</th><th>{% trans "Subject" %}</th><th>{% trans "Received" %}</th><th>{% trans "Action" %}</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for message in message_list %}
|
|
<tr>
|
|
<td>{{ message.sender }}</td>
|
|
<td>
|
|
{% if message.new %}<strong>{% endif %}
|
|
{% if message.replied %}<em>{% endif %}
|
|
<a href="{{message.get_absolute_url }}">{{ message.subject }}</a>
|
|
{% if message.replied %}</em>{% endif %}
|
|
{% if message.new %}</strong>{% endif %}</td>
|
|
<td>{{ message.sent_at|date:_("DATETIME_FORMAT") }}</td>
|
|
<td><a href="{% url 'messages_delete' message.id %}">{% trans "delete" %}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>{% trans "No messages." %}</p>
|
|
{% endif %}
|
|
{% endblock %} |