Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

update page header in boards pages

Behrokh Satarnejad18de94e67ec8
diff --git a/modules/team_planner/app/views/team_planner/team_planner/new.html.erb b/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
index e323ef21246..6864cc7f655 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
@@ -28,7 +28,15 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% html_title t('team_planner.label_new_team_planner') %>
-<%= toolbar title: t('team_planner.label_new_team_planner') %>
+<%=
+ render(Primer::OpenProject::PageHeader.new) do |header|
+ header.with_title { t('team_planner.label_new_team_planner') }
+ header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
+ *([ href: project_overview_path(@project.id), text: @project.name ] if @project),
+ t('team_planner.label_new_team_planner')])
+ end
+%>
+
<%= labelled_tabular_form_for @view, url: { controller: '/team_planner/team_planner', action: 'create' }, :html => {:id => 'team-planner-form'} do |f| -%>
<%= render :partial => 'form', :locals => {:f => f} %>
<%= styled_button_tag t(:button_create), class: '-primary' %>