Add position ordering and hiding page for i18n

This commit is contained in:
Christophe Vilayphiou committed 2012-05-06 00:35:13 +08:00
1 parent f190ce18ee
commit ce1fecaf93
5 files changed
+35 -8

No files matched your search

+4 -1
View File
@@ -28,12 +28,15 @@ module Admin::ItemHelper
end
def render_children(parent)
if children = parent.children
children = parent.ordered_children
if !children.entries.blank?
ret = ''
children.each do |child|
ret << render_node_and_children(child)
end
ret
else
''
end
end