~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/django_messages/view.html

  • Committer: Holger Rapp
  • Date: 2009-02-20 12:25:18 UTC
  • Revision ID: holgerrapp@gmx.net-20090220122518-feaq34ta973snnct
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "django_messages/base.html" %} 
2
 
{% load i18n %} 
3
 
{% load custom_date %}
4
 
{% load wlprofile_extras %}
5
 
 
6
 
{% block title %}
7
 
View - {{ block.super }}
8
 
{% endblock %}
9
 
 
10
 
{% block msg_title %}{{ message.subject }}{% endblock %}
11
 
 
12
 
{% block msg_content %}
13
 
        <table class="messages">
14
 
                <tr>
15
 
                        <td class="grey">{% trans "Subject" %}:</td>
16
 
                        <td>{{ message.subject }}</td>
17
 
                        <td class="grey">{% trans "Date" %}:</td>
18
 
                        <td>{{ message.sent_at|custom_date:user }}</td>
19
 
                </tr>
20
 
                <tr>
21
 
                        <td class="grey">{% trans "Sender" %}:</td>
22
 
                        <td>{{ message.sender|user_link }}</td>
23
 
                        <td class="grey">{% trans "Recipient" %}:</td>
24
 
                        <td>{{ message.recipient|user_link }}</td>
25
 
                <tr> 
26
 
                        <td colspan="4">
27
 
                                <hr />
28
 
                                {{ message.body|urlize|linebreaksbr }}
29
 
                                <hr />
30
 
                        </td>
31
 
                </tr>
32
 
        </table>
33
 
        {% if message.recipient == user and not message.sender.wlprofile.deleted %}
34
 
                {{ context.deleted_email_address }}
35
 
                <button type="button" onclick="location.href='{% url 'messages_reply' message.id %}';">{% trans "Reply" %}</button>
36
 
        {% endif %}
37
 
        <button type="button" onclick="location.href='{% url 'messages_delete' message.id %}';">{% trans "Delete" %}</button>
38
 
{% endblock %}