summaryrefslogtreecommitdiffhomepage
path: root/app/views/nodes/index.html.erb
blob: d787727d76c1ee9e5dea9dbf12b544a386ca7a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<h1> suh </h1>

<p>
<% @rootnodes.each do |rootnode| %>
  <% if rootnode.children.any? %>
    <details class="indent">
      <summary><%= rootnode.title %></summary>
      <% rootnode.children.each do |node| %>
        <%= showNestedChildren(node, 1) %>
      <% end %>
    </details>
  <% else %>
      <div class="indent"><%= rootnode.title %></div>
  <% end %>
<% end %>
</p>

<details>
  <summary>See More</summary>
  This text will be hidden if your browser supports it.
</details>