Modification of the page model
This commit is contained in:
1 parent
4399804e19
commit
3d97c5bfda
9 files changed
+71
-36
No files matched your search
@@ -54,9 +54,9 @@ module ApplicationHelper
|
||||
if node
|
||||
case node._type
|
||||
when 'Page'
|
||||
dest = admin_page_path(:id => node.id)
|
||||
dest = admin_page_path(node)
|
||||
when 'Link'
|
||||
dest = admin_link_path(:id => node.id)
|
||||
dest = admin_link_path(node)
|
||||
end
|
||||
ret << "<li>"
|
||||
ret << (link_to node.name, dest)
|
||||
|
||||
Reference in new issue
Block a user