13 lines
293 B
Ruby
13 lines
293 B
Ruby
module LayoutsHelper
|
|
|
|
def layout_menu_link_to(text, path, is_active, options)
|
|
if is_active
|
|
content_tag(:span, t('shared.you_are_in'), class: 'sr-only') + ' ' +
|
|
link_to(text, path, options.merge(class: "active"))
|
|
else
|
|
link_to(text, path, options)
|
|
end
|
|
end
|
|
|
|
end
|