diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 6f8c32eec..f3b8d7b90 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -48,7 +48,7 @@ module AdminHelper def menu_settings? controllers_names = ["settings", "tags", "geozones", "images", "content_blocks", - "local_census_records"] + "local_census_records", "imports"] controllers_names.include?(controller_name) && controller.class.parent != Admin::Poll::Questions::Answers end @@ -70,6 +70,11 @@ module AdminHelper ["actions", "administrator_tasks"].include?(controller_name) end + def submenu_local_census_records? + controller_name == "local_census_records" || + (controller_name == "imports" && controller.class.parent == Admin::LocalCensusRecords) + 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 83a9c8299..e535c9d44 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -303,7 +303,7 @@ <%= link_to t("admin.menu.site_customization.content_blocks"), admin_site_customization_content_blocks_path%> -
  • > +
  • > <%= link_to t("admin.menu.local_census_records"), admin_local_census_records_path %>