- cache ["ticket_show", @ticket] do .ticket{id: "ticket_#{@ticket.id}", data: {"ticket-id" => @ticket.id, assignments: @ticket.assignment_users_hash.to_json}} = render 'breadcrumb', ticket: @ticket .edit-ticket-details.panel.panel-default{style: "display: none;"} .panel-heading %h3.panel-title Edit #{@ticket.type} .panel-body = render "#{@ticket.type.underscore}_form", ticket: @ticket .ticket-details.panel.panel-default = render 'title_and_description', ticket: @ticket %ul.list-group %li.list-group-item .row .col-md-4 = simple_form_for @ticket, url: assignment_ticket_path(@ticket), remote: true do |f| = hidden_field_tag :type, @ticket.type.underscore = f.input :assignment_user_ids, as: :fake, input_html: {class: "user-assignment-tags"}, label: "Assignments", placeholder: "find people" .col-md-6 .col-md-2 .ticket-state .label.label-default.dropdown-toggle{id: "state_dropdown_#{@ticket.id}", "data-toggle" => "dropdown"} = @ticket.state = render "events_dropdown", ticket: @ticket .ticket{data: {"ticket-id" => @ticket.id}} .well.well-sm{style: "position: relative;"} .tree %ol{id: "sortable_#{@ticket.id}"} - if @subtree[@ticket.id].try(:any?) - @subtree[@ticket.id].sort_by(&:position).each do |ticket| = render 'tree_node', ticket: ticket = render "form" .ticket{data: {"ticket-id" => @ticket.id}} = render 'comments/form', comment: Comment.new(ticket_id: @ticket.id) %h3 Activity %ul#activities.list-group - @ticket.activities.order("created_at desc").each do |activity| = render "activity", ticket: @ticket, activity: activity #selector %ul.dropdown-menu.dropdown-inverse{"aria-labelledby" => "dropdownMenu1", :role => "menu"} %li{:role => "presentation"} %a{:href => "#", :role => "menuitem", :tabindex => "-1"} Action %li{:role => "presentation"} %a{:href => "#", :role => "menuitem", :tabindex => "-1"} Another action %li{:role => "presentation"} %a{:href => "#", :role => "menuitem", :tabindex => "-1"} Something else here %li.divider{:role => "presentation"} %li{:role => "presentation"} %a{:href => "#", :role => "menuitem", :tabindex => "-1"} Separated link :coffeescript $ -> ticket_view = new Tawork.Views.TicketView el: $("#ticket_#{@ticket.id}").get(0)