comparison gpp/templates/messages/view.html @ 354:26956137b890

Fixing #179; provide links to sender & receiver profiles when viewing private messages. Also provided a legend on the inbox to state what bold and italic message titles mean.
author Brian Neal <bgneal@gmail.com>
date Fri, 04 Mar 2011 01:34:21 +0000
parents daa2916f5b34
children
comparison
equal deleted inserted replaced
353:6a686ffb6609 354:26956137b890
3 {% block title %}Messages: {{ msg.subject }}{% endblock %} 3 {% block title %}Messages: {{ msg.subject }}{% endblock %}
4 {% block messages_content %} 4 {% block messages_content %}
5 <h3>Viewing Message: {{ msg.subject }}</h3> 5 <h3>Viewing Message: {{ msg.subject }}</h3>
6 <table class="message-header"> 6 <table class="message-header">
7 <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr> 7 <tr><th>Subject:</th><td>{{ msg.subject }}</td></tr>
8 <tr><th>From:</th><td>{{ msg.sender }}</td></tr> 8 <tr><th>From:</th><td><a href="{% url 'bio-view_profile' username=msg.sender.username %}">
9 <tr><th>To:</th><td>{{ msg.receiver }}</td></tr> 9 {{ msg.sender }}</a></td></tr>
10 <tr><th>To:</th><td><a href="{% url 'bio-view_profile' username=msg.receiver.username %}">
11 {{ msg.receiver }}</a></td></tr>
10 <tr><th>Date Sent:</th><td>{{ msg.send_date|date:"F d, Y g:i:s A T" }}</td></tr> 12 <tr><th>Date Sent:</th><td>{{ msg.send_date|date:"F d, Y g:i:s A T" }}</td></tr>
11 <tr><th>Date Received:</th> 13 <tr><th>Date Received:</th>
12 <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"F d, Y g:i:s A T" }}{% endif %}</td></tr> 14 <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"F d, Y g:i:s A T" }}{% endif %}</td></tr>
13 </table> 15 </table>
14 16