annotate gpp/templates/messages/view.html @ 345:f7fbb404241f

Fix #164; have the calendar display times in the user's time zone. If the user isn't logged in, just use US/Pacific. Default the calendar mode to agenda mode.
author Brian Neal <bgneal@gmail.com>
date Mon, 28 Feb 2011 01:58:38 +0000
parents daa2916f5b34
children 26956137b890
rev   line source
gremmie@1 1 {% extends 'messages/base.html' %}
bgneal@310 2 {% load url from future %}
gremmie@1 3 {% block title %}Messages: {{ msg.subject }}{% endblock %}
gremmie@1 4 {% block messages_content %}
gremmie@1 5 <h3>Viewing Message: {{ msg.subject }}</h3>
gremmie@1 6 <table class="message-header">
gremmie@1 7 <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr>
gremmie@1 8 <tr><th>From:</th><td>{{ msg.sender }}</td></tr>
gremmie@1 9 <tr><th>To:</th><td>{{ msg.receiver }}</td></tr>
gremmie@1 10 <tr><th>Date Sent:</th><td>{{ msg.send_date|date:"F d, Y g:i:s A T" }}</td></tr>
gremmie@1 11 <tr><th>Date Received:</th>
gremmie@1 12 <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"F d, Y g:i:s A T" }}{% endif %}</td></tr>
gremmie@1 13 </table>
gremmie@1 14
gremmie@1 15 <div class="message-body">
gremmie@1 16 {{ msg.html|safe }}
gremmie@1 17 </div>
gremmie@1 18 {% if msg.signature_attached %}
gremmie@1 19 <div class="message-hr"></div>
gremmie@1 20 <div class="message-signature">
gremmie@1 21 {{ msg.sender.get_profile.signature_html|safe }}
gremmie@1 22 </div>
gremmie@1 23 {% endif %}
gremmie@1 24 {% if is_deleted %}
bgneal@310 25 <form action="{% url 'messages-undelete' msg.id %}" method="post">{% csrf_token %}
bgneal@156 26 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %}
bgneal@156 27 <input type="submit" value="Undelete" />
bgneal@156 28 </form>
gremmie@1 29 {% else %}
bgneal@310 30 <a href="{% url 'messages-reply' msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> |
bgneal@310 31 <form action="{% url 'messages-delete' msg.id %}" method="post" class="messages-button">{% csrf_token %}
bgneal@156 32 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %}
bgneal@156 33 <input type="submit" value="Delete" />
bgneal@156 34 </form>
gremmie@1 35 {% endif %}
gremmie@1 36 {% endblock %}