Sha256: d039ad955cdc8e98eca38553e0d9eb39006ecbfec2a38bf4dc8d3c8d07be4e96

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

<ul>
<% tree.each do |branch| -%>
	<%
	markup_classes = (branch.markup_classes) ? branch.markup_classes : []
	markup_classes << 'current_href' if branch.href and /^#{branch.href}.+$/.match(request.request_uri)
	-%>
	<li<%= ' class="%s"' % markup_classes.join(',') if markup_classes.length > 0 %>>
	<% if branch.href -%>
		<a href="<%=branch.href%>">
		<%=h branch.title %></a>
	<%else%><%=h branch.title %><%end%>
	<%=render :partial => "layouts/navigation_tree", :locals => {:tree => branch.items} if branch.descendents? -%>
	</li>
<% end -%>
</ul>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 app/views/layouts/_navigation_tree.html.erb
brisk-bills-0.8.1 app/views/layouts/_navigation_tree.html.erb
brisk-bills-0.7.0 app/views/layouts/_navigation_tree.rhtml
brisk-bills-0.6.0 app/views/layouts/_navigation_tree.rhtml