From b23a7999dfc3e38e0f0ea6a1a3d4fd1e86b358ca Mon Sep 17 00:00:00 2001 From: jessib Date: Fri, 21 Dec 2012 15:18:05 -0800 Subject: Still much to do, but improvements to CSS. --- help/app/views/tickets/_comment.html.haml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'help/app/views/tickets/_comment.html.haml') 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 -- cgit v1.2.3