debian-mirror-gitlab/app/helpers/analytics/navbar_helper.rb

29 lines
601 B
Ruby
Raw Normal View History

2020-04-25 10:58:03 +05:30
# frozen_string_literal: true
module Analytics
module NavbarHelper
class NavbarSubItem
attr_reader :title, :path, :link, :link_to_options
def initialize(title:, path:, link:, link_to_options: {})
@title = title
@path = path
@link = link
@link_to_options = link_to_options.merge(title: title)
end
end
def group_analytics_navbar_links(group, current_user)
[]
end
private
def navbar_sub_item(args)
2021-01-03 14:25:43 +05:30
NavbarSubItem.new(**args)
2020-04-25 10:58:03 +05:30
end
end
end
2021-06-08 01:23:25 +05:30
Analytics::NavbarHelper.prepend_mod_with('Analytics::NavbarHelper')