Changes on nccu
This commit is contained in:
1 parent
2c16284f73
commit
6a022c90da
15 files changed
+89
-22
No files matched your search
@@ -29,7 +29,7 @@ module ParserCommon
|
||||
res << "'>"
|
||||
root = "/"
|
||||
res << "<a href='#{edit ? root + admin_page_path(page.id) : (page._type.eql?('Page') ? root + page.path : page.url)}'><span>#{page.i18n_variable[I18n.locale]}</span></a>"
|
||||
if page.visible_children.size > 0 && current <= menu.levels
|
||||
if page.visible_children.size > 0 && current < menu.levels
|
||||
res << "<span class='dot'></span>"
|
||||
res << menu_level(page, current_page, current + 1, menu, edit)
|
||||
end unless (page.root? rescue nil)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace :items do
|
||||
task :tree_changes => :environment do
|
||||
Item.all.each do |item|
|
||||
item.position -= item.position > 5 ? 2 : 1
|
||||
item.position -= 1
|
||||
item.parent_ids = ancestors(item)
|
||||
item.rename(:full_name, :path)
|
||||
item.save
|
||||
|
||||
Reference in new issue
Block a user