Correctly highlight 'Custom information texts' option on menu if active

This commit is contained in:
Angel Perez
2018-07-24 15:58:10 -04:00
parent 277fb95f1c
commit dd42b7ffbd
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ module AdminHelper
end
def menu_customization?
["pages", "banners"].include?(controller_name) || menu_homepage?
["pages", "banners", "information_texts"].include?(controller_name) || menu_homepage?
end
def menu_homepage?

View File

@@ -110,7 +110,7 @@
<ul <%= "class=is-active" if menu_customization? &&
controller.class.parent != Admin::Poll::Questions::Answers %>>
<li <%= "class=active" if menu_homepage? %>>
<li <%= "class=is-active" if menu_homepage? %>>
<%= link_to t("admin.menu.site_customization.homepage"), admin_homepage_path %>
</li>