Fixed page node link
This commit is contained in:
parent
c51dd81d2b
commit
4f3f074573
|
@ -16,8 +16,9 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to node.title, node.url %>
|
<%= link_to node.title, node.url %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="item-menu">
|
<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") %>
|
<% 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)} %>
|
<%= 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") %>
|
<% elsif node.class.to_s.downcase.eql?("link") %>
|
||||||
|
|
Loading…
Reference in New Issue