Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/messages/view.html Mon Apr 06 02:43:12 2009 +0000 @@ -0,0 +1,31 @@ +{% extends 'messages/base.html' %} +{% block title %}Messages: {{ msg.subject }}{% endblock %} +{% block messages_content %} +<h3>Viewing Message: {{ msg.subject }}</h3> +<table class="message-header"> + <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr> + <tr><th>From:</th><td>{{ msg.sender }}</td></tr> + <tr><th>To:</th><td>{{ msg.receiver }}</td></tr> + <tr><th>Date Sent:</th><td>{{ msg.send_date|date:"F d, Y g:i:s A T" }}</td></tr> + <tr><th>Date Received:</th> + <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"F d, Y g:i:s A T" }}{% endif %}</td></tr> +</table> + +<div class="message-body"> + {{ msg.html|safe }} +</div> +{% if msg.signature_attached %} +<div class="message-hr"></div> +<div class="message-signature"> + {{ msg.sender.get_profile.signature_html|safe }} +</div> +{% endif %} +<p> +{% if is_deleted %} +<a href="{% url messages-undelete msg.id %}{% if box %}?box={{ box }}{% endif %}">Undelete</a> +{% else %} +<a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | +<a href="{% url messages-delete msg.id %}{% if box %}?box={{ box }}{% endif %}">Delete</a> +{% endif %} +</p> +{% endblock %}