From 4f3f074573edd4e154c472de55248aece2b645bd Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Thu, 7 Nov 2013 19:46:11 +0800 Subject: [PATCH] Fixed page node link --- app/views/admin/items/_node.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/admin/items/_node.html.erb b/app/views/admin/items/_node.html.erb index 077b9701..808e70f9 100644 --- a/app/views/admin/items/_node.html.erb +++ b/app/views/admin/items/_node.html.erb @@ -16,8 +16,9 @@ <% else %> <%= link_to node.title, node.url %> <% end %> +
- <%= link_to content_tag(:i, nil, class: "icon-eye-open"), "/#{node.path}?edit=true", class: "view-page open-slide tip", title: t(:view), data: {title: node.title} if node.class.to_s.eql?('Page') %> + <%= link_to content_tag(:i, nil, class: "icon-eye-open"), eval("admin_#{node.class.to_s.downcase}_path(node)"), class: "view-page open-slide tip", title: t(:view), data: {title: node.title} if node.class.to_s.eql?('Page') %> <% if node.class.to_s.downcase.eql?("page") %> <%= link_to content_tag(:i, nil, class: "icon-edit"), "#page", class: "open-slide tip page edit", title: t('editing.page'), data: {title: t('editing.page'), id: node.id.to_s, parent: node.parent_id.to_s, form: {name: node.name}.merge(node.title_translations)} %> <% elsif node.class.to_s.downcase.eql?("link") %>