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
erb-lint with new settings
Klaus Zandersea1ca8329e6c
diff --git a/modules/costs/app/views/admin/cost_types/_rate.html.erb b/modules/costs/app/views/admin/cost_types/_rate.html.erbindex 2b2c9178921..e6b9a4966bd 100644--- a/modules/costs/app/views/admin/cost_types/_rate.html.erb+++ b/modules/costs/app/views/admin/cost_types/_rate.html.erb@@ -43,10 +43,12 @@ See COPYRIGHT and LICENSE files for more details.<tr><td colspan="3"><%= error_messages %></td></tr><% end %><%= fields_for prefix, rate, builder: TabularFormBuilder do |rate_form| %>- <%= content_tag(:tr,- id: id_prefix,- data: templated ? { "row-target": "true" } : {},- style: templated ? "display: none;" : "") do %>+ <%= content_tag(+ :tr,+ id: id_prefix,+ data: templated ? { "row-target": "true" } : {},+ style: templated ? "display: none;" : ""+ ) do %><td class="-no-ellipsis"><label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label><%= rate_form.date_picker :valid_from,diff --git a/modules/costs/app/views/admin/cost_types/edit.html.erb b/modules/costs/app/views/admin/cost_types/edit.html.erbindex a499a89da7b..63e5b98a74b 100644--- a/modules/costs/app/views/admin/cost_types/edit.html.erb+++ b/modules/costs/app/views/admin/cost_types/edit.html.erb@@ -38,12 +38,14 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { title }- header.with_breadcrumbs([- { href: admin_index_path, text: t("label_administration") },- { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },- { href: admin_cost_types_path, text: t(:label_cost_type_plural) },- title- ])+ header.with_breadcrumbs(+ [+ { href: admin_index_path, text: t("label_administration") },+ { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },+ { href: admin_cost_types_path, text: t(:label_cost_type_plural) },+ title+ ]+ )end%>diff --git a/modules/costs/app/views/admin/cost_types/index.html.erb b/modules/costs/app/views/admin/cost_types/index.html.erbindex 6770c674650..b8d7e812f3b 100644--- a/modules/costs/app/views/admin/cost_types/index.html.erb+++ b/modules/costs/app/views/admin/cost_types/index.html.erb@@ -32,20 +32,24 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { I18n.t(:label_cost_type_plural) }- header.with_breadcrumbs([- { href: admin_index_path, text: t("label_administration") },- { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },- I18n.t(:label_cost_type_plural)- ])+ header.with_breadcrumbs(+ [+ { href: admin_index_path, text: t("label_administration") },+ { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },+ I18n.t(:label_cost_type_plural)+ ]+ )end%><%= render(Primer::OpenProject::SubHeader.new) do |subheader| %>- <% subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:button_add_cost_type) },- title: I18n.t(:button_add_cost_type),- tag: :a,- href: new_admin_cost_type_path) do |button|+ <% subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:button_add_cost_type) },+ title: I18n.t(:button_add_cost_type),+ tag: :a,+ href: new_admin_cost_type_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)CostType.model_name.humanend %>diff --git a/modules/costs/app/views/admin/costs_settings/show.html.erb b/modules/costs/app/views/admin/costs_settings/show.html.erbindex 7125ea549c4..26f90488ddb 100644--- a/modules/costs/app/views/admin/costs_settings/show.html.erb+++ b/modules/costs/app/views/admin/costs_settings/show.html.erb@@ -32,8 +32,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t("plugin_costs.name") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- t("plugin_costs.name")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ t("plugin_costs.name")]+ )end%>diff --git a/modules/costs/app/views/admin/time_entry_activities/index.html.erb b/modules/costs/app/views/admin/time_entry_activities/index.html.erbindex 8e3934f4197..699e1c177ac 100644--- a/modules/costs/app/views/admin/time_entry_activities/index.html.erb+++ b/modules/costs/app/views/admin/time_entry_activities/index.html.erb@@ -32,11 +32,13 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { I18n.t(:enumeration_activities) }- header.with_breadcrumbs([- { href: admin_index_path, text: t("label_administration") },- { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },- I18n.t(:enumeration_activities)- ])+ header.with_breadcrumbs(+ [+ { href: admin_index_path, text: t("label_administration") },+ { href: url_for({ controller: "/admin/costs_settings", action: "show" }), text: t(:project_module_costs) },+ I18n.t(:enumeration_activities)+ ]+ )end%>diff --git a/modules/costs/app/views/hourly_rates/_rate.html.erb b/modules/costs/app/views/hourly_rates/_rate.html.erbindex ecf991fd6dd..30823dcd3e0 100644--- a/modules/costs/app/views/hourly_rates/_rate.html.erb+++ b/modules/costs/app/views/hourly_rates/_rate.html.erb@@ -37,11 +37,13 @@ See COPYRIGHT and LICENSE files for more details.-%><%= fields_for prefix, rate, builder: TabularFormBuilder do |rate_form| %>- <%= content_tag(:tr,- class: "subform-row",- id: id_prefix,- data: templated ? { "row-target": "true" } : {},- style: templated ? "display: none;" : "") do %>+ <%= content_tag(+ :tr,+ class: "subform-row",+ id: id_prefix,+ data: templated ? { "row-target": "true" } : {},+ style: templated ? "display: none;" : ""+ ) do %><td><label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label><%= rate_form.date_picker :valid_from,diff --git a/modules/costs/app/views/hourly_rates/edit.html.erb b/modules/costs/app/views/hourly_rates/edit.html.erbindex 31d9c009a5e..076b6f70694 100644--- a/modules/costs/app/views/hourly_rates/edit.html.erb+++ b/modules/costs/app/views/hourly_rates/edit.html.erb@@ -41,8 +41,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:caption_default_rate_history_for, user: @user.name) }- header.with_breadcrumbs([*breadcrumb_items,- t(:caption_default_rate_history_for, user: @user.name)])+ header.with_breadcrumbs(+ [*breadcrumb_items,+ t(:caption_default_rate_history_for, user: @user.name)]+ )end%>diff --git a/modules/costs/app/views/hourly_rates/show.html.erb b/modules/costs/app/views/hourly_rates/show.html.erbindex 485beb94358..2f8816bbffa 100644--- a/modules/costs/app/views/hourly_rates/show.html.erb+++ b/modules/costs/app/views/hourly_rates/show.html.erb@@ -41,8 +41,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:caption_default_rate_history_for, user: @user.name) }- header.with_breadcrumbs([*breadcrumb_items,- t(:caption_default_rate_history_for, user: @user.name)])+ header.with_breadcrumbs(+ [*breadcrumb_items,+ t(:caption_default_rate_history_for, user: @user.name)]+ )end%>diff --git a/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb b/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erbindex 4f9d1546028..2a5237bea48 100644--- a/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb+++ b/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:enumeration_activities) }- 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) },- t(:enumeration_activities)])+ 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) },+ t(:enumeration_activities)]+ )end%>