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/_ticket_data.html.haml | |
parent | 6af8c4c72be753e3aeb30bbfbadf0c49a3ed5ef4 (diff) |
Still much to do, but improvements to CSS.
Diffstat (limited to 'help/app/views/tickets/_ticket_data.html.haml')
-rw-r--r-- | help/app/views/tickets/_ticket_data.html.haml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/help/app/views/tickets/_ticket_data.html.haml b/help/app/views/tickets/_ticket_data.html.haml new file mode 100644 index 0000000..3d301be --- /dev/null +++ b/help/app/views/tickets/_ticket_data.html.haml @@ -0,0 +1,25 @@ +.spam12 + %b + Created by: + - if User.find(@ticket.created_by) + = User.find(@ticket.created_by).login + - else + Unauthenticated ticket creator + - if @ticket.email + %b + email: + = @ticket.email + %b + Created at: + = @ticket.created_at.to_s(:short) + %b + Updated at: + = @ticket.updated_at.to_s(:short) + %b + = "Status:" + - if @ticket.is_open + = 'open' + = button_to 'Close', {:post => {:is_open => false}}, :method => :put, :class => 'btn btn-small' + - else + = 'closed' + = button_to 'Open', {:post => {:is_open => true}}, :method => :put, :class => 'btn btn-small'
\ No newline at end of file |