Add module authorization for news
Add files and links to announcement and news Change page.children into page.ordered_and_visible_children in parser_commom
This commit is contained in:
1 parent
2aaff21000
commit
ba4385e3fd
4 files changed
+26
-105
No files matched your search
@@ -3,7 +3,7 @@ module ParserCommon
|
||||
|
||||
def menu_level(page, current, menu, edit = false)
|
||||
res = ''
|
||||
if page.children.size > 0
|
||||
if page.ordered_and_visible_children.size > 0
|
||||
res << "<ul class='"
|
||||
res << menu.values["class_#{current}"] rescue nil
|
||||
res << "'>"
|
||||
|
||||
Reference in new issue
Block a user