summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/show.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2012-12-21 15:18:05 -0800
committerjessib <jessib@leap.se>2012-12-21 15:18:05 -0800
commitb23a7999dfc3e38e0f0ea6a1a3d4fd1e86b358ca (patch)
treed8b9d161629357787e82bf7c5983dad199d301be /help/app/views/tickets/show.html.haml
parent6af8c4c72be753e3aeb30bbfbadf0c49a3ed5ef4 (diff)
Still much to do, but improvements to CSS.
Diffstat (limited to 'help/app/views/tickets/show.html.haml')
-rw-r--r--help/app/views/tickets/show.html.haml50
1 files changed, 17 insertions, 33 deletions
diff --git a/help/app/views/tickets/show.html.haml b/help/app/views/tickets/show.html.haml
index 46d86de..3f00b35 100644
--- a/help/app/views/tickets/show.html.haml
+++ b/help/app/views/tickets/show.html.haml
@@ -1,34 +1,18 @@
-%h2= @ticket.title
+.spam12
+ %h2
+ %a#title.editable.editable-click{"data-name" => "title", "data-resource" => "post", "data-type" => "text", "data-url" => ticket_path(@ticket.id), "data-pk" => @ticket.id, :href => "#"}
+ = @ticket.title
+ = render 'tickets/ticket_data'
+ %table.table-striped.table-bordered.table-hover{:style => "width:100%;"}
+ %tbody
+ = render(:partial => "comment", :collection => @ticket.comments)
+ = #render @ticket.comments should work if view is in /app/views/comments/_comment
-%a#title.editable.editable-click{"data-name" => "title", "data-resource" => "post", "data-type" => "text", "data-url" => ticket_path(@ticket.id), "data-pk" => @ticket.id, :href => "#"}
- = @ticket.title
-
-%p
-- if @ticket.email
- email:
- = @ticket.email
-%li
- - if User.find(@ticket.created_by)
- Created by
- = User.find(@ticket.created_by).login
- - else
- Unauthenticated ticket creator
-%li
- = "status:"
- - if @ticket.is_open
- = 'open'
- = button_to 'close', {:post => {:is_open => false}}, :method => :put
- - else
- = 'closed'
- = button_to 'open', {:post => {:is_open => true}}, :method => :put
-= render(:partial => "comment", :collection => @ticket.comments)
-= #render @ticket.comments should work if view is in /app/views/comments/_comment
-
-= simple_form_for(@ticket, :html => {:novalidate => true}) do |f| #turn off html5 validations to test
- = render :partial => 'new_comment', :locals => {:f => f}
- = f.button :submit, @post_reply_str
- - if @ticket.is_open
- = f.button :submit, @reply_close_str, :class => 'btn-primary'
-= #link_to t(:destroy), ticket_path, :confirm => 'are you sure?', :method => :delete, :class => :btn if admin? # for link_to to work with delete, need to figure out jquery interaction correctly. see http://stackoverflow.com/questions/3774925/delete-link-sends-get-instead-of-delete-in-rails-3-view etc..
-= button_to 'Destroy', ticket_path, :confirm => 'are you sure?', :class => 'btn btn-danger', :method => :delete if admin?
-= link_to t(:cancel), tickets_path, :class => :btn
+ = simple_form_for(@ticket, :html => {:novalidate => true}) do |f| #turn off html5 validations to test
+ = render :partial => 'new_comment', :locals => {:f => f}
+ .span10.offset3
+ = f.button :submit, @post_reply_str, :class => 'btn-primary'
+ - if @ticket.is_open
+ = f.button :submit, @reply_close_str
+ = link_to t(:Destroy), ticket_path, :confirm => 'are you sure?', :method => :delete, :class => 'btn btn-danger' if admin?
+ = link_to t(:cancel), tickets_path, :class => :btn