diff options
author | jessib <jessib@leap.se> | 2012-12-21 15:18:05 -0800 |
---|---|---|
committer | jessib <jessib@leap.se> | 2012-12-21 15:18:05 -0800 |
commit | b23a7999dfc3e38e0f0ea6a1a3d4fd1e86b358ca (patch) | |
tree | d8b9d161629357787e82bf7c5983dad199d301be /help/app/views/tickets/_comment.html.haml | |
parent | 6af8c4c72be753e3aeb30bbfbadf0c49a3ed5ef4 (diff) |
Still much to do, but improvements to CSS.
Diffstat (limited to 'help/app/views/tickets/_comment.html.haml')
-rw-r--r-- | help/app/views/tickets/_comment.html.haml | 26 |
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 |