diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 162b1f6..fd1d9a0 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -266,13 +266,13 @@ class PagesController < ApplicationController OrbitHelper.set_widget_custom_value custom_value end if @editmode - partials << "
" + render_widget_for_frontend(subpart.module,subpart.widget_method,subpart.widget_type) + "
" + partials << "
" + render_widget_for_frontend(subpart.module,subpart.widget_method,subpart.widget_type) + "
" else partials << render_widget_for_frontend(subpart.module,subpart.widget_method,subpart.widget_type) end elsif subpart.kind == "text" if @editmode - partials << "
" + subpart.content + "
" + partials << "
" + subpart.content + "
" else partials << subpart.content end diff --git a/app/views/admin/items/_node.html.erb b/app/views/admin/items/_node.html.erb index b4c3a07..a5ac06f 100644 --- a/app/views/admin/items/_node.html.erb +++ b/app/views/admin/items/_node.html.erb @@ -19,7 +19,7 @@ <% end %>
<%= link_to content_tag(:i, nil, class: "icon-eye-open"), (node.root? ? "/?editmode=on" : "/" + I18n.locale.to_s + node.url + "?editmode=on"), class: "view-page open-slide tip", title: "View", data: {title: node.name} if node.page_type.eql?('page') %> - <%= link_to content_tag(:i, nil, class: "icons-mobile"), pages_edit_view_path(:id => node.id.to_s, :mobile_view=>1), class: "view-page open-slide tip mobile-view-btn", title: "Edit Mobile Page", data: {title: "Edit Mobile Page"} if node.page_type.eql?("page") && current_site.mobile_on && node.enabled_for_mobile %> + <%= link_to content_tag(:i, nil, class: "icons-mobile"), (node.root? ? "/?editmode=on&mobile=1" : "/" + I18n.locale.to_s + node.url + "?editmode=on&mobile=1"), class: "view-page open-slide tip mobile-view-btn", title: "Edit Mobile Page", data: {title: "Edit Mobile Page"} if node.page_type.eql?("page") && current_site.mobile_on && node.enabled_for_mobile %> <% unless name.eql? "sitemap" %> <%= link_to content_tag(:i, nil, class: "icon-edit"), edit_page_path(node.id,:type => node.page_type), class: "open-slide tip page edit", title: "Edit #{node.page_type.capitalize}", data: {title: "Edit #{node.page_type.capitalize}"} if node.class.to_s.downcase.eql?("page") && !node.root? %> <%= link_to content_tag(:i, nil, class: "icons-link"), new_page_path(:parent_page => node.id.to_s,:type => "link"), class: "open-slide tip link", title: "Add Link", data: {title: "Add Link", id: 'new', parent: node.id.to_s} if node.class.to_s.eql?('Page') && level < 3 %>