Skip to content

Commit

Permalink
Merge pull request #620 from ethan-nelson/linkinmsgfrom
Browse files Browse the repository at this point in the history
Adding "from" user links in message interface
  • Loading branch information
Pierre GIRAUD committed May 25, 2015
2 parents 7e2927d + 0a18fb1 commit 8b61fff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion osmtm/templates/message.mako
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
<strong>${message.subject|n}</strong>
</p>
<p class="text-muted">
${_('From:')} ${message.from_user.username}<br>
${_('From:')} <a href=${request.route_path('user',username=message.from_user.username)}>
${message.from_user.username}</a><br>
<em title="${message.date}Z" class="timeago small"></em>
</p>
<p>
Expand Down
3 changes: 2 additions & 1 deletion osmtm/templates/user.messages.mako
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import bleach
<tbody>
% for message in messages:
<tr class="${'unread' if message.read != True else ''}">
<td>${message.from_user.username}</td>
<td><a href=${request.route_path('user',username=message.from_user.username)}>
${message.from_user.username}</a></td>
<td>
<a href="${request.route_path('message_read', message=message.id)}">
${bleach.clean(message.subject, [], strip=True)|n}
Expand Down

0 comments on commit 8b61fff

Please sign in to comment.