comparison gpp/templates/messages/view.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children 7ad1f3e77cd9
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'messages/base.html' %}
2 {% block title %}Messages: {{ msg.subject }}{% endblock %}
3 {% block messages_content %}
4 <h3>Viewing Message: {{ msg.subject }}</h3>
5 <table class="message-header">
6 <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr>
7 <tr><th>From:</th><td>{{ msg.sender }}</td></tr>
8 <tr><th>To:</th><td>{{ msg.receiver }}</td></tr>
9 <tr><th>Date Sent:</th><td>{{ msg.send_date|date:"F d, Y g:i:s A T" }}</td></tr>
10 <tr><th>Date Received:</th>
11 <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"F d, Y g:i:s A T" }}{% endif %}</td></tr>
12 </table>
13
14 <div class="message-body">
15 {{ msg.html|safe }}
16 </div>
17 {% if msg.signature_attached %}
18 <div class="message-hr"></div>
19 <div class="message-signature">
20 {{ msg.sender.get_profile.signature_html|safe }}
21 </div>
22 {% endif %}
23 <p>
24 {% if is_deleted %}
25 <a href="{% url messages-undelete msg.id %}{% if box %}?box={{ box }}{% endif %}">Undelete</a>
26 {% else %}
27 <a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> |
28 <a href="{% url messages-delete msg.id %}{% if box %}?box={{ box }}{% endif %}">Delete</a>
29 {% endif %}
30 </p>
31 {% endblock %}