2023-05-27 22:25:52 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Sidebars
|
|
|
|
module Groups
|
|
|
|
module SuperSidebarMenus
|
|
|
|
class PlanMenu < ::Sidebars::Menu
|
|
|
|
override :title
|
|
|
|
def title
|
2023-06-20 00:43:36 +05:30
|
|
|
s_('Navigation|Plan')
|
2023-05-27 22:25:52 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
override :sprite_icon
|
|
|
|
def sprite_icon
|
|
|
|
'planning'
|
|
|
|
end
|
2023-06-20 00:43:36 +05:30
|
|
|
|
|
|
|
override :configure_menu_items
|
|
|
|
def configure_menu_items
|
|
|
|
[
|
2023-07-09 08:55:56 +05:30
|
|
|
:group_issue_list,
|
|
|
|
:group_epic_list,
|
2023-06-20 00:43:36 +05:30
|
|
|
:issue_boards,
|
|
|
|
:epic_boards,
|
|
|
|
:roadmap,
|
2023-07-09 08:55:56 +05:30
|
|
|
:milestones,
|
|
|
|
:iterations,
|
2023-06-20 00:43:36 +05:30
|
|
|
:group_wiki,
|
|
|
|
:crm_contacts,
|
|
|
|
:crm_organizations
|
|
|
|
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
|
|
|
|
end
|
2023-05-27 22:25:52 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|