mirror of
https://github.com/edcommonwealth/ecp.org.git
synced 2026-03-07 21:48:13 -08:00
split out navigation into submenus
This commit is contained in:
parent
73320db93d
commit
11ba2ebcc8
9 changed files with 103 additions and 47 deletions
|
|
@ -1,9 +1,11 @@
|
|||
module NavHelper
|
||||
def link_highlight(path:)
|
||||
active?(path:) ? 'active' : ''
|
||||
def link_highlight(paths:)
|
||||
active?(paths:) ? 'active' : ''
|
||||
end
|
||||
|
||||
def active?(path:)
|
||||
current_page?(path)
|
||||
def active?(paths:)
|
||||
paths.any? do |path|
|
||||
current_page?(path)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue