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 budget edit page

Behrokh Satarnejadd4b77174ef83
diff --git a/modules/budgets/app/views/budgets/edit.html.erb b/modules/budgets/app/views/budgets/edit.html.erb
index 96f1923080c..d8822528fa0 100644
--- a/modules/budgets/app/views/budgets/edit.html.erb
+++ b/modules/budgets/app/views/budgets/edit.html.erb
@@ -28,6 +28,13 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% html_title "#{t(:label_edit)} #{t(:label_budget_id, id: @budget.id)}: #{@budget.subject}" %>
-<%= toolbar title: t(:label_budget_id, id: @budget.id) %>
+<%=
+ render(Primer::OpenProject::PageHeader.new) do |header|
+ header.with_title { t(:label_budget_id, id: @budget.id) }
+ header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },
+ { href: projects_budgets_path(@project.id), text: t(:label_budget_plural) },
+ t(:label_budget_id, id: @budget.id)])
+ end
+%>
<%= render :partial => 'edit' %>