Sha256: a293c3211d709308576431218f697cbac418ce62f5eed8263b00b5a4a3f75c90

Contents?: true

Size: 1.29 KB

Versions: 25

Compression:

Stored size: 1.29 KB

Contents

- cache ["tree_node", ticket] do
  %li.ticket.tree-node{id: "ticket_#{ticket.id}", 
    class: "tree-node-#{ticket.type.underscore}",
    data: {ticket_id: ticket.id, assignments: ticket.assignment_users_hash.to_json}}
    .panel.panel-default
      .panel-body{style: "position: relative;"}
        .node-handle.panel-group{class: "node-#{ticket.type.underscore}"}
          %span.node-toggle
            %i.fa
          = ticket.type
        .node-title
          = link_to ticket.short_title(12), ticket_path(ticket)
        .details
          .ticket-state
            %button.btn.btn-primary.dropdown-toggle.pull-right{type: "button", id: "state_dropdown_#{ticket.id}", data: {toggle: "dropdown", state: "#{ticket.state.try(:underscore)}"}}
              %span.state= ticket.state
              %i.fa.fa-caret-down
            -# .label.label-default.dropdown-toggle{id: "state_dropdown_#{ticket.id}", "data-toggle" => "dropdown"}
            = render "events_dropdown", ticket: ticket

    - if @subtree.present? && @subtree[ticket.id].try(:any?)
      %ol
        - @subtree[ticket.id].sort_by(&:position).each do |child|
          = render 'tree_node', ticket: child

    :javascript
      $(function() {
        ticket_view = new Tawork.Views.TreeNodeTicketView({el: $("#ticket_#{ticket.id}").get(0)});
      });

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
tawork-0.0.50 app/views/tickets/_tree_node.html.haml
tawork-0.0.49 app/views/tickets/_tree_node.html.haml
tawork-0.0.48 app/views/tickets/_tree_node.html.haml
tawork-0.0.47 app/views/tickets/_tree_node.html.haml
tawork-0.0.46 app/views/tickets/_tree_node.html.haml
tawork-0.0.45 app/views/tickets/_tree_node.html.haml
tawork-0.0.44 app/views/tickets/_tree_node.html.haml
tawork-0.0.43 app/views/tickets/_tree_node.html.haml
tawork-0.0.42 app/views/tickets/_tree_node.html.haml
tawork-0.0.41 app/views/tickets/_tree_node.html.haml
tawork-0.0.40 app/views/tickets/_tree_node.html.haml
tawork-0.0.39 app/views/tickets/_tree_node.html.haml
tawork-0.0.38 app/views/tickets/_tree_node.html.haml
tawork-0.0.37 app/views/tickets/_tree_node.html.haml
tawork-0.0.36 app/views/tickets/_tree_node.html.haml
tawork-0.0.35 app/views/tickets/_tree_node.html.haml
tawork-0.0.34 app/views/tickets/_tree_node.html.haml
tawork-0.0.33 app/views/tickets/_tree_node.html.haml
tawork-0.0.31 app/views/tickets/_tree_node.html.haml
tawork-0.0.30 app/views/tickets/_tree_node.html.haml