summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_comment.html.haml
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-19 00:33:19 -0700
committerelijah <elijah@riseup.net>2013-06-19 00:33:19 -0700
commitc0dcf6bd6ae163ab39886a86c337d008ac2365a6 (patch)
treec704a349a4993f060344c826b649a65f386cc79f /help/app/views/tickets/_comment.html.haml
parenta089c452a414e7d34d49f0e2703c632141361e2b (diff)
new ui for tickets
Diffstat (limited to 'help/app/views/tickets/_comment.html.haml')
-rw-r--r--help/app/views/tickets/_comment.html.haml34
1 files changed, 17 insertions, 17 deletions
diff --git a/help/app/views/tickets/_comment.html.haml b/help/app/views/tickets/_comment.html.haml
index 501ceec..c02246c 100644
--- a/help/app/views/tickets/_comment.html.haml
+++ b/help/app/views/tickets/_comment.html.haml
@@ -1,20 +1,20 @@
-- # style is super ugly but just for now
- if admin? or !comment.private # only show comment if user is admin or comment is not private
%tr
- %td
- - if comment.posted_by_user
- %b
- = 'Posted by' + (comment.posted_by_user.is_admin? ? ' admin' : '') + ':'
- = comment.posted_by_user.login
- - else
- %b
- Unauthenticated post
+ %td.user
+ %div
+ %strong
+ - if comment.posted_by_user
+ = comment.posted_by_user.login
+ - else
+ = t(:unknown)
+ %div= comment.posted_at.to_s(:short)
+ - if comment.posted_by_user.is_admin?
+ %div
+ %span.label.label-inverse
+ = t(:admin)
- if comment.private
- (Private comment)
- .pull-right
- %b
- Posted at:
- = comment.posted_at.to_s(:short)
- %br
- = comment.body
-
+ %div
+ %span.label.label-important
+ = t(:private)
+ %td.comment
+ = comment.body \ No newline at end of file