Fix bugs and changes for nccu

This commit is contained in:
Christophe Vilayphiou authored and Christophe Vilayphiou committed 2012-02-27 18:50:56 +08:00
1 parent f4d663c67d
commit f13ebc6c46
20 files changed
+98 -61

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ module Admin::ItemHelper
end
ret << "<ul class='list'>"
ret << "<li>"
ret << (link_to node.name, dest)
ret << (link_to node.i18n_variable[I18n.locale], dest)
ret << ' | ' << (link_to t('admin.edit'), eval("edit_admin_#{node._type.downcase}_path(node)")) if node._type.eql?('Page')
ret << ' | ' << (link_to t('admin.new_page'), new_admin_page_path(:parent_id => node.id), :class => 'new_page') if node._type.eql?('Page')
ret << ' | ' << (link_to t('admin.new_link'), new_admin_link_path(:parent_id => node.id), :class => 'new_link') if node._type.eql?('Page')