~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/django_messages/inbox.html

  • Committer: Holger Rapp
  • Date: 2019-06-21 18:34:42 UTC
  • mfrom: (540.1.3 update_ops_script)
  • Revision ID: sirver@gmx.de-20190621183442-y2ulybzr0rdvfefd
Adapt the update script for the new server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% extends "django_messages/base.html" %} 
2
2
{% load i18n %} 
 
3
{% load custom_date %}
 
4
{% load wlprofile_extras %}
 
5
{% load static %}
3
6
 
4
7
{% block title %}
5
8
Inbox - {{ block.super }}
6
9
{% endblock %}
7
10
 
8
 
{% block content %}
9
 
   {% include "django_messages/inlines/navigation.html" %}
10
 
    <br />
11
 
    <br />
12
 
    <div class="box_item_model border">
13
 
    <h3 class="title">{% trans "Inbox" %}</h3>
14
 
    <table class="messages" cellspacing="1">
15
 
        <thead>
16
 
            <tr>
17
 
                <td>{% trans "Sender" %}</td>
18
 
                <td>{% trans "Subject" %}</td>
19
 
                <td>{% trans "Received" %}</td>
20
 
                <td>{% trans "Action" %}</td>
21
 
            </tr>
22
 
        </thead>
23
 
        <tbody>
24
 
    {% for message in message_list %} 
25
 
      {% include "django_messages/inlines/message_row.html" %}
26
 
    {% endfor %}
27
 
        </tbody>
28
 
    </table>
29
 
    </div>
 
11
 
 
12
{% block msg_title %}Inbox{% endblock %}
 
13
{% block msg_content %}
 
14
        <table class="messages">
 
15
                <thead>
 
16
                        <tr>
 
17
                                <th>{% trans "Sender" %}</th>
 
18
                                <th>{% trans "Subject" %}</th>
 
19
                                <th>{% trans "Received" %}</th>
 
20
                                <th>{% trans "Action" %}</th>
 
21
                        </tr>
 
22
                </thead>
 
23
                <tbody>
 
24
                {% for message in message_list %} 
 
25
                        <tr class="{% if message.new %}italic{% endif %}">
 
26
                                <td>{{ message.sender|user_link }}</td>
 
27
                                <td>
 
28
                                        {% if message.replied %}
 
29
                                                <img src="{% static 'img/replied.png' %}" alt="replied" title="replied" />
 
30
                                        {% endif %}
 
31
                                        <a href="{{message.get_absolute_url }}">{{ message.subject }}</a>
 
32
                                </td>
 
33
                                <td>{{ message.sent_at|custom_date:user }}</td>
 
34
                                <td>
 
35
                                        <a href="{% url 'messages_delete' message.id %}?next={{ request.path|iriencode }}">
 
36
                                                <img src="{% static 'img/delete.png' %}" alt="delete" title="delete" />
 
37
                                        </a>
 
38
                                </td>
 
39
                        </tr>
 
40
                {% endfor %}
 
41
                </tbody>
 
42
        </table>
30
43
{% endblock %}