Sha256: 017a2ce2bb16638196ccc7fae8237ca5f7d24d94b9e3bb54d849b187d8d7e0e3

Contents?: true

Size: 1.11 KB

Versions: 19

Compression:

Stored size: 1.11 KB

Contents

%script{ :'data-template' => 'sidebar', :type => 'text/js-template' }
  %nav#sitemap.sitemap
    .header
      %h3= link_to('Locus of Control', '#/')
    .body.tree
      <% collection.each(function(locus) { %>
      %ul
        %li.item.section
          .label{ :'data-depth' => 1 }
            %a.section{ :href => '#' }
              %span <%= locus.escape('label') %>
          %ul
            %li.item.entries
              .label{ :'data-depth' => 2 }
                :plain
                  <a href="<%= locus.entries_path() %>" class="entries">
                    <em class="count"><%= locus.escape('count') %></em>
                    <span>Entries</span>
                  </a>  
                
            <% locus.buckets.each(function(bucket) { %>
            %li.item.bucket
              .label{ :'data-depth' => 2 }
                :plain
                  <a href="<%= bucket.entries_path() %>" class="bucket">
                    <em class="count"><%= bucket.escape('count') %></em>
                    <span><%= bucket.escape('label') %></span>
                  </a>  
            <% }); %>
      <% }); %>

Version data entries

19 entries across 14 versions & 1 rubygems

Version Path
c2-0.1.13 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.13 app/views/c2/reporter/app/_sidebar.html.haml
c2-0.1.12 app/views/c2/reporter/app/_sidebar.html.haml
c2-0.1.12 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.11 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.11 app/views/c2/reporter/app/_sidebar.html.haml
c2-0.1.10 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.10 app/views/c2/reporter/app/_sidebar.html.haml
c2-0.1.9 app/views/c2/reporter/app/_sidebar.html.haml
c2-0.1.9 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.8 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.7 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.6 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.5 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.4 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.3 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.2 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.1 app/views/c2/informant/app/_sidebar.html.haml
c2-0.1.0 app/views/c2/informant/app/_sidebar.html.haml