HTML code can be modify (paser: update)

This commit is contained in:
chris2tof committed 2011-06-10 10:31:50 +08:00
1 parent dda4b30d67
commit 247b8ec4dc
12 files changed
+127 -13

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ module Admin::ItemHelper
end
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)) if node._type.eql?('Page')
ret << ' | ' << (link_to t('admin.new_link'), new_admin_link_path(:parent_id => node.id)) 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')