Fixed page node link

This commit is contained in:
saurabhbhatia 2013-11-07 19:46:11 +08:00
parent c51dd81d2b
commit 4f3f074573
1 changed files with 2 additions and 1 deletions

View File

@ -16,8 +16,9 @@
<% else %>
<%= link_to node.title, node.url %>
<% end %>
<div class="item-menu">
<%= 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") %>