Sha256: 8c8900e88f74c0667f81065c586745d27bfd919253111e1087107f79bd88ebe8

Contents?: true

Size: 764 Bytes

Versions: 25

Compression:

Stored size: 764 Bytes

Contents

- cache ["tree_node", page] do
  %li.page.tree-node{id: "page_#{page.id}", 
    class: "tree-node-#{page.type.underscore}",
    data: {page_id: page.id}}
    .panel.panel-default
      .panel-body{style: "position: relative;"}
        .node-handle.panel-group{class: "node-#{page.type.underscore}"}
          %span.node-toggle
            %i.fa
          -# = page.type
        .node-title
          = link_to page.title, wiki_page_path(page)

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

    :javascript
      $(function() {
        var page_view = new Tawork.Views.TreeNodePageView({el: $("#page_#{page.id}").get(0)});
      });

Version data entries

25 entries across 25 versions & 1 rubygems

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