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:
Christophe Vilayphiou committed 2012-05-08 10:50:09 +08:00
1 parent 2aaff21000
commit ba4385e3fd
4 files changed
+26 -105

No files matched your search

+1 -1
View File
@@ -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 << "'>"