annotate gpp/templates/messages/view.html @ 149:ab7830b067b3

Implement ticket #40. Added a simple way to search for usernames and then view their profile. Moved this ajax username search feature out of the messages app and into core.
author Brian Neal <bgneal@gmail.com>
date Mon, 14 Dec 2009 05:07:28 +0000
parents dbd703f7d63a
children 7ad1f3e77cd9
rev   line source
gremmie@1 1 {% extends 'messages/base.html' %}
gremmie@1 2 {% block title %}Messages: {{ msg.subject }}{% endblock %}
gremmie@1 3 {% block messages_content %}
gremmie@1 4 <h3>Viewing Message: {{ msg.subject }}</h3>
gremmie@1 5 <table class="message-header">
gremmie@1 6 <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr>
gremmie@1 7 <tr><th>From:</th><td>{{ msg.sender }}</td></tr>
gremmie@1 8 <tr><th>To:</th><td>{{ msg.receiver }}</td></tr>
gremmie@1 9 <tr><th>Date Sent:</th><td>{{ msg.send_date|date:"F d, Y g:i:s A T" }}</td></tr>
gremmie@1 10 <tr><th>Date Received:</th>
gremmie@1 11 <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 12 </table>
gremmie@1 13
gremmie@1 14 <div class="message-body">
gremmie@1 15 {{ msg.html|safe }}
gremmie@1 16 </div>
gremmie@1 17 {% if msg.signature_attached %}
gremmie@1 18 <div class="message-hr"></div>
gremmie@1 19 <div class="message-signature">
gremmie@1 20 {{ msg.sender.get_profile.signature_html|safe }}
gremmie@1 21 </div>
gremmie@1 22 {% endif %}
gremmie@1 23 <p>
gremmie@1 24 {% if is_deleted %}
gremmie@1 25 <a href="{% url messages-undelete msg.id %}{% if box %}?box={{ box }}{% endif %}">Undelete</a>
gremmie@1 26 {% else %}
gremmie@1 27 <a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> |
gremmie@1 28 <a href="{% url messages-delete msg.id %}{% if box %}?box={{ box }}{% endif %}">Delete</a>
gremmie@1 29 {% endif %}
gremmie@1 30 </p>
gremmie@1 31 {% endblock %}