forked from plume/documentation
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
519 B
Plaintext
16 lines
519 B
Plaintext
<% if items.size > 0 %>
|
|
<ul>
|
|
<% items.each do |i| %>
|
|
<li>
|
|
<a href="<%= i.url %>"><%= i.data.title %></a>
|
|
<%= partial :nav_item, :locals => {
|
|
:items => resources.select{ |r|
|
|
r.url.split("/").size == i.url.split("/").size + 1 &&
|
|
r.url.start_with?(i.url)
|
|
},
|
|
:resources => resources
|
|
} %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %> |