module ParserCommon
def menu_level(page, current, menu, edit = false)
res = ''
if current <= menu.levels
if current != 0
res << "
"
item = rand(100000)
res << "
#{page.name}"
if page.children.size > 0
res << ""
end
res << "
"
else
res << ''
res << "- " + "#{page.name}" + "
"
page.children.each do |child|
res << "- " + menu_level(child, current + 1, menu, edit) + "
"
end
res << '
'
end
end
end
def menu_li(page, current, menu, i, edit)
res = ""
end
end