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

show correct breadcrumb in boards page for the time that there is a project selected

Behrokh Satarnejadcb205fb85cc8
diff --git a/modules/boards/app/views/boards/boards/index.html.erb b/modules/boards/app/views/boards/boards/index.html.erb
index 3744faea429..1d4a6287e89 100644
--- a/modules/boards/app/views/boards/boards/index.html.erb
+++ b/modules/boards/app/views/boards/boards/index.html.erb
@@ -32,7 +32,9 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { t("boards.label_boards") }
- header.with_breadcrumbs([t("boards.label_boards")])
+ header.with_breadcrumbs([{ href: home_path, text: organization_name},
+ *([href: project_overview_path(@project.id), text: @project.name] if @project),
+ t("boards.label_boards")])
end
%>