view gpp/templates/messages/view.html @ 166:8acf5be27f18

Implement #50, add a template tag to display the latest poll and add to the home page.
author Brian Neal <bgneal@gmail.com>
date Sun, 17 Jan 2010 20:24:01 +0000
parents 7ad1f3e77cd9
children 6a5549c2efb5
line wrap: on
line source
{% 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 %}
{% if is_deleted %}
<form action="{% url messages-undelete msg.id %}" method="post">
   {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %}
   <input type="submit" value="Undelete" />
</form>
{% else %}
<a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> |
<form action="{% url messages-delete msg.id %}" method="post" class="messages-button">
   {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %}
   <input type="submit" value="Delete" />
</form>
{% endif %}
{% endblock %}