Mercurial > public > sg101
changeset 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 | 6a686ffb6609 |
children | a1e3724f0799 |
files | gpp/templates/messages/inbox.html gpp/templates/messages/view.html |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/templates/messages/inbox.html Thu Mar 03 03:00:15 2011 +0000 +++ b/gpp/templates/messages/inbox.html Fri Mar 04 01:34:21 2011 +0000 @@ -44,6 +44,10 @@ </table> <input type="hidden" name="box" value="inbox" /> </form> + <ul> + <li>Messages in <strong>bold</strong> are unread.</li> + <li>Messages in <em>italics</em> have been replied to.</li> + </ul> {% else %} <p><em>Your Inbox is empty.</em></p> {% endif %}
--- a/gpp/templates/messages/view.html Thu Mar 03 03:00:15 2011 +0000 +++ b/gpp/templates/messages/view.html Fri Mar 04 01:34:21 2011 +0000 @@ -5,8 +5,10 @@ <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>From:</th><td><a href="{% url 'bio-view_profile' username=msg.sender.username %}"> + {{ msg.sender }}</a></td></tr> + <tr><th>To:</th><td><a href="{% url 'bio-view_profile' username=msg.receiver.username %}"> + {{ msg.receiver }}</a></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>