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

erb_lint auto fix hash style

Ivan Kuchin14c88b9711f1
diff --git a/app/views/announcements/edit.html.erb b/app/views/announcements/edit.html.erb
index e8fe63845a7..8bb3a93c30a 100644
--- a/app/views/announcements/edit.html.erb
+++ b/app/views/announcements/edit.html.erb
@@ -13,12 +13,12 @@
<%= error_messages_for "announcement" %>
<%= labelled_tabular_form_for @announcement,
- :url => { :action => :update },
- :html => { :method => :put } do |f| %>
+ url: { action: :update },
+ html: { method: :put } do |f| %>
<div class="form--field">
<%= f.text_area :text,
- :cols => 80,
- :rows => 5,
+ cols: 80,
+ rows: 5,
label: t(:label_text),
container_class: "-xxwide",
with_text_formatting: true %>
diff --git a/app/views/common/upsale.html.erb b/app/views/common/upsale.html.erb
index eefc7f0a745..0ec58904a67 100644
--- a/app/views/common/upsale.html.erb
+++ b/app/views/common/upsale.html.erb
@@ -29,7 +29,7 @@
</p>
<% if feature_video.present? %>
- <%= video_tag feature_video, :controls => false, class: "widget-box--teaser-video", autoplay: true, loop: true, muted: true %>
+ <%= video_tag feature_video, controls: false, class: "widget-box--teaser-video", autoplay: true, loop: true, muted: true %>
<% elsif feature_image.present? %>
<%= image_tag feature_image, class: "widget-box--teaser-image" %>
<% else %>
diff --git a/app/views/projects/settings/types/_form.html.erb b/app/views/projects/settings/types/_form.html.erb
index 025d6fd8fa9..37fe91caff4 100644
--- a/app/views/projects/settings/types/_form.html.erb
+++ b/app/views/projects/settings/types/_form.html.erb
@@ -88,8 +88,8 @@ See COPYRIGHT and LICENSE files for more details.
type.id,
projects_types_id.include?(type.id),
id: type_id,
- :'data-standard' => type.is_standard %>
- <%= hidden_field_tag "project[type_ids][]", "", :'data-for' => type_id %>
+ 'data-standard': type.is_standard %>
+ <%= hidden_field_tag "project[type_ids][]", "", 'data-for': type_id %>
</td>
<td>
<%= icon_for_type(type) %>
diff --git a/app/views/roles/_member_form.html.erb b/app/views/roles/_member_form.html.erb
index bc97145672b..2d23c3f2daf 100644
--- a/app/views/roles/_member_form.html.erb
+++ b/app/views/roles/_member_form.html.erb
@@ -47,11 +47,11 @@ See COPYRIGHT and LICENSE files for more details.
<h3><%= t(:label_permissions) %></h3>
<div id="permissions">
<% @permissions.each do |mod, mod_permissions| %>
- <fieldset><legend><%= mod.blank? ? Project.model_name.human : l_or_humanize(mod, :prefix => "project_module_") %></legend>
+ <fieldset><legend><%= mod.blank? ? Project.model_name.human : l_or_humanize(mod, prefix: "project_module_") %></legend>
<% mod_permissions.each do |permission| %>
<label class="floating form--label">
<%= styled_check_box_tag "role[permissions][]", permission.name, (@role.permissions.include? permission.name) %>
- <%= l_or_humanize(permission.name, :prefix => "permission_") %>
+ <%= l_or_humanize(permission.name, prefix: "permission_") %>
</label>
<% end %>
</fieldset>
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index 61f6de4f48f..2a6ebeee8c9 100644
--- a/app/views/roles/index.html.erb
+++ b/app/views/roles/index.html.erb
@@ -100,14 +100,14 @@ See COPYRIGHT and LICENSE files for more details.
<% for role in @roles %>
<tr>
<td>
- <%= content_tag(role.builtin? ? "em" : "span", link_to(role.name, :action => "edit", :id => role)) %>
+ <%= content_tag(role.builtin? ? "em" : "span", link_to(role.name, action: "edit", id: role)) %>
</td>
<td>
<%= icon_wrapper("icon-context icon-checkmark", I18n.t(:general_text_Yes)) if role.is_a?(GlobalRole) %>
</td>
<td>
<% unless role.builtin? %>
- <%= reorder_links("role", { :action => "update", :id => role }, :method => :put) %>
+ <%= reorder_links("role", { action: "update", id: role }, method: :put) %>
<% end %>
</td>
<td class="buttons">
diff --git a/app/views/users/_toolbar.html.erb b/app/views/users/_toolbar.html.erb
index c474dc93267..413812148e8 100644
--- a/app/views/users/_toolbar.html.erb
+++ b/app/views/users/_toolbar.html.erb
@@ -51,8 +51,8 @@ See COPYRIGHT and LICENSE files for more details.
<% unless current_user.id == @user.id %>
<li class="toolbar-item">
<%= form_for @user,
- :url => { :action => :change_status },
- :method => :post do %>
+ url: { action: :change_status },
+ method: :post do %>
<%= change_user_status_buttons(@user) %>
<% end %>
</li>
diff --git a/app/views/work_packages/bulk/edit.html.erb b/app/views/work_packages/bulk/edit.html.erb
index 605239bfaee..869fd9e102e 100644
--- a/app/views/work_packages/bulk/edit.html.erb
+++ b/app/views/work_packages/bulk/edit.html.erb
@@ -126,8 +126,8 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container">
<%= styled_select_tag(
"work_package[budget_id]",
- content_tag("option", t(:label_no_change_option), :value => "") +
- content_tag("option", t(:label_none), :value => "none") +
+ content_tag("option", t(:label_no_change_option), value: "") +
+ content_tag("option", t(:label_none), value: "none") +
options_from_collection_for_select(@project.budgets.order(Arel.sql("subject ASC")), :id, :subject)
) %>
</div>
diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erb
index 4a5f6ade398..9e9bb0c03a4 100644
--- a/app/views/work_packages/moves/new.html.erb
+++ b/app/views/work_packages/moves/new.html.erb
@@ -161,8 +161,8 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :budget_id, Budget.model_name.human %>
<%= styled_select_tag(
- "budget_id", (@target_project == @project ? content_tag("option", t(:label_no_change_option), :value => "") : "") +
- content_tag("option", t(:label_none), :value => "none") +
+ "budget_id", (@target_project == @project ? content_tag("option", t(:label_no_change_option), value: "") : "") +
+ content_tag("option", t(:label_none), value: "none") +
options_from_collection_for_select(@target_project.budgets, :id, :subject)
) %>
</div>
diff --git a/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erb b/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erb
index 9bf6a53ee42..1e1e1749c88 100644
--- a/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erb
@@ -1,31 +1,31 @@
-<%= hidden_field :import_options, :unknown_types_action, :value => params.dig(:import_options, :unknown_types_action) %>
-<%= hidden_field :import_options, :unknown_statuses_action, :value => params.dig(:import_options, :unknown_statuses_action) %>
-<%= hidden_field :import_options, :unknown_priorities_action, :value => params.dig(:import_options, :unknown_priorities_action) %>
-<%= hidden_field :import_options, :invalid_people_action, :value => params.dig(:import_options, :invalid_people_action) %>
-<%= hidden_field :import_options, :unknown_mails_action, :value => params.dig(:import_options, :unknown_mails_action) %>
+<%= hidden_field :import_options, :unknown_types_action, value: params.dig(:import_options, :unknown_types_action) %>
+<%= hidden_field :import_options, :unknown_statuses_action, value: params.dig(:import_options, :unknown_statuses_action) %>
+<%= hidden_field :import_options, :unknown_priorities_action, value: params.dig(:import_options, :unknown_priorities_action) %>
+<%= hidden_field :import_options, :invalid_people_action, value: params.dig(:import_options, :invalid_people_action) %>
+<%= hidden_field :import_options, :unknown_mails_action, value: params.dig(:import_options, :unknown_mails_action) %>
<% if params.dig(:import_options, :unknown_types_chose_ids)&.any? %>
<% params.dig(:import_options, :unknown_types_chose_ids).each do |id| %>
- <%= hidden_field :import_options, "unknown_types_chose_ids[]", :name => "import_options[unknown_types_chose_ids][]", :value => id %>
+ <%= hidden_field :import_options, "unknown_types_chose_ids[]", name: "import_options[unknown_types_chose_ids][]", value: id %>
<% end %>
<% end %>
<% if params.dig(:import_options, :unknown_statuses_chose_ids)&.any? %>
<% params.dig(:import_options, :unknown_statuses_chose_ids).each do |id| %>
- <%= hidden_field :import_options, "unknown_statuses_chose_ids[]", :name => "import_options[unknown_statuses_chose_ids][]", :value => id %>
+ <%= hidden_field :import_options, "unknown_statuses_chose_ids[]", name: "import_options[unknown_statuses_chose_ids][]", value: id %>
<% end %>
<% end %>
<% if params.dig(:import_options, :unknown_priorities_chose_ids)&.any? %>
<% params.dig(:import_options, :unknown_priorities_chose_ids).each do |id| %>
- <%= hidden_field :import_options, "unknown_priorities_chose_ids[]", :name => "import_options[unknown_priorities_chose_ids][]", :value => id %>
+ <%= hidden_field :import_options, "unknown_priorities_chose_ids[]", name: "import_options[unknown_priorities_chose_ids][]", value: id %>
<% end %>
<% end %>
<% if params.dig(:import_options, :unknown_mails_invite_role_ids)&.any? %>
<% params.dig(:import_options, :unknown_mails_invite_role_ids).each do |id| %>
- <%= hidden_field :import_options, "unknown_mails_invite_role_ids[]", :name => "import_options[unknown_mails_invite_role_ids][]", :value => id %>
+ <%= hidden_field :import_options, "unknown_mails_invite_role_ids[]", name: "import_options[unknown_mails_invite_role_ids][]", value: id %>
<% end %>
<% end %>
<% if params.dig(:import_options, :non_members_chose_role_ids)&.any? %>
<% params.dig(:import_options, :non_members_chose_role_ids).each do |id| %>
- <%= hidden_field :import_options, "non_members_chose_role_ids[]", :name => "import_options[non_members_chose_role_ids][]", :value => id %>
+ <%= hidden_field :import_options, "non_members_chose_role_ids[]", name: "import_options[non_members_chose_role_ids][]", value: id %>
<% end %>
<% end %>
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb
index 96ed2db6460..0d550518d42 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb
@@ -40,6 +40,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @ifc_model, url: bcf_project_ifc_models_path(@project), html: { multipart: true } do |f| -%>
<%= error_messages_for @ifc_model %>
- <%= render :partial => "form", locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/modules/boards/app/views/boards/boards/new.html.erb b/modules/boards/app/views/boards/boards/new.html.erb
index 55d5905203b..c9a52fad09d 100644
--- a/modules/boards/app/views/boards/boards/new.html.erb
+++ b/modules/boards/app/views/boards/boards/new.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
data: { turbo: false }
} do |f| -%>
- <%= render :partial => "form", :locals => { :f => f } %>
+ <%= render partial: "form", locals: { f: f } %>
<%= styled_button_tag t(:button_create), class: "-primary" %>
<%= link_to t(:button_cancel), { controller: "boards/boards", action: :index },
class: "button" %>
diff --git a/modules/budgets/app/views/budgets/_edit.html.erb b/modules/budgets/app/views/budgets/_edit.html.erb
index 17176260305..9be6ed1c2de 100644
--- a/modules/budgets/app/views/budgets/_edit.html.erb
+++ b/modules/budgets/app/views/budgets/_edit.html.erb
@@ -28,12 +28,12 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= labelled_tabular_form_for @budget,
- :as => :budget,
- :url => budget_path(@budget),
- :html => { :multipart => true,
- :id => "budget_form",
- :class => "form" } do |f| %>
- <%= render :partial => "form", :locals => { :f => f } %>
+ as: :budget,
+ url: budget_path(@budget),
+ html: { multipart: true,
+ id: "budget_form",
+ class: "form" } do |f| %>
+ <%= render partial: "form", locals: { f: f } %>
<div class="generic-table--action-buttons">
<%= styled_button_tag t(:button_submit), class: "-with-icon icon-checkmark -primary", id: "budget-table--submit-button" %>
</div>
diff --git a/modules/budgets/app/views/budgets/_list.html.erb b/modules/budgets/app/views/budgets/_list.html.erb
index bea46d5a7f3..da0f77c9481 100644
--- a/modules/budgets/app/views/budgets/_list.html.erb
+++ b/modules/budgets/app/views/budgets/_list.html.erb
@@ -42,8 +42,8 @@ See COPYRIGHT and LICENSE files for more details.
</colgroup>
<thead>
<tr>
- <%= sort_header_tag("id", :caption => "#", :default_order => "desc") %>
- <%= sort_header_tag("subject", :caption => Budget.human_attribute_name(:subject)) %>
+ <%= sort_header_tag("id", caption: "#", default_order: "desc") %>
+ <%= sort_header_tag("subject", caption: Budget.human_attribute_name(:subject)) %>
<th class="currency">
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
@@ -87,11 +87,11 @@ See COPYRIGHT and LICENSE files for more details.
<% budgets.each do |budget| %>
<tr id="budget-<%= budget.id %>" class="<%= budget.css_classes %>">
<td><%= link_to budget.id, budget_path(budget.id) %></td>
- <%= content_tag(:td, link_to(h(budget.subject), budget_path(budget.id)), :class => "subject") %>
- <%= content_tag(:td, number_to_currency(budget.budget, :precision => 0), :class => "currency") %>
- <%= content_tag(:td, number_to_currency(budget.spent, :precision => 0), :class => "currency") %>
- <%= content_tag(:td, number_to_currency(budget.budget - budget.spent, :precision => 0), :class => "currency") %>
- <%= content_tag(:td, extended_progress_bar(budget.budget_ratio, :legend => "#{budget.budget_ratio}")) %>
+ <%= content_tag(:td, link_to(h(budget.subject), budget_path(budget.id)), class: "subject") %>
+ <%= content_tag(:td, number_to_currency(budget.budget, precision: 0), class: "currency") %>
+ <%= content_tag(:td, number_to_currency(budget.spent, precision: 0), class: "currency") %>
+ <%= content_tag(:td, number_to_currency(budget.budget - budget.spent, precision: 0), class: "currency") %>
+ <%= content_tag(:td, extended_progress_bar(budget.budget_ratio, legend: "#{budget.budget_ratio}")) %>
<%-
total_budget += budget.budget
labor_budget += budget.labor_budget
@@ -104,9 +104,9 @@ See COPYRIGHT and LICENSE files for more details.
<tr>
<td />
<td />
- <td class="currency"><strong><%= number_to_currency(total_budget, :precision => 0) %></strong></td>
- <td class="currency"><strong><%= number_to_currency(spent, :precision => 0) %></strong></td>
- <td class="currency"><strong><%= number_to_currency(total_budget - spent, :precision => 0) %></strong></td>
+ <td class="currency"><strong><%= number_to_currency(total_budget, precision: 0) %></strong></td>
+ <td class="currency"><strong><%= number_to_currency(spent, precision: 0) %></strong></td>
+ <td class="currency"><strong><%= number_to_currency(total_budget - spent, precision: 0) %></strong></td>
<td />
<tr>
<% end %>
diff --git a/modules/budgets/app/views/budgets/edit.html.erb b/modules/budgets/app/views/budgets/edit.html.erb
index f4c64ec2968..3c5e77a5f82 100644
--- a/modules/budgets/app/views/budgets/edit.html.erb
+++ b/modules/budgets/app/views/budgets/edit.html.erb
@@ -39,4 +39,4 @@ See COPYRIGHT and LICENSE files for more details.
)
end
%>
-<%= render :partial => "edit" %>
+<%= render partial: "edit" %>
diff --git a/modules/budgets/app/views/budgets/index.html.erb b/modules/budgets/app/views/budgets/index.html.erb
index 037005f6426..9fe2557595f 100644
--- a/modules/budgets/app/views/budgets/index.html.erb
+++ b/modules/budgets/app/views/budgets/index.html.erb
@@ -56,17 +56,17 @@ See COPYRIGHT and LICENSE files for more details.
<% if @budgets.empty? %>
<%= no_results_box %>
<% else %>
-<%= render :partial => "list", :locals => { :budgets => @budgets } %>
+<%= render partial: "list", locals: { budgets: @budgets } %>
<%= pagination_links_full @budgets %>
<% end %>
<p class="other-formats">
<%= t(:label_export_to) %>
<!--
-<span><%= link_to "Atom", { :query_id => @query, :format => "atom", :key => User.current.rss_key }, :class => "feed" %></span>
+<span><%= link_to "Atom", { query_id: @query, format: "atom", key: User.current.rss_key }, class: "feed" %></span>
-->
-<span><%= link_to "CSV", { :format => "csv" }, :class => "csv" %></span>
+<span><%= link_to "CSV", { format: "csv" }, class: "csv" %></span>
<!--
-<span><%= link_to "PDF", { :format => "pdf" }, :class => "pdf" %></span>
+<span><%= link_to "PDF", { format: "pdf" }, class: "pdf" %></span>
-->
</p>
diff --git a/modules/budgets/app/views/budgets/items/_labor_budget_item.html.erb b/modules/budgets/app/views/budgets/items/_labor_budget_item.html.erb
index d966317e0e7..3d50586ee2b 100644
--- a/modules/budgets/app/views/budgets/items/_labor_budget_item.html.erb
+++ b/modules/budgets/app/views/budgets/items/_labor_budget_item.html.erb
@@ -60,8 +60,8 @@ See COPYRIGHT and LICENSE files for more details.
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
class: "budget-item-value form--text-field",
data: {
- :'request-key' => "hours",
- :'action' => "keyup->costs--budget-subform#valueChanged"
+ 'request-key': "hours",
+ 'action': "keyup->costs--budget-subform#valueChanged"
} %>
</div>
</div>
@@ -75,8 +75,8 @@ See COPYRIGHT and LICENSE files for more details.
index: id_or_index,
class: "form--select budget-item-value",
data: {
- :'request-key' => "user_id",
- :'action' => "change->costs--budget-subform#valueChanged"
+ 'request-key': "user_id",
+ 'action': "change->costs--budget-subform#valueChanged"
}
} %>
diff --git a/modules/budgets/app/views/budgets/items/_material_budget_item.html.erb b/modules/budgets/app/views/budgets/items/_material_budget_item.html.erb
index 4e0ca49b916..0ad05be7f0f 100644
--- a/modules/budgets/app/views/budgets/items/_material_budget_item.html.erb
+++ b/modules/budgets/app/views/budgets/items/_material_budget_item.html.erb
@@ -60,8 +60,8 @@ See COPYRIGHT and LICENSE files for more details.
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
class: "budget-item-value form--text-field",
data: {
- :'request-key' => "units",
- :'action' => "keyup->costs--budget-subform#valueChanged"
+ 'request-key': "units",
+ 'action': "keyup->costs--budget-subform#valueChanged"
} %>
</div>
</div>
@@ -78,8 +78,8 @@ See COPYRIGHT and LICENSE files for more details.
index: id_or_index,
class: "form--select budget-item-value",
data: {
- :'request-key' => "cost_type_id",
- :'action' => "change->costs--budget-subform#valueChanged"
+ 'request-key': "cost_type_id",
+ 'action': "change->costs--budget-subform#valueChanged"
}
} %>
</td>
diff --git a/modules/budgets/app/views/budgets/new.html.erb b/modules/budgets/app/views/budgets/new.html.erb
index 0ee644fb8a4..84a96dc5261 100644
--- a/modules/budgets/app/views/budgets/new.html.erb
+++ b/modules/budgets/app/views/budgets/new.html.erb
@@ -41,11 +41,11 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @budget,
- :url => projects_budgets_path(@project),
- :as => :budget,
- :html => { :multipart => true, :id => "budget_form" } do |f| %>
- <%= render :partial => "form", :locals => { :f => f } %>
+ url: projects_budgets_path(@project),
+ as: :budget,
+ html: { multipart: true, id: "budget_form" } do |f| %>
+ <%= render partial: "form", locals: { f: f } %>
<%= styled_button_tag t(:button_create), class: "-with-icon icon-checkmark", 'data-test-selector': "budgets-create-button" %>
- <%= styled_button_tag t(:button_create_and_continue), :name => "continue",
+ <%= styled_button_tag t(:button_create_and_continue), name: "continue",
class: "button -primary" %>
<% end %>
diff --git a/modules/budgets/app/views/budgets/show.html.erb b/modules/budgets/app/views/budgets/show.html.erb
index 0f799244491..7c520e817f2 100644
--- a/modules/budgets/app/views/budgets/show.html.erb
+++ b/modules/budgets/app/views/budgets/show.html.erb
@@ -42,12 +42,12 @@ See COPYRIGHT and LICENSE files for more details.
component.with_attribute(key: Budget.human_attribute_name(:fixed_date), value: format_date(@budget.fixed_date))
component.with_attribute(
key: Budget.human_attribute_name(:budget_ratio),
- value: extended_progress_bar(@budget.budget_ratio, :width => "80px", :legend => @budget.budget_ratio)
+ value: extended_progress_bar(@budget.budget_ratio, width: "80px", legend: @budget.budget_ratio)
)
component.with_attribute(
key: Budget.human_attribute_name(:description),
value: content_tag(:div, class: "op-uc-container") do
- format_text @budget, :description, :attachments => @budget.attachments
+ format_text @budget, :description, attachments: @budget.attachments
end
)
end %>
@@ -55,7 +55,7 @@ See COPYRIGHT and LICENSE files for more details.
<% resource = budget_attachment_representer(@budget) %>
<%= list_attachments(resource) %>
- <%= render :partial => "show" %>
+ <%= render partial: "show" %>
</div>
<div style="clear: both;"></div>
@@ -63,6 +63,6 @@ See COPYRIGHT and LICENSE files for more details.
<% if authorize_for('budgets', 'edit') %>
<div id="update" style="display:none;">
<h3><%= t(:button_update) %></h3>
- <%= render :partial => "edit" %>
+ <%= render partial: "edit" %>
</div>
<% end %>
diff --git a/modules/calendar/app/views/calendar/calendars/new.html.erb b/modules/calendar/app/views/calendar/calendars/new.html.erb
index 564436960c9..fea58db439e 100644
--- a/modules/calendar/app/views/calendar/calendars/new.html.erb
+++ b/modules/calendar/app/views/calendar/calendars/new.html.erb
@@ -40,8 +40,8 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= labelled_tabular_form_for @view, url: { controller: "/calendar/calendars", action: "create" }, :html => { :id => "calendar-form" } do |f| -%>
- <%= render :partial => "form", :locals => { :f => f } %>
+<%= labelled_tabular_form_for @view, url: { controller: "/calendar/calendars", action: "create" }, html: { id: "calendar-form" } do |f| -%>
+ <%= render partial: "form", locals: { f: f } %>
<%= styled_button_tag t(:button_create), class: "-primary" %>
<%= link_to t(:button_cancel), { controller: "calendar/calendars", action: "index" },
class: "button" %>
diff --git a/modules/costs/app/views/cost_types/_list.html.erb b/modules/costs/app/views/cost_types/_list.html.erb
index 25eb041714d..36dc4b1e523 100644
--- a/modules/costs/app/views/cost_types/_list.html.erb
+++ b/modules/costs/app/views/cost_types/_list.html.erb
@@ -46,9 +46,9 @@ See COPYRIGHT and LICENSE files for more details.
</colgroup>
<thead>
<tr>
- <%= sort_header_tag "name", :caption => CostType.model_name.human %>
- <%= sort_header_tag "unit", :caption => CostType.human_attribute_name(:unit) %>
- <%= sort_header_tag "unit_plural", :caption => CostType.human_attribute_name(:unit_plural) %>
+ <%= sort_header_tag "name", caption: CostType.model_name.human %>
+ <%= sort_header_tag "unit", caption: CostType.human_attribute_name(:unit) %>
+ <%= sort_header_tag "unit_plural", caption: CostType.human_attribute_name(:unit_plural) %>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
@@ -82,12 +82,12 @@ See COPYRIGHT and LICENSE files for more details.
<tbody>
<% cost_types.each do |cost_type| %>
<tr>
- <%= content_tag :td, link_to(cost_type.name, { :controller => "/cost_types", :action => "edit", :id => cost_type }) %>
+ <%= content_tag :td, link_to(cost_type.name, { controller: "/cost_types", action: "edit", id: cost_type }) %>
<%= content_tag :td, cost_type.unit %>
<%= content_tag :td, cost_type.unit_plural %>
- <%= content_tag :td, to_currency_with_empty(cost_type.rate_at(@fixed_date)), :class => "currency", :id => "cost_type_#{cost_type.id}_rate" %>
+ <%= content_tag :td, to_currency_with_empty(cost_type.rate_at(@fixed_date)), class: "currency", id: "cost_type_#{cost_type.id}_rate" %>
<td>
- <%= form_for cost_type, :url => { :controller => "/cost_types", :action => "set_rate", :id => cost_type }, method: :put, html: { class: "inline-label" } do |f| %>
+ <%= form_for cost_type, url: { controller: "/cost_types", action: "set_rate", id: cost_type }, method: :put, html: { class: "inline-label" } do |f| %>
<label class="hidden-for-sighted" for="<%= "rate_field_#{cost_type.id}" %>"><%= t(:caption_set_rate) %></label>
<%= content_tag :input,
"",
diff --git a/modules/costs/app/views/cost_types/_list_deleted.html.erb b/modules/costs/app/views/cost_types/_list_deleted.html.erb
index 916ab0fc569..24f37d5fa67 100644
--- a/modules/costs/app/views/cost_types/_list_deleted.html.erb
+++ b/modules/costs/app/views/cost_types/_list_deleted.html.erb
@@ -45,9 +45,9 @@ See COPYRIGHT and LICENSE files for more details.
</colgroup>
<thead>
<tr>
- <%= sort_header_tag("name", :caption => CostType.model_name.human) %>
- <%= sort_header_tag("unit", :caption => CostType.human_attribute_name(:unit)) %>
- <%= sort_header_tag("unit_plural", :caption => CostType.human_attribute_name(:unit_plural)) %>
+ <%= sort_header_tag("name", caption: CostType.model_name.human) %>
+ <%= sort_header_tag("unit", caption: CostType.human_attribute_name(:unit)) %>
+ <%= sort_header_tag("unit_plural", caption: CostType.human_attribute_name(:unit_plural)) %>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
@@ -75,7 +75,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= content_tag :td, cost_type.name %>
<%= content_tag :td, cost_type.unit %>
<%= content_tag :td, cost_type.unit_plural %>
- <%= content_tag :td, to_currency_with_empty(cost_type.rate_at(@fixed_date)), :class => "currency" %>
+ <%= content_tag :td, to_currency_with_empty(cost_type.rate_at(@fixed_date)), class: "currency" %>
<%= content_tag :td, cost_type.deleted_at.to_date %>
<td class="buttons">
<%= form_for cost_type, url: restore_cost_type_path(cost_type),
diff --git a/modules/costs/app/views/costlog/edit.html.erb b/modules/costs/app/views/costlog/edit.html.erb
index 4501a3ba595..e3604fb1286 100644
--- a/modules/costs/app/views/costlog/edit.html.erb
+++ b/modules/costs/app/views/costlog/edit.html.erb
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @cost_entry, url: url, html: { method: method } do |f| %>
<%= error_messages_for "cost_entry" %>
<%= back_url_hidden_field_tag %>
- <%= f.hidden_field :element_id, value: "cost_entry", class: "remote-field--input", data: { :'remote-field-key' => "element_id" } %>
+ <%= f.hidden_field :element_id, value: "cost_entry", class: "remote-field--input", data: { 'remote-field-key': "element_id" } %>
<div class="form--field -required">
<%= f.text_field :work_package_id,
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -required">
<%= f.date_picker :spent_on,
required: true,
- data: { :'remote-field-key' => "fixed_date" } %>
+ data: { 'remote-field-key': "fixed_date" } %>
<label for="cost_entry_spent_on" class="hidden-for-sighted"><%= t(:label_date) %> <%= t(:text_hint_date_format) %></label>
</div>
<% if User.current.allowed_in_project? :log_costs, @project %>
@@ -83,7 +83,7 @@ See COPYRIGHT and LICENSE files for more details.
{
required: true,
class: "remote-field--input",
- data: { :'remote-field-key' => "cost_type_id" }
+ data: { 'remote-field-key': "cost_type_id" }
} %></p>
</div>
<div class="form--field -required">
@@ -102,7 +102,7 @@ See COPYRIGHT and LICENSE files for more details.
suffix: h(suffix),
suffix_id: "cost_entry_unit_name",
class: "remote-field--input",
- data: { :'remote-field-key' => "units" },
+ data: { 'remote-field-key': "units" },
container_class: "-slim" %>
<% end %>
</div>
diff --git a/modules/costs/app/views/hourly_rates/_list.html.erb b/modules/costs/app/views/hourly_rates/_list.html.erb
index 8cb816bc530..ed6214e8d94 100644
--- a/modules/costs/app/views/hourly_rates/_list.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list.html.erb
@@ -28,5 +28,5 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% @rates.each_pair do |project, rates| %>
- <%= render :partial => "hourly_rates/list_project", :locals => { rates: rates, project: project, all_rates: @rates } %>
+ <%= render partial: "hourly_rates/list_project", locals: { rates: rates, project: project, all_rates: @rates } %>
<% end %>
diff --git a/modules/costs/app/views/hourly_rates/_list_default.html.erb b/modules/costs/app/views/hourly_rates/_list_default.html.erb
index 5429dd31b81..d86621aa5f9 100644
--- a/modules/costs/app/views/hourly_rates/_list_default.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_default.html.erb
@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="user-rate-history-list">
<div class="contextual">
- <%= link_to t(:button_update), edit_hourly_rate_path(@user), :class => "icon icon-edit", :accesskey => accesskey(:edit) %>
+ <%= link_to t(:button_update), edit_hourly_rate_path(@user), class: "icon icon-edit", accesskey: accesskey(:edit) %>
</div>
<h3><%= User.human_attribute_name(:default_rates) %></h3>
<% if @rates_default.blank? %>
diff --git a/modules/costs/app/views/hourly_rates/_list_project.html.erb b/modules/costs/app/views/hourly_rates/_list_project.html.erb
index c0db14b968c..76681eb901c 100644
--- a/modules/costs/app/views/hourly_rates/_list_project.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_project.html.erb
@@ -40,7 +40,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="user-rate-history-list">
<div class="contextual">
<% if project && User.current.allowed_in_project?({:controller => '/hourly_rates', :action => 'edit'}, project) %>
- <%= link_to t(:button_update), { :controller => "/hourly_rates", :action => "edit", :project_id => project, :id => @user }, :class => "icon icon-edit", :accesskey => accesskey(:edit) %>
+ <%= link_to t(:button_update), { controller: "/hourly_rates", action: "edit", project_id: project, id: @user }, class: "icon icon-edit", accesskey: accesskey(:edit) %>
<% end %>
</div>
<h3><%= h project.name %><%= (" - " + number_to_currency(current_rate.rate)) if current_rate %></h3>
diff --git a/modules/costs/app/views/hourly_rates/show.html.erb b/modules/costs/app/views/hourly_rates/show.html.erb
index 7b7a0388bc7..2bb9712dbfc 100644
--- a/modules/costs/app/views/hourly_rates/show.html.erb
+++ b/modules/costs/app/views/hourly_rates/show.html.erb
@@ -51,8 +51,8 @@ See COPYRIGHT and LICENSE files for more details.
<% if @project %>
<% html_title t(:caption_rate_history_for, user: @user.name) %>
- <%= render :partial => "list_project" %>
+ <%= render partial: "list_project" %>
<% else %>
- <%= render :partial => "list_default" %>
- <%= render :partial => "list" %>
+ <%= render partial: "list_default" %>
+ <%= render partial: "list" %>
<% end %>
diff --git a/modules/costs/app/views/users/_rates.html.erb b/modules/costs/app/views/users/_rates.html.erb
index 890669441c8..996e0cc446f 100644
--- a/modules/costs/app/views/users/_rates.html.erb
+++ b/modules/costs/app/views/users/_rates.html.erb
@@ -32,5 +32,5 @@ See COPYRIGHT and LICENSE files for more details.
@rates_default = @rates.delete(nil)
%>
-<%= render :partial => "hourly_rates/list_default" %>
-<%= render :partial => "hourly_rates/list" %>
+<%= render partial: "hourly_rates/list_default" %>
+<%= render partial: "hourly_rates/list" %>
diff --git a/modules/documents/app/views/documents/_document.html.erb b/modules/documents/app/views/documents/_document.html.erb
index ec74b1afbcd..40cbc14b664 100644
--- a/modules/documents/app/views/documents/_document.html.erb
+++ b/modules/documents/app/views/documents/_document.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<h4 class="document-category-elements--header"><%= link_to h(document.title), :controller => "/documents", :action => "show", :id => document %></h4>
+<h4 class="document-category-elements--header"><%= link_to h(document.title), controller: "/documents", action: "show", id: document %></h4>
<p class="document-category-elements--date"><em><%= format_time(document.updated_at) %></em></p>
<div class="wiki op-uc-container">
diff --git a/modules/documents/app/views/documents/index.html.erb b/modules/documents/app/views/documents/index.html.erb
index c6814989274..e8b1f530a1f 100644
--- a/modules/documents/app/views/documents/index.html.erb
+++ b/modules/documents/app/views/documents/index.html.erb
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_document_new) },
title: t(:label_document_new),
tag: :a,
- href: url_for({ :controller => "/documents", :action => "new", :project_id => @project })
+ href: url_for({ controller: "/documents", action: "new", project_id: @project })
) do |button|
button.with_leading_visual_icon(icon: :plus)
t("activerecord.models.document")
@@ -62,14 +62,14 @@ See COPYRIGHT and LICENSE files for more details.
<%= augmented_collapsible_section title: group do %>
<div class="document-category--inner-section">
<div class="form--field document-category-elements">
- <%= render :partial => "documents/document", :collection => @grouped[group] %>
+ <%= render partial: "documents/document", collection: @grouped[group] %>
</div>
</div>
<% end %>
<% end %>
<% content_for :sidebar do %>
- <%= form_tag({}, :method => :get, class: "sidebar--document-sort") do %>
+ <%= form_tag({}, method: :get, class: "sidebar--document-sort") do %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:label_group_by) %></legend>
<p>
diff --git a/modules/documents/app/views/documents/new.html.erb b/modules/documents/app/views/documents/new.html.erb
index c0ce926ebe9..dfd361b64d3 100644
--- a/modules/documents/app/views/documents/new.html.erb
+++ b/modules/documents/app/views/documents/new.html.erb
@@ -39,6 +39,6 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @document, url: project_documents_path(@project), html: { multipart: true } do |f| -%>
- <%= render :partial => "documents/form", locals: { f: f } %>
+ <%= render partial: "documents/form", locals: { f: f } %>
<%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/modules/meeting/app/views/meeting_contents/_show.html.erb b/modules/meeting/app/views/meeting_contents/_show.html.erb
index c698ef14886..835dde375e2 100644
--- a/modules/meeting/app/views/meeting_contents/_show.html.erb
+++ b/modules/meeting/app/views/meeting_contents/_show.html.erb
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if can_edit_meeting_content?(content, content_type) -%>
<div data-meeting-content-target="editor"
hidden>
- <%= render(:partial => "meeting_contents/form", :locals => { :content => content, :content_type => content_type }) %>
+ <%= render(partial: "meeting_contents/form", locals: { content: content, content_type: content_type }) %>
</div>
<% end -%>
@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.
hidden>
<% if saved_meeting_content_text_present?(content) -%>
<div class="wiki op-uc-container">
- <%= format_text(content.text, :object => @meeting) %>
+ <%= format_text(content.text, object: @meeting) %>
</div>
<% else -%>
<%= no_results_box %>
diff --git a/modules/meeting/app/views/meeting_contents/history.html.erb b/modules/meeting/app/views/meeting_contents/history.html.erb
index 59d4c1c4312..7db9d3e62e5 100644
--- a/modules/meeting/app/views/meeting_contents/history.html.erb
+++ b/modules/meeting/app/views/meeting_contents/history.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<h3><%= t(:label_history) %></h3>
-<%= form_tag({ :action => "diff" }, :method => :get) do %>
+<%= form_tag({ action: "diff" }, method: :get) do %>
<div class="generic-table--container"
data-application-target="dynamic"
data-controller="journal-history">
@@ -99,7 +99,7 @@ See COPYRIGHT and LICENSE files for more details.
<tr>
<td class="id -short">
<%= content_version.version == @content.last_journal.version ?
- link_to(content_version.version, tab_meeting_path(@meeting, :tab => @content_type.sub(/^meeting_/, "")), id: "version-#{content_version.version}") :
+ link_to(content_version.version, tab_meeting_path(@meeting, tab: @content_type.sub(/^meeting_/, "")), id: "version-#{content_version.version}") :
link_to(content_version.version, send(:"#{@content_type}_version_path", @meeting, content_version.version), id: "version-#{content_version.version}") %>
</td>
<td class="checkbox -short">
diff --git a/modules/meeting/app/views/meetings/_form.html.erb b/modules/meeting/app/views/meetings/_form.html.erb
index 3f7f2aada86..823d6e71884 100644
--- a/modules/meeting/app/views/meetings/_form.html.erb
+++ b/modules/meeting/app/views/meetings/_form.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<div class="form--field -required">
- <%= f.text_field :title, :required => true, :size => 60, container_class: "-wide" %>
+ <%= f.text_field :title, required: true, size: 60, container_class: "-wide" %>
</div>
<% copy_from = local_assigns[:copy_from] %>
@@ -91,7 +91,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<div class="form--field">
- <%= f.text_field :location, :size => 60, container_class: "-wide" %>
+ <%= f.text_field :location, size: 60, container_class: "-wide" %>
</div>
<div class="form--field -required">
diff --git a/modules/meeting/app/views/meetings/_participants_section.html.erb b/modules/meeting/app/views/meetings/_participants_section.html.erb
index c0ff4b9cfc1..807ff52e541 100644
--- a/modules/meeting/app/views/meetings/_participants_section.html.erb
+++ b/modules/meeting/app/views/meetings/_participants_section.html.erb
@@ -48,21 +48,21 @@ See COPYRIGHT and LICENSE files for more details.
<% if @meeting.participants.present? && participant = @meeting.participants.detect{|p| p.user_id == user.id} -%>
<%= hidden_field_tag "meeting[participants_attributes][][id]", participant.id %>
<td class="form--matrix-checkbox-cell">
- <%= label_tag "checkbox_invited_#{user.id}", user.name + " " + t(:description_invite), :class => "hidden-for-sighted" %>
- <%= styled_check_box_tag "meeting[participants_attributes][][invited]", 1, participant.invited?, :id => "checkbox_invited_#{user.id}" %>
+ <%= label_tag "checkbox_invited_#{user.id}", user.name + " " + t(:description_invite), class: "hidden-for-sighted" %>
+ <%= styled_check_box_tag "meeting[participants_attributes][][invited]", 1, participant.invited?, id: "checkbox_invited_#{user.id}" %>
</td>
<td class="form--matrix-checkbox-cell">
- <%= label_tag "checkbox_attended_#{user.id}", user.name + " " + t(:description_attended), :class => "hidden-for-sighted" %>
- <%= styled_check_box_tag "meeting[participants_attributes][][attended]", 1, participant.attended?, :id => "checkbox_attended_#{user.id}" %>
+ <%= label_tag "checkbox_attended_#{user.id}", user.name + " " + t(:description_attended), class: "hidden-for-sighted" %>
+ <%= styled_check_box_tag "meeting[participants_attributes][][attended]", 1, participant.attended?, id: "checkbox_attended_#{user.id}" %>
</td>
<% else -%>
<td class="form--matrix-checkbox-cell">
- <%= label_tag "checkbox_invited_#{user.id}", user.name + " " + t(:description_invite), :class => "hidden-for-sighted" %>
- <%= styled_check_box_tag "meeting[participants_attributes][][invited]", value = "1", checked = false, :id => "checkbox_invited_#{user.id}" %>
+ <%= label_tag "checkbox_invited_#{user.id}", user.name + " " + t(:description_invite), class: "hidden-for-sighted" %>
+ <%= styled_check_box_tag "meeting[participants_attributes][][invited]", value = "1", checked = false, id: "checkbox_invited_#{user.id}" %>
</td>
<td class="form--matrix-checkbox-cell">
- <%= label_tag "checkbox_attended_#{user.id}", user.name + " " + t(:description_attended), :class => "hidden-for-sighted" %>
- <%= styled_check_box_tag "meeting[participants_attributes][][attended]", value = "1", checked = false, :id => "checkbox_attended_#{user.id}" %>
+ <%= label_tag "checkbox_attended_#{user.id}", user.name + " " + t(:description_attended), class: "hidden-for-sighted" %>
+ <%= styled_check_box_tag "meeting[participants_attributes][][attended]", value = "1", checked = false, id: "checkbox_attended_#{user.id}" %>
</td>
<% end -%>
</tr>
diff --git a/modules/meeting/app/views/meetings/edit.html.erb b/modules/meeting/app/views/meetings/edit.html.erb
index ffed4c137c8..b83959c2f38 100644
--- a/modules/meeting/app/views/meetings/edit.html.erb
+++ b/modules/meeting/app/views/meetings/edit.html.erb
@@ -30,9 +30,9 @@ See COPYRIGHT and LICENSE files for more details.
<% html_title "#{t(:label_meeting_edit)}: #{@meeting.title}" %>
<%= toolbar title: "#{t(:label_meeting)} ##{@meeting.id}" %>
-<%= labelled_tabular_form_for @meeting, :url => { :controller => "/meetings", :action => "update" }, :html => { :id => "meeting-form", :method => :put } do |f| -%>
- <%= render :partial => "form", :locals => { :f => f } %>
+<%= labelled_tabular_form_for @meeting, url: { controller: "/meetings", action: "update" }, html: { id: "meeting-form", method: :put } do |f| -%>
+ <%= render partial: "form", locals: { f: f } %>
<%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
-<%= link_to t(:button_cancel), { :action => "show", :id => @meeting },
+<%= link_to t(:button_cancel), { action: "show", id: @meeting },
class: "button -with-icon icon-cancel" %>
<% end if @project %>
diff --git a/modules/meeting/app/views/meetings/new.html.erb b/modules/meeting/app/views/meetings/new.html.erb
index fd66e96b170..4d52e044baa 100644
--- a/modules/meeting/app/views/meetings/new.html.erb
+++ b/modules/meeting/app/views/meetings/new.html.erb
@@ -55,17 +55,17 @@ See COPYRIGHT and LICENSE files for more details.
as: :meeting,
url: { controller: "/meetings", action: "create", project_id: @project },
html: {
- :id => "meeting-form",
+ id: "meeting-form",
target: "_top",
- :data => {
+ data: {
turbo: false,
controller: "refresh-on-form-changes",
'refresh-on-form-changes-target': "form",
'refresh-on-form-changes-turbo-stream-url-value': new_meeting_url
}
} do |f| -%>
- <%= render :partial => "form", :locals => { f:, copy_from: } %>
+ <%= render partial: "form", locals: { f:, copy_from: } %>
<%= styled_button_tag t(:button_create), class: "-primary" %>
- <%= link_to t(:button_cancel), { :action => "index", :project_id => @project },
+ <%= link_to t(:button_cancel), { action: "index", project_id: @project },
class: "button" %>
<% end %>
diff --git a/modules/meeting/app/views/meetings/show.html.erb b/modules/meeting/app/views/meetings/show.html.erb
index 10ae4a4b827..6b1323afb4b 100644
--- a/modules/meeting/app/views/meetings/show.html.erb
+++ b/modules/meeting/app/views/meetings/show.html.erb
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% if authorize_for(:meetings, :edit) %>
<li class="toolbar-item">
- <%= link_to({ :controller => "/meetings", :action => "edit", :id => @meeting }, class: "button", :accesskey => accesskey(:edit)) do %>
+ <%= link_to({ controller: "/meetings", action: "edit", id: @meeting }, class: "button", accesskey: accesskey(:edit)) do %>
<%= op_icon("button--icon icon-edit") %>
<span class="button--text"><%= t(:button_edit) %></span>
<% end %>
@@ -124,8 +124,8 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
-<%= render_tabs [{ :name => "agenda", :action => :create_meeting_agendas, :partial => "meeting_contents/show", :path => meeting_agenda_path(@meeting), :label => :label_meeting_agenda, :content => @meeting.agenda || @meeting.build_agenda, :content_type => "meeting_agenda" },
- { :name => "minutes", :action => :create_meeting_minutes, :partial => "meeting_contents/show", :path => meeting_minutes_path(@meeting), :label => :label_meeting_minutes, :content => @meeting.minutes || @meeting.build_minutes, :content_type => "meeting_minutes" }] %>
+<%= render_tabs [{ name: "agenda", action: :create_meeting_agendas, partial: "meeting_contents/show", path: meeting_agenda_path(@meeting), label: :label_meeting_agenda, content: @meeting.agenda || @meeting.build_agenda, content_type: "meeting_agenda" },
+ { name: "minutes", action: :create_meeting_minutes, partial: "meeting_contents/show", path: meeting_minutes_path(@meeting), label: :label_meeting_minutes, content: @meeting.minutes || @meeting.build_minutes, content_type: "meeting_minutes" }] %>
<% if @meeting.journals.changing.present? %>
<div id="history">
diff --git a/modules/meeting/app/views/recurring_meetings/new.html.erb b/modules/meeting/app/views/recurring_meetings/new.html.erb
index ee48490b96c..5be2516b428 100644
--- a/modules/meeting/app/views/recurring_meetings/new.html.erb
+++ b/modules/meeting/app/views/recurring_meetings/new.html.erb
@@ -43,9 +43,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= primer_form_with(
model: @recurring_meeting,
- url: { :controller => "/recurring_meetings", :action => "create", :project_id => @project }
+ url: { controller: "/recurring_meetings", action: "create", project_id: @project }
) do |f| %>
- <%= render :partial => "form", locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<%= render Primer::Beta::Button.new(type: :submit, scheme: :primary, mt: 3) do %>
<%= t(:button_create) %>
diff --git a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb b/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
index dc74c499a8e..99ec01e6c0c 100644
--- a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
+++ b/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
@@ -2,7 +2,7 @@
<% breadcrumb_paths(t("recaptcha.label_recaptcha")) %>
<div id="login-form" class="form -bordered">
<h2 class="mb-3"><%= t "recaptcha.verify_account" %></h2>
- <%= styled_form_tag({ action: :verify }, { :autocomplete => "off", :id => "submit_captcha" }) do %>
+ <%= styled_form_tag({ action: :verify }, { autocomplete: "off", id: "submit_captcha" }) do %>
<% if [OpenProject::Recaptcha::TYPE_V2, OpenProject::Recaptcha::TYPE_HCAPTCHA].include?(recaptcha_settings['recaptcha_type']) %>
<% input_name = "g-recaptcha-response" %>
<input type="hidden" name="<%= input_name %>">
diff --git a/modules/reporting/app/views/cost_reports/index.html.erb b/modules/reporting/app/views/cost_reports/index.html.erb
index 2c7d3f58332..62437313238 100644
--- a/modules/reporting/app/views/cost_reports/index.html.erb
+++ b/modules/reporting/app/views/cost_reports/index.html.erb
@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render CostReports::IndexPageHeaderComponent.new(query: @query, project: @project) %>
-<%= render_widget Widget::Settings, @query, :cost_types => @cost_types, :selected_type_id => @unit_id %>
+<%= render_widget Widget::Settings, @query, cost_types: @cost_types, selected_type_id: @unit_id %>
<div id="result-table">
<%= render_widget Widget::Table, @query %>
diff --git a/modules/team_planner/app/views/team_planner/team_planner/new.html.erb b/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
index 5ec34446963..1c0454d3bae 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
@@ -39,8 +39,8 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= labelled_tabular_form_for @view, url: { controller: "/team_planner/team_planner", action: "create" }, :html => { :id => "team-planner-form" } do |f| -%>
- <%= render :partial => "form", :locals => { :f => f } %>
+<%= labelled_tabular_form_for @view, url: { controller: "/team_planner/team_planner", action: "create" }, html: { id: "team-planner-form" } do |f| -%>
+ <%= render partial: "form", locals: { f: f } %>
<%= styled_button_tag t(:button_create), class: "-primary" %>
<%= link_to t(:button_cancel), { controller: "team_planner/team_planner", action: "overview" },
class: "button" %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
index cd15fb4d399..312ded919a7 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
@@ -1,7 +1,7 @@
<% html_title t(:field_otp) %>
<% breadcrumb_paths(t(:field_otp)) %>
<div id="login-form" class="form -bordered">
- <%= styled_form_tag({ action: :verify_backup_code }, { :autocomplete => "off", :id => "submit_backup_code" }) do %>
+ <%= styled_form_tag({ action: :verify_backup_code }, { autocomplete: "off", id: "submit_backup_code" }) do %>
<h2><%= t "two_factor_authentication.login.enter_backup_code_title" %></h2>
<p><%= I18n.t("two_factor_authentication.login.enter_backup_code_text") %></p>
<hr class="form--separator">