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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Correct some usages of Primer::PageHeader
Henriette Darge41ace8460a85
diff --git a/app/views/categories/destroy.html.erb b/app/views/categories/destroy.html.erbindex f9a78d65bb9..430fd018537 100644--- a/app/views/categories/destroy.html.erb+++ b/app/views/categories/destroy.html.erb@@ -33,8 +33,7 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },{ href: project_settings_general_path(@project.id), text: I18n.t("label_project_settings") },{ href: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },- "#{@category.name}: <b>#{t(:label_delete)}</b>".html_safe- ], selected_item_font_weight: :normal)+ @category.name])end %><%= form_tag({}, {method: :delete, class: 'form'}) do %>diff --git a/app/views/categories/edit.html.erb b/app/views/categories/edit.html.erbindex 18c0d969b12..ea7ef00d6d3 100644--- a/app/views/categories/edit.html.erb+++ b/app/views/categories/edit.html.erb@@ -33,9 +33,9 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },{ href: project_settings_general_path(@project.id), text: I18n.t("label_project_settings") },{ href: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },- "#{@category.name}: <b>#{t(:label_edit)}</b>".html_safe- ], selected_item_font_weight: :normal)- end %>+ @category.name])+ end+%><%= labelled_tabular_form_for @category, as: :category do |f| %><%= render partial: 'categories/form', locals: { f: f } %>diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erbindex 21a4bff1aee..0509feb4519 100644--- a/app/views/news/edit.html.erb+++ b/app/views/news/edit.html.erb@@ -34,9 +34,10 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),*([ href: project_overview_path(@project.id), text: @project.name ] if @project),*([ href: project_news_index_path(@project.id), text: t(:label_news_plural) ] if @project),- "#{@news.title}: <b>#{t(:label_edit)}</b>".html_safe- ], selected_item_font_weight: :normal)- end %>+ @news.title])+ end+%>+<%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %><%= render partial: 'form', locals: { f: f } %><hr class="form--separator" />diff --git a/app/views/projects/_toolbar.html.erb b/app/views/projects/_toolbar.html.erbindex fca6b2ed69b..543e0ea3ce2 100644--- a/app/views/projects/_toolbar.html.erb+++ b/app/views/projects/_toolbar.html.erb@@ -98,7 +98,7 @@ See COPYRIGHT and LICENSE files for more details.href: project_templated_path(@project),content_arguments: { data: { method: @project.templated ? :delete : :post } }) do |item|- item.with_leading_visual_icon(icon: :duplicate) unless @project.templated+ item.with_leading_visual_icon(icon: @project.templated ? :"file-removed" : :"file-added")endmenu.with_item(diff --git a/app/views/versions/edit.html.erb b/app/views/versions/edit.html.erbindex 02ba67e0b99..b506d9610f0 100644--- a/app/views/versions/edit.html.erb+++ b/app/views/versions/edit.html.erb@@ -33,8 +33,9 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { @version.name }header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_settings_general_path(@project.id), text: I18n.t("label_project_settings") },{ href: project_settings_versions_path(@project.id), text: I18n.t("label_version_plural")},- "#{ @version.name }: <b>#{t(:label_edit)}</b>".html_safe], selected_item_font_weight: :normal)+ @version.name])end%>diff --git a/modules/budgets/app/views/budgets/edit.html.erb b/modules/budgets/app/views/budgets/edit.html.erbindex 862f2715837..d8822528fa0 100644--- a/modules/budgets/app/views/budgets/edit.html.erb+++ b/modules/budgets/app/views/budgets/edit.html.erb@@ -34,8 +34,7 @@ See COPYRIGHT and LICENSE files for more details.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)}: <b>#{t(:label_edit)}</b>".html_safe- ], selected_item_font_weight: :normal)+ t(:label_budget_id, id: @budget.id)])end%><%= render :partial => 'edit' %>diff --git a/modules/documents/app/views/documents/edit.html.erb b/modules/documents/app/views/documents/edit.html.erbindex 26239cce97d..24085fae3c5 100644--- a/modules/documents/app/views/documents/edit.html.erb+++ b/modules/documents/app/views/documents/edit.html.erb@@ -32,8 +32,9 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { @document.title }header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },{ href: project_documents_path(@project), text: t(:label_document_plural) },- "#{ @document.title }: <b>#{t(:label_edit)}</b>".html_safe], selected_item_font_weight: :normal)- end %>+ @document.title])+ end+%><%= labelled_tabular_form_for @document, url: document_path(@document), method: 'PATCH' do |f| -%><%= render partial: "documents/form", locals: { f: f } %>