Revert "Clean code and add 'name' in theme.rb"

This reverts commit 608180646b.
This commit is contained in:
chris2tof committed 2011-08-24 02:04:54 +08:00
1 parent 608180646b
commit 00813c9060
16 files changed
+177 -59

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ module Admin::ItemHelper
ret << "<ul>"
ret << "<li>"
ret << (link_to node.name, dest)
ret << ' | ' << (link_to t('admin.code'), eval("edit_admin_#{node._type.downcase}_path(node, :code => true)")) 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')
ret << ' | ' << (link_to t(:delete), eval("delete_admin_#{node._type.downcase}_path(node, :authenticity_token => form_authenticity_token)"), :confirm => t('sure?'), :class => 'delete')