summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_comment.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-14 11:19:55 -0800
committerjessib <jessib@leap.se>2013-01-14 11:19:55 -0800
commit2485527650c4832d764d318e91c10bafde8b8ae5 (patch)
treeb624178d9d6e3279f38340e86d2097a338b434d6 /help/app/views/tickets/_comment.html.haml
parentce8b283255e2be4c0f42b3223c3cf4ad33364933 (diff)
Some fixes to the how we keep track of information about users associated with a ticket.
Diffstat (limited to 'help/app/views/tickets/_comment.html.haml')
-rw-r--r--help/app/views/tickets/_comment.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/help/app/views/tickets/_comment.html.haml b/help/app/views/tickets/_comment.html.haml
index ae7f1d4..01cf01a 100644
--- a/help/app/views/tickets/_comment.html.haml
+++ b/help/app/views/tickets/_comment.html.haml
@@ -2,10 +2,10 @@
- if admin? or !comment.private # only show comment if user is admin or comment is not private
%tr
%td
- - if commenter = User.find(comment.posted_by)
+ - if comment.posted_by_user
%b
- = 'Posted by' + (commenter.is_admin? ? ' admin' : '') + ':'
- = commenter.login
+ = 'Posted by' + (comment.posted_by_user.is_admin? ? ' admin' : '') + ':'
+ = comment.posted_by_user.login
- else
Unauthenticated post
- if comment.private