debian-mirror-gitlab/lib/sidebars/concerns/link_with_html_options.rb

15 lines
374 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# frozen_string_literal: true
module Sidebars
module Concerns
module LinkWithHtmlOptions
# add on specific items as the pertain to `link_to` objects specifically
def link_html_options
container_html_options.tap do |html_options|
html_options[:class] = [*html_options[:class], 'gl-link'].join(' ')
end
end
end
end
end