From d069d903a118b78806cc8f1a9b9ca5fd04571ec9 Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 5 Oct 2017 11:08:45 +0200 Subject: [PATCH] fixes active classes on admin menu --- app/helpers/admin_helper.rb | 2 +- app/views/admin/_menu.html.erb | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 2cefcdf27..e508cf813 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -25,7 +25,7 @@ module AdminHelper end def menu_polls? - %w[polls questions officers booths officer_assignments booth_assignments recounts results shifts].include? controller_name + %w[polls questions officers booths officer_assignments booth_assignments recounts results shifts questions answers].include? controller_name end def menu_profiles? diff --git a/app/views/admin/_menu.html.erb b/app/views/admin/_menu.html.erb index bb246cb6c..81e1ae9bd 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -60,12 +60,14 @@ <%= t("admin.menu.title_polls") %> -