summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_comment.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'help/app/views/tickets/_comment.html.haml')
-rw-r--r--help/app/views/tickets/_comment.html.haml26
1 files changed, 14 insertions, 12 deletions
diff --git a/help/app/views/tickets/_comment.html.haml b/help/app/views/tickets/_comment.html.haml
index 1ba3bd1..26794dc 100644
--- a/help/app/views/tickets/_comment.html.haml
+++ b/help/app/views/tickets/_comment.html.haml
@@ -1,13 +1,15 @@
- # style is super ugly but just for now
-%div{:style => "border: solid 1px"}
- - if User.find(comment.posted_by)
- Posted by
- = User.find(comment.posted_by).login
- - else
- Unauthenticated post
- %p
- Posted at
- = comment.posted_at
- %p
- = comment.body
- %p \ No newline at end of file
+%tr
+ %td
+ - if commenter = User.find(comment.posted_by)
+ %b
+ = 'Posted by' + (commenter.is_admin? ? ' admin' : '') + ':'
+ = commenter.login
+ - else
+ Unauthenticated post
+ .pull-right
+ %b
+ Posted at:
+ = comment.posted_at.to_s(:short)
+ %br
+ = comment.body