Sha256: 9eefcda007e1863c0d15c223ec35b018fe3c7b4d7a4bc7572906aa5715568062
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
module QuicCms module PagesHelper def show_children(page) return_html = "" unless page.children.empty? return_html += "<ul>" for child in page.children return_html += "<li>" + link_to(h(child.title), "/#{child.permalink}") return_html += show_children(child) return_html += "</li>" end return_html += "</ul>" end return_html end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quic_cms-0.1.4 | app/helpers/quic_cms/pages_helper.rb |
quic_cms-0.1.3 | app/helpers/quic_cms/pages_helper.rb |
quic_cms-0.1.2 | app/helpers/quic_cms/pages_helper.rb |