From d629aef3b9df44568fa8ced43d2ad189c7cb86ea Mon Sep 17 00:00:00 2001 From: iagirre Date: Fri, 15 Sep 2017 12:33:31 +0200 Subject: [PATCH 1/2] When "Profiles" submenus are selected, the "Site custom" menu doesn't open. Moreover, when "Site custom" submenus are selected, the menu remains opened. --- app/helpers/admin_helper.rb | 4 ++++ app/views/admin/_menu.html.erb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index d56c658bd..f9c2e8c69 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -36,6 +36,10 @@ module AdminHelper ["banners"].include? controller_name end + def menu_customization? + ["pages", "images", "content_blocks"].include? controller_name + end + def official_level_options options = [["", 0]] (1..5).each do |i| diff --git a/app/views/admin/_menu.html.erb b/app/views/admin/_menu.html.erb index e629f5807..2cd7013c5 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -158,8 +158,8 @@ <%= t("admin.menu.title_site_customization") %> -