From 976394642edff43f0c16a383bd923df3b0c93b5a Mon Sep 17 00:00:00 2001 From: Martyn Whitwell Date: Wed, 24 Apr 2024 16:37:10 +0100 Subject: [PATCH] linting --- app/components/header/navigation_component.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/header/navigation_component.rb b/app/components/header/navigation_component.rb index 3620f5ab1e..8c2ac3a6ef 100644 --- a/app/components/header/navigation_component.rb +++ b/app/components/header/navigation_component.rb @@ -70,7 +70,7 @@ def category_list_id(resource, mode) end def category_link(subcategory, resource, mode) - title = subcategory || 'Main details' + title = subcategory || "Main details" li_id = "#{resource.path.parameterize}-#{title.parameterize}-#{mode}" li_sync_id = "#{resource.path.parameterize}-#{title.parameterize}-#{sync_mode(mode)}" child_menu_id = page_list_id(resource, subcategory, mode) @@ -107,10 +107,10 @@ def page_list(resource:, subcategory:, css_class:, mode:) end end - def view_all_link(resource, _mode) + def view_all_link(resource, mode) title = "View all in #{resource.title}" path = resource.path - id = "menu-view-all-#{resource.path.parameterize}" + id = "menu-view-all-#{path.parameterize}-#{mode.parameterize}" li_css = "view-all #{'active' if uri_is_root?(path)}" link_css = "link--black"