Add sub menu for team planner

pull/9957/head
Henriette Darge 3 years ago
parent d2dd116a10
commit e91ab201f9
  1. 9
      modules/team_planner/app/views/team_planner/team_planner/_menu.html.erb
  2. 8
      modules/team_planner/lib/open_project/team_planner/engine.rb

@ -0,0 +1,9 @@
<%=
angular_component_tag 'op-view-select',
inputs: {
projectId: (@project ? @project.id.to_s : ''),
menuItems: [parent_name, name],
baseRoute: 'team_planner.page.show',
viewType: 'TeamPlanner',
}
%>

@ -43,6 +43,14 @@ module OpenProject::TeamPlanner
after: :backlogs,
icon: 'icon2 icon-calendar',
badge: 'label_menu_badge.pre_alpha'
menu :project_menu,
:team_planner_menu,
{ controller: '/team_planner/team_planner', action: :index },
parent: :team_planner_view,
partial: 'team_planner/team_planner/menu',
last: true,
caption: :'team_planner.label_team_planner'
end
add_view :TeamPlanner,

Loading…
Cancel
Save