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 taskboard of backlogs

Behrokh Satarnejad1ff2d4685895
diff --git a/modules/backlogs/app/views/rb_taskboards/show.html.erb b/modules/backlogs/app/views/rb_taskboards/show.html.erb
index 109957ea32c..c2430ce7b95 100644
--- a/modules/backlogs/app/views/rb_taskboards/show.html.erb
+++ b/modules/backlogs/app/views/rb_taskboards/show.html.erb
@@ -28,7 +28,18 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% html_title @sprint.name %>
-<%= toolbar title: @sprint.name do %>
+<%=
+ render Primer::OpenProject::PageHeader.new do |header|
+ header.with_title { @sprint.name }
+ header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
+ *([ href: project_overview_path(@project.id), text: @project.name ] if @project),
+ *([ href: backlogs_project_backlogs_path(@project), text: t(:label_backlogs) ] if @project),
+ @sprint.name])
+ end
+%>
+<%# we decided to keep current toolbar design for taskboard %>
+<div class="toolbar-container">
+ <div class="toolbar toolbar_empty-title">
<li class="toolbar-item toolbar-input-group" id="col_width">
<div>
<label for="col_width_input"><%= t('backlogs.column_width') %></label>
@@ -40,10 +51,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= show_burndown_link(@project, @sprint) %>
</li>
<% end %>
-<% end %>
-
-<% breadcrumb_paths(link_to(t(:label_backlogs), backlogs_project_backlogs_path(@project)), link_to(@sprint.name, backlogs_project_backlogs_path(@sprint))) %>
-
+ </div>
+</div>
<div id='rb'>
<div id="taskboard">
<table id="board_header" cellspacing="0">