app/lib/burp/group.rb in burp_cms-1.3.22 vs app/lib/burp/group.rb in burp_cms-1.3.23
- old
+ new
@@ -104,7 +104,15 @@
def hash
to_hash.hash
end
+ def self.bootstrap_nav(group)
+ %{
+ <ul class="nav">
+ #{group.children.map { |child| child.is_a?(Link) ? "<li class=\"#{child.css_class}\">#{child.to_html}</li>" : "" }.join("\n\t\t\t")}
+ </ul>
+ }.html_safe
+ end
+
end
end
\ No newline at end of file