Sha256: 00eabd68097079858b3d6ef1fce68075298ba8e73ec3a33e4df3a9113d20fe5c

Contents?: true

Size: 447 Bytes

Versions: 6

Compression:

Stored size: 447 Bytes

Contents

<% examples = node.get_examples %>
<% 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.3.5 app/views/lookbook/nav/_preview.html.erb
lookbook-0.4.0.beta.2 app/views/lookbook/nav/_preview.html.erb
lookbook-0.4.0.beta.1 app/views/lookbook/nav/_preview.html.erb
lookbook-0.3.4 app/views/lookbook/nav/_preview.html.erb
lookbook-0.3.3 app/views/lookbook/nav/_preview.html.erb
lookbook-0.3.2 app/views/lookbook/nav/_preview.html.erb