summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_ticket_data.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'help/app/views/tickets/_ticket_data.html.haml')
-rw-r--r--help/app/views/tickets/_ticket_data.html.haml25
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