Sha256: 1d9918ac6476795bbb45299992ba40b470fc61c9e2b3e16a57b81a10b4f38740

Contents?: true

Size: 465 Bytes

Versions: 6

Compression:

Stored size: 465 Bytes

Contents

<% examples = node.get_examples.reject(&:hidden?) %>
<% if examples.many? %>
  <%= render "nav/node", node: node, path: show_path(examples.first.path) do %>
    <% examples.each do |example| %>
      <%= render "nav/leaf", leaf: example, depth: example.hierarchy_depth + 1 %>
    <% end %>
  <% end %>
<% else %>
  <% example = examples.first %>
  <%= render "nav/leaf", leaf: example, depth: example.hierarchy_depth, label: node.label, display: :node %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lookbook-0.4.6 app/views/lookbook/nav/_preview.html.erb
lookbook-0.4.5 app/views/lookbook/nav/_preview.html.erb
lookbook-0.4.4 app/views/lookbook/nav/_preview.html.erb
lookbook-0.4.3 app/views/lookbook/nav/_preview.html.erb
lookbook-0.4.2 app/views/lookbook/nav/_preview.html.erb
lookbook-0.4.1 app/views/lookbook/nav/_preview.html.erb