Sha256: e77401e09fd1ca46bf47271e7aa0136913a3f7289015b3ec77f7fd691b9b1433

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 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, display: :node %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lookbook-0.3.0.beta.2 app/views/lookbook/nav/_preview.html.erb