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 trailing commas

Ivan Kuchinca5f8fb878f6
diff --git a/app/components/groups/edit_page_header_component.html.erb b/app/components/groups/edit_page_header_component.html.erb
index fa6d94f276c..78c4ff06639 100644
--- a/app/components/groups/edit_page_header_component.html.erb
+++ b/app/components/groups/edit_page_header_component.html.erb
@@ -55,7 +55,7 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: I18n.t(:button_delete) },
data: {
confirm: t(:text_are_you_sure),
- method: :delete,
+ method: :delete
},
title: I18n.t(:button_delete)
) do |button|
diff --git a/app/components/groups/show_page_header_component.html.erb b/app/components/groups/show_page_header_component.html.erb
index cce6470cc23..e06660c8357 100644
--- a/app/components/groups/show_page_header_component.html.erb
+++ b/app/components/groups/show_page_header_component.html.erb
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: I18n.t(:button_delete) },
data: {
confirm: t(:text_are_you_sure),
- method: :delete,
+ method: :delete
},
title: I18n.t(:button_delete)
) do |button|
diff --git a/app/components/op_primer/border_box_row_component.html.erb b/app/components/op_primer/border_box_row_component.html.erb
index 51d4e859939..6de26e7786a 100644
--- a/app/components/op_primer/border_box_row_component.html.erb
+++ b/app/components/op_primer/border_box_row_component.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
render Primer::BaseComponent.new(
tag: :div,
id: row_css_id,
- classes: "#{table.grid_class} #{row_css_class}",
+ classes: "#{table.grid_class} #{row_css_class}"
) do
%>
<% columns.each do |column| %>
diff --git a/app/components/op_primer/border_box_table_component.html.erb b/app/components/op_primer/border_box_table_component.html.erb
index 48c570ce96b..9efdd2d5ec6 100644
--- a/app/components/op_primer/border_box_table_component.html.erb
+++ b/app/components/op_primer/border_box_table_component.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
render(
border_box_container(
classes: container_class,
- test_selector:,
+ test_selector:
)
) do |component|
component.with_header(classes: grid_class, color: :muted) do
diff --git a/app/components/open_project/common/submenu_component.html.erb b/app/components/open_project/common/submenu_component.html.erb
index bdbffbe7b01..5ff89b510cd 100644
--- a/app/components/open_project/common/submenu_component.html.erb
+++ b/app/components/open_project/common/submenu_component.html.erb
@@ -12,7 +12,7 @@
action: "input->filter--filter-list#filterLists",
"filter--filter-list-target": "filter",
"test-selector": "op-submenu--search-input"
- },
+ }
) %>
<%= render Primer::Beta::Text.new(
@@ -20,7 +20,7 @@
classes: "op-submenu--search-no-results-container",
data: {
"test-selector": "op-submenu--search-no-results",
- "filter--filter-list-target": "noResultsText",
+ "filter--filter-list-target": "noResultsText"
}
) do
I18n.t("js.autocompleter.notFoundText")
diff --git a/app/components/projects/index_page_header_component.html.erb b/app/components/projects/index_page_header_component.html.erb
index dd7c48bdfa5..e5dd6f2818c 100644
--- a/app/components/projects/index_page_header_component.html.erb
+++ b/app/components/projects/index_page_header_component.html.erb
@@ -54,7 +54,7 @@
classes: "op-primer--star-icon",
tag: :a,
href: helpers.build_favorite_path(query, format: :html),
- data: { method: :delete, "test-selector": "project-query-unfavorite" },
+ data: { method: :delete, "test-selector": "project-query-unfavorite" }
)
else
header.with_action_icon_button(
@@ -63,7 +63,7 @@
label: t(:button_favorite),
tag: :a,
href: helpers.build_favorite_path(query, format: :html),
- data: { method: :post, "test-selector": "project-query-favorite" },
+ data: { method: :post, "test-selector": "project-query-favorite" }
)
end
end
@@ -81,7 +81,7 @@
if can_rename?
menu.with_item(
label: t("button_rename"),
- href: rename_project_query_path(query),
+ href: rename_project_query_path(query)
) do |item|
item.with_leading_visual_icon(icon: :pencil)
end
diff --git a/app/components/projects/settings/index_page_header_component.html.erb b/app/components/projects/settings/index_page_header_component.html.erb
index c2b0d670b49..c9d2e440817 100644
--- a/app/components/projects/settings/index_page_header_component.html.erb
+++ b/app/components/projects/settings/index_page_header_component.html.erb
@@ -55,7 +55,7 @@
data: { turbo: false },
test_selector: "project-settings--copy"
},
- accesskey: helpers.accesskey(:copy),
+ accesskey: helpers.accesskey(:copy)
) do |item|
item.with_leading_visual_icon(icon: :copy)
end
@@ -67,7 +67,7 @@
label: t(:button_archive),
href: project_archive_path(@project, status: "", name: @project.name),
content_arguments: {
- data: { confirm: t("project.archive.are_you_sure", name: @project.name), method: :post, },
+ data: { confirm: t("project.archive.are_you_sure", name: @project.name), method: :post },
test_selector: "project-settings--archive"
}
) do |item|
diff --git a/app/components/projects/settings/life_cycle_steps/index_component.html.erb b/app/components/projects/settings/life_cycle_steps/index_component.html.erb
index c77a5ff3268..4f9ce4fa6f7 100644
--- a/app/components/projects/settings/life_cycle_steps/index_component.html.erb
+++ b/app/components/projects/settings/life_cycle_steps/index_component.html.erb
@@ -88,7 +88,7 @@
render Primer::Beta::Text.new(
display: :none,
data: {
- "projects--settings--border-box-filter-target": "noResultsText",
+ "projects--settings--border-box-filter-target": "noResultsText"
}
) do
I18n.t("js.autocompleter.notFoundText")
diff --git a/app/components/projects/settings/life_cycle_steps/step_component.html.erb b/app/components/projects/settings/life_cycle_steps/step_component.html.erb
index 6cd3026c60a..77f5a03f3ea 100644
--- a/app/components/projects/settings/life_cycle_steps/step_component.html.erb
+++ b/app/components/projects/settings/life_cycle_steps/step_component.html.erb
@@ -26,7 +26,7 @@
checked: active?,
size: :small,
status_label_position: :start,
- classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",
+ classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator"
)
)
end
diff --git a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb
index 2bf3fb6d4d8..7e00e30035c 100644
--- a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb
+++ b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb
@@ -45,7 +45,7 @@
enabled: !@project_custom_field.required?, # required fields cannot be disabled
size: :small,
status_label_position: :start,
- classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",
+ classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator"
)
)
end
diff --git a/app/components/projects/settings/project_custom_field_sections/show_component.html.erb b/app/components/projects/settings/project_custom_field_sections/show_component.html.erb
index 2d3231b42bf..6d28ad1f449 100644
--- a/app/components/projects/settings/project_custom_field_sections/show_component.html.erb
+++ b/app/components/projects/settings/project_custom_field_sections/show_component.html.erb
@@ -72,7 +72,7 @@
render(
Projects::Settings::ProjectCustomFieldSections::CustomFieldRowComponent.new(
project: @project,
- project_custom_field:,
+ project_custom_field:
)
)
end
diff --git a/app/components/settings/project_life_cycle_step_definitions/index_component.html.erb b/app/components/settings/project_life_cycle_step_definitions/index_component.html.erb
index 4c0da38678a..316c0311822 100644
--- a/app/components/settings/project_life_cycle_step_definitions/index_component.html.erb
+++ b/app/components/settings/project_life_cycle_step_definitions/index_component.html.erb
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
) do |menu|
menu.with_show_button(
scheme: :primary,
- aria: { label: I18n.t("settings.project_life_cycle_step_definitions.label_add_description") },
+ aria: { label: I18n.t("settings.project_life_cycle_step_definitions.label_add_description") }
) do |button|
button.with_leading_visual_icon(icon: :plus)
button.with_trailing_action_icon(icon: :"triangle-down")
@@ -114,7 +114,7 @@ See COPYRIGHT and LICENSE files for more details.
Settings::ProjectLifeCycleStepDefinitions::RowComponent.new(
definition,
first?: definition == definitions.first,
- last?: definition == definitions.last,
+ last?: definition == definitions.last
)
)
end
diff --git a/app/components/shares/empty_state_component.html.erb b/app/components/shares/empty_state_component.html.erb
index a41d292058c..eaf0f375c70 100644
--- a/app/components/shares/empty_state_component.html.erb
+++ b/app/components/shares/empty_state_component.html.erb
@@ -1,7 +1,7 @@
<%= render(Primer::Beta::Blankslate.new) do |component|
component.with_visual_icon(icon: blankslate_config[:icon], size: :medium)
component.with_heading(tag: :h2).with_content(
- blankslate_config[:heading_text],
+ blankslate_config[:heading_text]
)
component.with_description do
flex_layout do |flex|
diff --git a/app/components/shares/project_queries/empty_state_component.html.erb b/app/components/shares/project_queries/empty_state_component.html.erb
index a41d292058c..eaf0f375c70 100644
--- a/app/components/shares/project_queries/empty_state_component.html.erb
+++ b/app/components/shares/project_queries/empty_state_component.html.erb
@@ -1,7 +1,7 @@
<%= render(Primer::Beta::Blankslate.new) do |component|
component.with_visual_icon(icon: blankslate_config[:icon], size: :medium)
component.with_heading(tag: :h2).with_content(
- blankslate_config[:heading_text],
+ blankslate_config[:heading_text]
)
component.with_description do
flex_layout do |flex|
diff --git a/app/components/work_packages/activities_tab/journals/item_component.html.erb b/app/components/work_packages/activities_tab/journals/item_component.html.erb
index 96a6f9a3bb1..7ef52962646 100644
--- a/app/components/work_packages/activities_tab/journals/item_component.html.erb
+++ b/app/components/work_packages/activities_tab/journals/item_component.html.erb
@@ -13,7 +13,7 @@
"aria-label": I18n.t("activities.work_packages.activity_tab.commented"),
data: {
"anchor-activity-id": journal.sequence_version,
- "anchor-comment-id": journal.id,
+ "anchor-comment-id": journal.id
}
)
) do |border_box_component|
diff --git a/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb b/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb
index 3bb4f7aa7e9..4e4b254e909 100644
--- a/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb
+++ b/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb
@@ -32,7 +32,7 @@
data: {
turbo_stream: true,
turbo_method: :put,
- "work-packages--activities-tab--index-target": "reactionButton",
+ "work-packages--activities-tab--index-target": "reactionButton"
},
aria: { label: I18n.t("reactions.react_with", reaction: reaction.to_s.humanize(capitalize: false)) }
)
diff --git a/app/components/work_packages/activities_tab/journals/item_component/edit.html.erb b/app/components/work_packages/activities_tab/journals/item_component/edit.html.erb
index 45a6850f905..34b292dadc0 100644
--- a/app/components/work_packages/activities_tab/journals/item_component/edit.html.erb
+++ b/app/components/work_packages/activities_tab/journals/item_component/edit.html.erb
@@ -6,7 +6,7 @@
model: journal,
method: :put,
data: { turbo: true, turbo_stream: true, test_selector: "op-work-package-journal-form-element" },
- url: work_package_activity_path(work_package_id: work_package.id, id: journal.id, filter:),
+ url: work_package_activity_path(work_package_id: work_package.id, id: journal.id, filter:)
) do |f|
flex_layout do |form_container|
form_container.with_row do
diff --git a/app/components/work_packages/activities_tab/journals/new_component.html.erb b/app/components/work_packages/activities_tab/journals/new_component.html.erb
index 5848ce05a53..0651e66aa34 100644
--- a/app/components/work_packages/activities_tab/journals/new_component.html.erb
+++ b/app/components/work_packages/activities_tab/journals/new_component.html.erb
@@ -51,7 +51,7 @@
action: "submit->work-packages--activities-tab--index#onSubmit",
test_selector: "op-work-package-journal-form-element"
},
- url: work_package_activities_path(work_package_id: work_package.id),
+ url: work_package_activities_path(work_package_id: work_package.id)
) do |f|
flex_layout(justify_content: :space_between, align_items: :flex_end) do |form_container|
form_container.with_column(
diff --git a/app/components/work_packages/details/tab_component.html.erb b/app/components/work_packages/details/tab_component.html.erb
index 9e3d051f7e8..83862a85a03 100644
--- a/app/components/work_packages/details/tab_component.html.erb
+++ b/app/components/work_packages/details/tab_component.html.erb
@@ -26,7 +26,7 @@
align: :left,
label: "Tabs",
data: {
- "work-packages--details--tabs-target": "underlineNav",
+ "work-packages--details--tabs-target": "underlineNav"
}
)
) do |component|
diff --git a/app/components/work_packages/exports/column_selection_component.html.erb b/app/components/work_packages/exports/column_selection_component.html.erb
index f3fac663d74..ae76bbb2da6 100644
--- a/app/components/work_packages/exports/column_selection_component.html.erb
+++ b/app/components/work_packages/exports/column_selection_component.html.erb
@@ -11,5 +11,5 @@
inputCaption: caption,
inputLabel: label,
inputPlaceholder: I18n.t(:"queries.configure_view.columns.input_placeholder"),
- dragAreaLabel: I18n.t(:"queries.configure_view.columns.drag_area_label"),
+ dragAreaLabel: I18n.t(:"queries.configure_view.columns.drag_area_label")
} %>
diff --git a/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb b/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb
index e57594e76f5..6c96e546f15 100644
--- a/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb
+++ b/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb
@@ -22,7 +22,7 @@
inputLabel: I18n.t(:"export.dialog.pdf.long_text_fields.input_label"),
inputCaption: I18n.t(:"export.dialog.pdf.long_text_fields.input_caption"),
inputPlaceholder: I18n.t(:"export.dialog.pdf.long_text_fields.input_placeholder"),
- dragAreaLabel: I18n.t(:"export.dialog.pdf.long_text_fields.drag_area_label"),
+ dragAreaLabel: I18n.t(:"export.dialog.pdf.long_text_fields.drag_area_label")
} %>
<% end %>
<%= container.with_row do |_pdf_report_images| %>
diff --git a/app/views/admin/attachments/quarantined_attachments/index.html.erb b/app/views/admin/attachments/quarantined_attachments/index.html.erb
index 71a51fe6bf6..17d748c557c 100644
--- a/app/views/admin/attachments/quarantined_attachments/index.html.erb
+++ b/app/views/admin/attachments/quarantined_attachments/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
render(
Admin::AttachmentsSettingsHeaderComponent.new(
title: t("antivirus_scan.quarantined_attachments.title"),
- selected: 3,
+ selected: 3
)
)
%>
diff --git a/app/views/admin/settings/attachments_settings/show.html.erb b/app/views/admin/settings/attachments_settings/show.html.erb
index 4d8e52b99a9..cd248893fa6 100644
--- a/app/views/admin/settings/attachments_settings/show.html.erb
+++ b/app/views/admin/settings/attachments_settings/show.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
render(
Admin::AttachmentsSettingsHeaderComponent.new(
title: t(:"attributes.attachments"),
- selected: 1,
+ selected: 1
)
)
%>
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= t(
"settings.attachments.whitelist_text_html",
ext_example: "*.jpg",
- mime_example: "image/jpeg",
+ mime_example: "image/jpeg"
) %>
</div>
</div>
diff --git a/app/views/admin/settings/mail_notifications_settings/show.html.erb b/app/views/admin/settings/mail_notifications_settings/show.html.erb
index 9ba8caf1419..a1e7a482cf2 100644
--- a/app/views/admin/settings/mail_notifications_settings/show.html.erb
+++ b/app/views/admin/settings/mail_notifications_settings/show.html.erb
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= setting_select :emails_salutation,
[
[User.human_attribute_name(:firstname), :firstname],
- [t("mail.salutation_full_name"), :name],
+ [t("mail.salutation_full_name"), :name]
],
container_class: "-middle" %>
</div>
diff --git a/app/views/admin/settings/virus_scanning_settings/_av_form.html.erb b/app/views/admin/settings/virus_scanning_settings/_av_form.html.erb
index 6365f806e01..ef9e21b5600 100644
--- a/app/views/admin/settings/virus_scanning_settings/_av_form.html.erb
+++ b/app/views/admin/settings/virus_scanning_settings/_av_form.html.erb
@@ -5,7 +5,7 @@
<div class="form--field-instructions">
<p><%= t(
"settings.antivirus.modes.clamav_socket_html",
- example: content_tag(:code, "/var/run/clamav/clamd.ctl"),
+ example: content_tag(:code, "/var/run/clamav/clamd.ctl")
) %>
</p>
</div>
@@ -16,7 +16,7 @@
<div class="form--field-instructions">
<p><%= t(
"settings.antivirus.modes.clamav_host_html",
- example: content_tag(:code, "remotehost:1024"),
+ example: content_tag(:code, "remotehost:1024")
) %>
</p>
</div>
@@ -27,7 +27,7 @@
<%= setting_select :antivirus_scan_action,
[
[t("settings.antivirus.actions.quarantine"), :quarantine],
- [t("settings.antivirus.actions.delete"), :delete],
+ [t("settings.antivirus.actions.delete"), :delete]
],
container_class: "-wide" %>
<div class="form--field-instructions">
diff --git a/app/views/admin/settings/virus_scanning_settings/show.html.erb b/app/views/admin/settings/virus_scanning_settings/show.html.erb
index 60cecfb1a0b..b094a9e789b 100644
--- a/app/views/admin/settings/virus_scanning_settings/show.html.erb
+++ b/app/views/admin/settings/virus_scanning_settings/show.html.erb
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
[
[t(:label_disabled_uppercase), :disabled],
["ClamAV (Socket)", :clamav_socket],
- ["ClamAV (Host)", :clamav_host],
+ ["ClamAV (Host)", :clamav_host]
],
container_class: "-wide",
data: {
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
"settings.antivirus.modes.description_html",
disabled_option: t(:label_disabled_uppercase),
socket_option: "ClamAV (Socket)",
- host_option: "ClamAV (Host)",
+ host_option: "ClamAV (Host)"
) %></p>
</div>
</div>
diff --git a/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erb b/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erb
index f796bf5e9fa..0dfed0a1db9 100644
--- a/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erb
+++ b/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erb
@@ -6,7 +6,7 @@
collapsible: true,
textMessage: explanation,
topMargin: true,
- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:attribute_highlighting][:href],
+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:attribute_highlighting][:href]
}
%>
</div>
diff --git a/app/views/custom_actions/_form.html.erb b/app/views/custom_actions/_form.html.erb
index 9119575513a..70feac1c831 100644
--- a/app/views/custom_actions/_form.html.erb
+++ b/app/views/custom_actions/_form.html.erb
@@ -44,7 +44,7 @@
bindLabel: "name",
bindValue: "id",
labelForId: "custom_action_conditions_#{condition.key}",
- appendTo: "body",
+ appendTo: "body"
} %>
<% end %>
</div>
@@ -91,7 +91,7 @@
bindLabel: "name",
bindValue: "id",
labelForId: "custom_action_actions_#{action.key}",
- appendTo: "body",
+ appendTo: "body"
} %>
<% end %>
</div>
diff --git a/app/views/digest_mailer/work_packages.html.erb b/app/views/digest_mailer/work_packages.html.erb
index f498189e23b..4c981c96b7c 100644
--- a/app/views/digest_mailer/work_packages.html.erb
+++ b/app/views/digest_mailer/work_packages.html.erb
@@ -13,7 +13,7 @@
summary: "#{I18n.t(:"mail.digests.you_have")} #{digest_summary_text(@notification_ids.length, @mentioned_count)}",
button_href: notifications_url,
button_text: I18n.t(:"mail.notification.center"),
- user: @user,
+ user: @user
} %>
<% @aggregated_notifications.first(DigestMailer::MAX_SHOWN_WORK_PACKAGES).each do |work_package, notifications_by_work_package| %>
diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb
index 8b6c14809ca..7ffe5e6e690 100644
--- a/app/views/groups/_users.html.erb
+++ b/app/views/groups/_users.html.erb
@@ -55,7 +55,7 @@ See COPYRIGHT and LICENSE files for more details.
angular_component_tag "opce-user-autocompleter",
inputs: {
inputName: "user_ids",
- filters: autocompleter_filters(@group),
+ filters: autocompleter_filters(@group)
},
class: "new-group-members--autocomplete"
%>
diff --git a/app/views/layouts/component_preview.html.erb b/app/views/layouts/component_preview.html.erb
index 50a47569bc6..679f022ea16 100644
--- a/app/views/layouts/component_preview.html.erb
+++ b/app/views/layouts/component_preview.html.erb
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
data: {
controller: "application",
"color-mode": "auto",
- "light-theme": "light",
+ "light-theme": "light"
},
style: styles.join(";") do %>
<section class="viewcomponent-preview--content">
diff --git a/app/views/members/_member_form.html.erb b/app/views/members/_member_form.html.erb
index b122719d6dc..23f86eaf40f 100644
--- a/app/views/members/_member_form.html.erb
+++ b/app/views/members/_member_form.html.erb
@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
controller: "user-limit",
"user-limit-open-seats-value": OpenProject::Enterprise.open_seats_count,
"user-limit-member-autocompleter-value": true,
- "application-target": "dynamic",
+ "application-target": "dynamic"
}
) do |f| %>
<a title="<%= t("js.close_form_title") %>"
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index 1e1a1199de9..a285fc7d3e0 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -61,8 +61,8 @@ See COPYRIGHT and LICENSE files for more details.
href: news_path(@news),
mobile_icon: :trash,
mobile_label: I18n.t("button_delete"),
- data: { confirm: t(:text_are_you_sure), method: :delete, },
- aria: { label: I18n.t("button_delete") },
+ data: { confirm: t(:text_are_you_sure), method: :delete },
+ aria: { label: I18n.t("button_delete") }
) do |button|
button.with_leading_visual_icon(icon: :trash)
I18n.t("button_delete")
diff --git a/app/views/placeholder_users/deletion_info.html.erb b/app/views/placeholder_users/deletion_info.html.erb
index c8cf0834cc4..2ccce86ce66 100644
--- a/app/views/placeholder_users/deletion_info.html.erb
+++ b/app/views/placeholder_users/deletion_info.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
url: placeholder_user_path(@placeholder_user),
html: {
method: :delete,
- class: "form danger-zone",
+ class: "form danger-zone"
}
) do %>
<div class='wiki'>
diff --git a/app/views/projects/settings/project_custom_fields/show.html.erb b/app/views/projects/settings/project_custom_fields/show.html.erb
index c2e801491ca..494adf060b3 100644
--- a/app/views/projects/settings/project_custom_fields/show.html.erb
+++ b/app/views/projects/settings/project_custom_fields/show.html.erb
@@ -31,6 +31,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= render(
Projects::Settings::ProjectCustomFieldSections::IndexComponent.new(
project: @project,
- project_custom_field_sections: @project_custom_field_sections,
+ project_custom_field_sections: @project_custom_field_sections
)
) %>
diff --git a/app/views/reminders/notification_mailer/reminder_notification.html.erb b/app/views/reminders/notification_mailer/reminder_notification.html.erb
index e375173fc90..f6967d68d87 100644
--- a/app/views/reminders/notification_mailer/reminder_notification.html.erb
+++ b/app/views/reminders/notification_mailer/reminder_notification.html.erb
@@ -13,7 +13,7 @@
summary: reminder_summary_text,
button_href: notifications_url,
button_text: I18n.t(:"mail.notification.center"),
- user: @user,
+ user: @user
} %>
<%= render layout: "mailer/notification_row",
diff --git a/app/views/repositories/_dir_list_content.html.erb b/app/views/repositories/_dir_list_content.html.erb
index 8b21c603376..84174f53bb9 100644
--- a/app/views/repositories/_dir_list_content.html.erb
+++ b/app/views/repositories/_dir_list_content.html.erb
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
rev: @rev,
depth: (depth + 1),
parent_id: tr_id
- ),
+ )
} do %>
<%= op_icon("icon-context") %>
&nbsp;
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index 83f08b3861a..7c1ea059508 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
id: "revision_selector",
class: "form -vertical",
data: {
- "repository-navigation-target": "form",
+ "repository-navigation-target": "form"
}
) do %>
<li class="toolbar-item toolbar-input-group hidden-for-mobile">
diff --git a/app/views/sharing_mailer/shared_work_package.html.erb b/app/views/sharing_mailer/shared_work_package.html.erb
index 59d1751218e..f1a3da18d3a 100644
--- a/app/views/sharing_mailer/shared_work_package.html.erb
+++ b/app/views/sharing_mailer/shared_work_package.html.erb
@@ -21,7 +21,7 @@
user: @shared_with_user,
summary:,
button_href: @url,
- button_text: I18n.t(:"mail.sharing.work_packages.open_work_package"),
+ button_text: I18n.t(:"mail.sharing.work_packages.open_work_package")
} %>
<%= render layout: "mailer/notification_row",
diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erb
index 5e8a6ba096b..fdfbe274a48 100644
--- a/app/views/types/form/_form_configuration.html.erb
+++ b/app/views/types/form/_form_configuration.html.erb
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if EnterpriseToken.show_banners? %>
<%= angular_component_tag "opce-no-results",
inputs: {
- title: t("text_form_configuration") + t("text_custom_field_hint_activate_per_project"),
+ title: t("text_form_configuration") + t("text_custom_field_hint_activate_per_project")
} %>
<%= angular_component_tag "opce-enterprise-banner",
inputs: {
@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.
opReferrer: "form-configuration",
topMargin: true,
textMessage: t("types.edit.more_info_text_html"),
- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:form_configuration][:href],
+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:form_configuration][:href]
} %>
<% end %>
</div>
diff --git a/app/views/users/_general.html.erb b/app/views/users/_general.html.erb
index 897c8672a39..b4c082efa9c 100644
--- a/app/views/users/_general.html.erb
+++ b/app/views/users/_general.html.erb
@@ -49,7 +49,7 @@ See COPYRIGHT and LICENSE files for more details.
data: {
controller: "admin--users",
"application-target": "dynamic",
- "admin--users-password-auth-selected-value": @user.ldap_auth_source_id.blank?,
+ "admin--users-password-auth-selected-value": @user.ldap_auth_source_id.blank?
},
as: :user do |f| %>
<%= render partial: "form", locals: { f: f } %>
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index 75609f6a83b..67db94c1d52 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -49,7 +49,7 @@ See COPYRIGHT and LICENSE files for more details.
data: {
controller: "admin--users",
"application-target": "dynamic",
- "admin--users-password-auth-selected-value": @user.ldap_auth_source_id.blank?,
+ "admin--users-password-auth-selected-value": @user.ldap_auth_source_id.blank?
},
as: :user do |f| %>
<%= render partial: "simple_form", locals: { f: f, auth_sources: @ldap_auth_sources, user: @user } %>
diff --git a/app/views/wiki/_wiki_export_modal.html.erb b/app/views/wiki/_wiki_export_modal.html.erb
index b50d3559403..7b6ebdbbc75 100644
--- a/app/views/wiki/_wiki_export_modal.html.erb
+++ b/app/views/wiki/_wiki_export_modal.html.erb
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
show_wiki_edits: 1,
apply: true,
key: User.current.rss_key,
- format: "atom",
+ format: "atom"
), class: "op-export-options--option-link" do %>
<%= op_icon("icon-big icon-export-atom") %>
<span class="op-export-options--option-label"><%= t("export.format.atom") %></span>
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to url_for(
version: @page.version,
id: @page,
- format: "markdown",
+ format: "markdown"
), class: "op-export-options--option-link" do %>
<%= op_icon("icon-big icon-ticket") %>
<span class="op-export-options--option-label"><%= t("text_formatting.markdown") %></span>
diff --git a/app/views/work_package_mailer/mentioned.html.erb b/app/views/work_package_mailer/mentioned.html.erb
index fc947797e7b..9ebcfeded0f 100644
--- a/app/views/work_package_mailer/mentioned.html.erb
+++ b/app/views/work_package_mailer/mentioned.html.erb
@@ -13,7 +13,7 @@
summary: I18n.t(:"mail.work_packages.mentioned_by", user: @journal.user),
button_href: details_notifications_url(@work_package.id, tab: :activity),
button_text: I18n.t(:"mail.notification.see_in_center"),
- user: @user,
+ user: @user
} %>
<%= render layout: "mailer/notification_row",
diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erb
index b26d067a3f7..296feb25824 100644
--- a/app/views/work_packages/moves/new.html.erb
+++ b/app/views/work_packages/moves/new.html.erb
@@ -71,7 +71,7 @@ See COPYRIGHT and LICENSE files for more details.
model: @target_project,
appendTo: "body",
hiddenFieldAction: "change->refresh-on-form-changes#triggerReload",
- clearable: false,
+ clearable: false
},
id: "new_project_id",
class: "remote-field--input",
diff --git a/lookbook/previews/op_primer/border_box_table_component_preview/custom_column_widths.html.erb b/lookbook/previews/op_primer/border_box_table_component_preview/custom_column_widths.html.erb
index 415949e51ed..52265999ace 100644
--- a/lookbook/previews/op_primer/border_box_table_component_preview/custom_column_widths.html.erb
+++ b/lookbook/previews/op_primer/border_box_table_component_preview/custom_column_widths.html.erb
@@ -31,7 +31,7 @@
def headers
[
[:foo, { caption: "3 columns wide" }],
- [:bar, { caption: "1 column wide" }],
+ [:bar, { caption: "1 column wide" }]
]
end
end
diff --git a/lookbook/previews/op_primer/border_box_table_component_preview/default.html.erb b/lookbook/previews/op_primer/border_box_table_component_preview/default.html.erb
index 1ac877c4dfd..f3db8940ad0 100644
--- a/lookbook/previews/op_primer/border_box_table_component_preview/default.html.erb
+++ b/lookbook/previews/op_primer/border_box_table_component_preview/default.html.erb
@@ -56,7 +56,7 @@
def headers
[
[:foo, { caption: "Foo column" }],
- [:bar, { caption: "Bar column" }],
+ [:bar, { caption: "Bar column" }]
]
end
end
diff --git a/lookbook/previews/op_primer/border_box_table_component_preview/with_action_menu.html.erb b/lookbook/previews/op_primer/border_box_table_component_preview/with_action_menu.html.erb
index d3f55485682..606e6ba5d2d 100644
--- a/lookbook/previews/op_primer/border_box_table_component_preview/with_action_menu.html.erb
+++ b/lookbook/previews/op_primer/border_box_table_component_preview/with_action_menu.html.erb
@@ -28,7 +28,7 @@
menu.with_item(
tag: :a,
label: "Edit",
- href: "#",
+ href: "#"
) do |item|
item.with_leading_visual_icon(icon: :pencil)
"bla"
@@ -55,7 +55,7 @@
def headers
[
[:foo, { caption: "Foo column" }],
- [:bar, { caption: "Bar column" }],
+ [:bar, { caption: "Bar column" }]
]
end
end
diff --git a/lookbook/previews/open_project/common/autocomplete_preview/project_with_search_icon.html.erb b/lookbook/previews/open_project/common/autocomplete_preview/project_with_search_icon.html.erb
index e56c59f8d03..85e840900a6 100644
--- a/lookbook/previews/open_project/common/autocomplete_preview/project_with_search_icon.html.erb
+++ b/lookbook/previews/open_project/common/autocomplete_preview/project_with_search_icon.html.erb
@@ -10,7 +10,7 @@
openDirectly: false,
focusDirectly: false,
dropdownPosition: "bottom",
- disabledProjects: Project.visible.take(10).pluck(:id).to_h { |id| [id, "Disabled reason!"] },
+ disabledProjects: Project.visible.take(10).pluck(:id).to_h { |id| [id, "Disabled reason!"] }
}
)
end
diff --git a/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erb b/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erb
index 5e87f07807f..3f15083be5e 100644
--- a/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erb
+++ b/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erb
@@ -6,7 +6,7 @@
data: {
controller: "show-when-value-selected"
},
- method: :post,
+ method: :post
) do |form|
flex_layout do |flex|
if edit_mode
diff --git a/modules/auth_saml/app/components/saml/providers/side_panel_component.html.erb b/modules/auth_saml/app/components/saml/providers/side_panel_component.html.erb
index c9d27ca3a71..aff99061d6a 100644
--- a/modules/auth_saml/app/components/saml/providers/side_panel_component.html.erb
+++ b/modules/auth_saml/app/components/saml/providers/side_panel_component.html.erb
@@ -3,7 +3,7 @@
render(Primer::OpenProject::SidePanel.new(spacious: true)) do |panel|
[
Saml::Providers::SidePanel::MetadataComponent.new(@provider),
- Saml::Providers::SidePanel::InformationComponent.new(@provider),
+ Saml::Providers::SidePanel::InformationComponent.new(@provider)
].each do |component|
panel.with_section(component)
end
diff --git a/modules/auth_saml/app/components/saml/providers/view_component.html.erb b/modules/auth_saml/app/components/saml/providers/view_component.html.erb
index 0c3c3ea4b9a..c1ce44c6bd0 100644
--- a/modules/auth_saml/app/components/saml/providers/view_component.html.erb
+++ b/modules/auth_saml/app/components/saml/providers/view_component.html.erb
@@ -46,7 +46,7 @@
render(
Saml::Providers::Sections::MetadataFormComponent.new(
provider,
- edit_mode:,
+ edit_mode:
)
)
else
@@ -90,7 +90,7 @@
view_mode:,
heading: t("saml.providers.label_configuration_details"),
description: t("saml.providers.section_texts.configuration"),
- label: provider.persisted? && !provider.configured? ? t(:label_incomplete) : nil,
+ label: provider.persisted? && !provider.configured? ? t(:label_incomplete) : nil
)
)
end
diff --git a/modules/auth_saml/app/views/saml/providers/edit.html.erb b/modules/auth_saml/app/views/saml/providers/edit.html.erb
index 2ebf84d65a0..49def832e99 100644
--- a/modules/auth_saml/app/views/saml/providers/edit.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/edit.html.erb
@@ -15,7 +15,7 @@
<%= link_translate(
"saml.instructions.documentation_link",
links: {
- docs_url: ::OpenProject::Static::Links[:sysadmin_docs][:saml][:href],
+ docs_url: ::OpenProject::Static::Links[:sysadmin_docs][:saml][:href]
},
target: "_blank"
) %>
diff --git a/modules/auth_saml/app/views/saml/providers/new.html.erb b/modules/auth_saml/app/views/saml/providers/new.html.erb
index d51846879bf..fc18b0eaea0 100644
--- a/modules/auth_saml/app/views/saml/providers/new.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/new.html.erb
@@ -13,7 +13,7 @@
<%= link_translate(
"saml.instructions.documentation_link",
links: {
- docs_url: ::OpenProject::Static::Links[:sysadmin_docs][:saml][:href],
+ docs_url: ::OpenProject::Static::Links[:sysadmin_docs][:saml][:href]
},
target: "_blank"
) %>
diff --git a/modules/boards/app/views/boards/boards/_form.html.erb b/modules/boards/app/views/boards/boards/_form.html.erb
index 0a35aced98c..8f584cce196 100644
--- a/modules/boards/app/views/boards/boards/_form.html.erb
+++ b/modules/boards/app/views/boards/boards/_form.html.erb
@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
filters: [{ name: "user_action", operator: "=", values: ["boards/create"] }],
inputName: "project_id",
model: @project,
- appendTo: "body",
+ appendTo: "body"
},
id: "project_id",
class: "form--select-container -wide remote-field--input",
diff --git a/modules/budgets/app/components/budgets/show_page_header_component.html.erb b/modules/budgets/app/components/budgets/show_page_header_component.html.erb
index 106a76fbc3d..14de313d793 100644
--- a/modules/budgets/app/components/budgets/show_page_header_component.html.erb
+++ b/modules/budgets/app/components/budgets/show_page_header_component.html.erb
@@ -45,7 +45,7 @@
data: {
confirm: I18n.t(:text_are_you_sure),
method: :delete,
- test_selector: "budget-delete-button",
+ test_selector: "budget-delete-button"
},
title: I18n.t(:button_delete)
) do |button|
diff --git a/modules/budgets/app/views/budgets/items/_budget_override_cost_form.html.erb b/modules/budgets/app/views/budgets/items/_budget_override_cost_form.html.erb
index 0d98f0b449d..63da378fd2c 100644
--- a/modules/budgets/app/views/budgets/items/_budget_override_cost_form.html.erb
+++ b/modules/budgets/app/views/budgets/items/_budget_override_cost_form.html.erb
@@ -8,7 +8,7 @@
unitless_currency_number(cost_value),
class: "currency form--text-field",
disabled: true, # disable by default until it was overridden
- placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
+ placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50))
) %>
</div>
<div class="form--field-affix">
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 970cd2c398f..7394bcfc796 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
@@ -101,7 +101,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "/budgets/items/budget_override_cost_form",
locals: {
field_name: "#{name_prefix}[amount]",
- cost_value: cost_value,
+ cost_value: cost_value
} %>
</td>
<% end %>
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 ef6b78a49cc..dcf284183a0 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
@@ -101,7 +101,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "/budgets/items/budget_override_cost_form",
locals: {
field_name: "#{name_prefix}[amount]",
- cost_value: cost_value,
+ cost_value: cost_value
} %>
</td>
<% end %>
diff --git a/modules/calendar/app/views/calendar/calendars/_form.html.erb b/modules/calendar/app/views/calendar/calendars/_form.html.erb
index f5b6007d19e..747ec3055e5 100644
--- a/modules/calendar/app/views/calendar/calendars/_form.html.erb
+++ b/modules/calendar/app/views/calendar/calendars/_form.html.erb
@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
filters: [{ name: :user_action, operator: "=", values: ["calendars/create"] }],
inputName: "project_id",
inputValue: @project&.id,
- appendTo: "body",
+ appendTo: "body"
},
id: "project_id",
class: "form--select-container -wide remote-field--input",
diff --git a/modules/costs/app/views/costlog/edit.html.erb b/modules/costs/app/views/costlog/edit.html.erb
index 55af432b0d7..373153a8956 100644
--- a/modules/costs/app/views/costlog/edit.html.erb
+++ b/modules/costs/app/views/costlog/edit.html.erb
@@ -125,7 +125,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "/budgets/items/budget_override_cost_form",
locals: {
field_name: "cost_entry[overridden_costs]",
- cost_value: unitless_currency_number(@cost_entry.real_costs),
+ cost_value: unitless_currency_number(@cost_entry.real_costs)
} %>
</span>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb
index f787e1e30d6..85ab6c0ff76 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb
@@ -8,7 +8,7 @@
{ href: admin_index_path, text: t(:label_administration) },
{ href: admin_settings_authentication_path, text: t(:label_authentication) },
{ href: ldap_groups_synchronized_groups_path, text: I18n.t("ldap_groups.label_menu_item") },
- nested_breadcrumb_element(t("ldap_groups.synchronized_filters.singular"), @filter.name),
+ nested_breadcrumb_element(t("ldap_groups.synchronized_filters.singular"), @filter.name)
],
selected_item_font_weight: :normal
)
diff --git a/modules/meeting/app/components/meetings/header_component.html.erb b/modules/meeting/app/components/meetings/header_component.html.erb
index 5dbe9ac397c..1fcdfc92d1f 100644
--- a/modules/meeting/app/components/meetings/header_component.html.erb
+++ b/modules/meeting/app/components/meetings/header_component.html.erb
@@ -21,7 +21,7 @@
update_path: update_title_meeting_path(@meeting),
cancel_path: cancel_edit_meeting_path(@meeting),
label: Meeting.human_attribute_name(:title),
- placeholder: Meeting.human_attribute_name(:title),
+ placeholder: Meeting.human_attribute_name(:title)
)
if @meeting.template?
"#{@meeting.title} (#{I18n.t(:label_template)})"
@@ -42,7 +42,7 @@
mobile_icon: :check,
size: :medium,
data: { "turbo-method": :post },
- href: template_completed_recurring_meeting_path(@meeting.recurring_meeting),
+ href: template_completed_recurring_meeting_path(@meeting.recurring_meeting)
) do |button|
button.with_leading_visual_icon(icon: :check)
I18n.t("recurring_meeting.template.button_finalize")
@@ -102,7 +102,7 @@
tag: :a,
href: history_meeting_path(@meeting),
content_arguments: {
- "data-controller": "async-dialog",
+ "data-controller": "async-dialog"
},
value: ""
) do |item|
diff --git a/modules/meeting/app/components/meetings/index/form_component.html.erb b/modules/meeting/app/components/meetings/index/form_component.html.erb
index 00360ab6ab4..712a1a1001a 100644
--- a/modules/meeting/app/components/meetings/index/form_component.html.erb
+++ b/modules/meeting/app/components/meetings/index/form_component.html.erb
@@ -8,7 +8,7 @@
turbo: true,
controller: [
"show-when-value-selected",
- @meeting.is_a?(RecurringMeeting) ? "recurring-meetings--form" : nil,
+ @meeting.is_a?(RecurringMeeting) ? "recurring-meetings--form" : nil
].compact.join(" "),
"application-target": "dynamic"
},
@@ -73,7 +73,7 @@
Primer::Beta::Text.new(
id: "recurring-meeting-frequency-schedule",
font_size: :small,
- color: :subtle,
+ color: :subtle
)
) { @meeting.human_frequency_schedule }
end
@@ -86,7 +86,7 @@
frequency_row.with_column(
flex: 1,
- hidden: @meeting.frequency_working_days?,
+ hidden: @meeting.frequency_working_days?
) do
flex_layout do |end_after|
end_after.with_row(
diff --git a/modules/meeting/app/components/meetings/index_sub_header_component.html.erb b/modules/meeting/app/components/meetings/index_sub_header_component.html.erb
index 1b8df634ce8..72e276465fb 100644
--- a/modules/meeting/app/components/meetings/index_sub_header_component.html.erb
+++ b/modules/meeting/app/components/meetings/index_sub_header_component.html.erb
@@ -3,7 +3,7 @@
data: {
controller: "filter--filters-form",
"application-target": "dynamic",
- "filter--filters-form-output-format-value": "json",
+ "filter--filters-form-output-format-value": "json"
}
)
) do |subheader|
diff --git a/modules/meeting/app/components/meetings/side_panel/details_component.html.erb b/modules/meeting/app/components/meetings/side_panel/details_component.html.erb
index 15acf71d82a..6a61d098c27 100644
--- a/modules/meeting/app/components/meetings/side_panel/details_component.html.erb
+++ b/modules/meeting/app/components/meetings/side_panel/details_component.html.erb
@@ -23,7 +23,7 @@
classes: "hide-when-print",
data: { controller: "async-dialog" },
"aria-label": t(:label_meeting_details_edit),
- test_selector: "edit-meeting-details-button",
+ test_selector: "edit-meeting-details-button"
)
end
diff --git a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb
index 8b8a6220ccc..c45f1e8bc60 100644
--- a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb
+++ b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb
@@ -17,7 +17,7 @@
classes: "hide-when-print",
data: { controller: "async-dialog" },
"aria-label": t("label_meeting_manage_participants"),
- test_selector: "manage-participants-button",
+ test_selector: "manage-participants-button"
)
end
diff --git a/modules/meeting/app/components/recurring_meetings/show_page_header_component.html.erb b/modules/meeting/app/components/recurring_meetings/show_page_header_component.html.erb
index 818553b3637..2a1439dad5d 100644
--- a/modules/meeting/app/components/recurring_meetings/show_page_header_component.html.erb
+++ b/modules/meeting/app/components/recurring_meetings/show_page_header_component.html.erb
@@ -24,10 +24,10 @@
href: details_dialog_recurring_meeting_path(@meeting),
tag: :a,
content_arguments: {
- data: { controller: "async-dialog" },
+ data: { controller: "async-dialog" }
},
"aria-label": t(:label_recurring_meeting_series_edit),
- test_selector: "edit-meeting-details-button",
+ test_selector: "edit-meeting-details-button"
) do |item|
item.with_leading_visual_icon(icon: :pencil)
end
@@ -53,7 +53,7 @@
href: end_series_dialog_recurring_meeting_path(@meeting),
tag: :a,
content_arguments: {
- data: { controller: "async-dialog" },
+ data: { controller: "async-dialog" }
}
) do |item|
item.with_leading_visual_icon(icon: :"x-circle")
diff --git a/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb b/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb
index 1901874fb30..1fd739456c0 100644
--- a/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb
+++ b/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb
@@ -3,7 +3,7 @@
data: {
controller: "filter--filters-form",
"application-target": "dynamic",
- "filter--filters-form-output-format-value": "json",
+ "filter--filters-form-output-format-value": "json"
}
)
) do |subheader|
diff --git a/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb
index abb1023401c..55e17278d3b 100644
--- a/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb
+++ b/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb
@@ -4,7 +4,7 @@
id: "add-work-package-to-meeting-form",
model: @meeting_agenda_item,
method: :post,
- url: work_package_meeting_agenda_items_path(@work_package),
+ url: work_package_meeting_agenda_items_path(@work_package)
) do |f|
flex_layout(mb: 3) do |flex|
flex.with_row do
diff --git a/modules/meeting/app/views/meetings/_form.html.erb b/modules/meeting/app/views/meetings/_form.html.erb
index 333a5b1e16e..687604e9aeb 100644
--- a/modules/meeting/app/views/meetings/_form.html.erb
+++ b/modules/meeting/app/views/meetings/_form.html.erb
@@ -79,7 +79,7 @@ See COPYRIGHT and LICENSE files for more details.
inputName: "project_id",
inputValue: @project&.id,
appendTo: "body",
- hiddenFieldAction: "change->refresh-on-form-changes#triggerTurboStream",
+ hiddenFieldAction: "change->refresh-on-form-changes#triggerTurboStream"
},
id: "project_id",
class: "form--select-container -wide remote-field--input",
diff --git a/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb
index 8683883a339..0ae04be9c21 100644
--- a/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb
+++ b/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb
@@ -6,9 +6,9 @@
data: {
controller: "show-when-value-selected",
turbo: true,
- turbo_stream: true,
+ turbo_stream: true
},
- method: :put,
+ method: :put
) do |form|
flex_layout do |flex|
unless edit_mode
diff --git a/modules/openid_connect/app/components/openid_connect/providers/side_panel_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/side_panel_component.html.erb
index b05772b94cb..060fe367eb9 100644
--- a/modules/openid_connect/app/components/openid_connect/providers/side_panel_component.html.erb
+++ b/modules/openid_connect/app/components/openid_connect/providers/side_panel_component.html.erb
@@ -2,7 +2,7 @@
component_wrapper do
render(Primer::OpenProject::SidePanel.new(spacious: true)) do |panel|
[
- OpenIDConnect::Providers::SidePanel::InformationComponent.new(@provider),
+ OpenIDConnect::Providers::SidePanel::InformationComponent.new(@provider)
].each do |component|
panel.with_section(component)
end
diff --git a/modules/openid_connect/app/views/openid_connect/providers/index.html.erb b/modules/openid_connect/app/views/openid_connect/providers/index.html.erb
index 070ad1d39f2..e912d3269d4 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/index.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/index.html.erb
@@ -21,7 +21,7 @@
) do |menu|
menu.with_show_button(
scheme: :primary,
- aria: { label: I18n.t("openid_connect.providers.label_add_new") },
+ aria: { label: I18n.t("openid_connect.providers.label_add_new") }
) do |button|
button.with_leading_visual_icon(icon: :plus)
button.with_trailing_action_icon(icon: :"triangle-down")
diff --git a/modules/overviews/app/components/project_custom_fields/sections/edit_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/edit_component.html.erb
index 77ab71fa256..ad98c9c9742 100644
--- a/modules/overviews/app/components/project_custom_fields/sections/edit_component.html.erb
+++ b/modules/overviews/app/components/project_custom_fields/sections/edit_component.html.erb
@@ -6,7 +6,7 @@
model: @project,
method: :put,
data: { turbo: true, turbo_stream: true, "test-selector": "async-dialog-content" },
- url: update_project_custom_values_path(project_id: @project.id, section_id: @project_custom_field_section.id),
+ url: update_project_custom_values_path(project_id: @project.id, section_id: @project_custom_field_section.id)
) do |f|
render(
Projects::CustomFields::Form.new(
diff --git a/modules/overviews/app/components/project_life_cycles/sections/edit_component.html.erb b/modules/overviews/app/components/project_life_cycles/sections/edit_component.html.erb
index c9b425b8ce5..70b01c579ff 100644
--- a/modules/overviews/app/components/project_life_cycles/sections/edit_component.html.erb
+++ b/modules/overviews/app/components/project_life_cycles/sections/edit_component.html.erb
@@ -13,7 +13,7 @@
turbo_stream: true,
"test-selector": "async-dialog-content"
},
- url: update_project_life_cycles_path(project_id: model.id),
+ url: update_project_life_cycles_path(project_id: model.id)
) do |f|
render(Primer::Forms::SpacingWrapper.new) do
f.fields_for(:available_life_cycle_steps) do |life_cycle_form|
diff --git a/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.html.erb b/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.html.erb
index 38d0f41491a..a34e2bc5150 100644
--- a/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.html.erb
+++ b/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.html.erb
@@ -7,7 +7,7 @@
test_selector: "project-life-cycle-#{model.id}"
}
) do |life_cycle_container|
- life_cycle_container.with_row(mb: 1, flex_layout: true,) do |row|
+ life_cycle_container.with_row(mb: 1, flex_layout: true) do |row|
row.with_column(mr: 1, classes: icon_color_class) do
render Primer::Beta::Octicon.new(icon:)
end
diff --git a/modules/overviews/app/views/overviews/overviews/show.html.erb b/modules/overviews/app/views/overviews/overviews/show.html.erb
index 37a44d151d4..970705ea4e8 100644
--- a/modules/overviews/app/views/overviews/overviews/show.html.erb
+++ b/modules/overviews/app/views/overviews/overviews/show.html.erb
@@ -45,7 +45,7 @@
label: t(:label_archive_project),
href: project_archive_path(@project, status: "", name: @project.name),
content_arguments: {
- data: { method: :post, turbo: false, confirm: t("project.archive.are_you_sure", name: @project.name) },
+ data: { method: :post, turbo: false, confirm: t("project.archive.are_you_sure", name: @project.name) }
}
) do |item|
item.with_leading_visual_icon(icon: :lock)
diff --git a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb b/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
index 99ec01e6c0c..c110d632950 100644
--- a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
+++ b/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
@@ -9,7 +9,7 @@
<%= recaptcha_tags(
nonce: content_security_policy_script_nonce,
callback: "submitRecaptchaForm",
- site_key: recaptcha_settings["website_key"],
+ site_key: recaptcha_settings["website_key"]
) %>
<%= nonced_javascript_tag do %>
diff --git a/modules/storages/app/components/storages/admin/forms/automatically_managed_project_folders_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/automatically_managed_project_folders_form_component.html.erb
index be4ea6051aa..9aa3fad1db7 100644
--- a/modules/storages/app/components/storages/admin/forms/automatically_managed_project_folders_form_component.html.erb
+++ b/modules/storages/app/components/storages/admin/forms/automatically_managed_project_folders_form_component.html.erb
@@ -11,7 +11,7 @@
"storages--automatically-managed-project-folders-form-provider-type-value": storage.provider_type,
"storages--automatically-managed-project-folders-form-is-automatically-managed-value": storage.automatic_management_enabled?,
"storages--automatically-managed-project-folders-form-done-complete-label-value": I18n.t("storages.buttons.done_complete_setup"),
- "storages--automatically-managed-project-folders-form-done-complete-without-label-value": I18n.t("storages.buttons.complete_without_setup"),
+ "storages--automatically-managed-project-folders-form-done-complete-without-label-value": I18n.t("storages.buttons.complete_without_setup")
}
) do |form|
flex_layout do |project_folders_form|
diff --git a/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.html.erb b/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.html.erb
index 7f69a514bd8..4462c8b24c5 100644
--- a/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.html.erb
+++ b/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.html.erb
@@ -8,7 +8,7 @@
"application-target": "dynamic",
controller: "storages--oauth-access-grant-nudge-modal",
"storages--oauth-access-grant-nudge-modal-close-button-label-value": I18n.t("button_close"),
- "storages--oauth-access-grant-nudge-modal-loading-screen-reader-message-value": waiting_title,
+ "storages--oauth-access-grant-nudge-modal-loading-screen-reader-message-value": waiting_title
},
test_selector: "oauth-access-grant-nudge-modal",
size: :large
diff --git a/modules/storages/app/components/storages/admin/storages/oauth_access_granted_modal_component.html.erb b/modules/storages/app/components/storages/admin/storages/oauth_access_granted_modal_component.html.erb
index 8530faeb50b..522ddc8bacc 100644
--- a/modules/storages/app/components/storages/admin/storages/oauth_access_granted_modal_component.html.erb
+++ b/modules/storages/app/components/storages/admin/storages/oauth_access_granted_modal_component.html.erb
@@ -6,7 +6,7 @@
title:,
data: {
"application-target": "dynamic",
- controller: "auto-show-dialog",
+ controller: "auto-show-dialog"
},
test_selector: "oauth-access-granted-modal"
)
diff --git a/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb b/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
index 63d73039345..ed3f72cd6a1 100644
--- a/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.
self: { href: api_v3_paths.storage(storage.id) },
type: { href: API::V3::Storages::URN_STORAGE_TYPE_NEXTCLOUD }
}
- },
+ }
}
) %>
</div>
@@ -71,7 +71,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= angular_component_tag "opce-static-attribute-help-text",
inputs: {
title: t(:"storages.label_project_folder"),
- content: t(:"storages.help_texts.project_folder"),
+ content: t(:"storages.help_texts.project_folder")
} %>
<% end %>
<% if @project_storage.project_folder_mode_possible?('inactive') %>
diff --git a/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb b/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb
index 2f9276567dc..ba79c4dbd79 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/_form.html.erb
@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
filters: [{ name: "user_action", operator: "=", values: ["team_planners/create"] }],
inputName: "project_id",
model: @project,
- appendTo: "body",
+ appendTo: "body"
},
id: "project_id",
class: "form--select-container -wide remote-field--input",
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
index 28c1b02062d..0f59fa8ef05 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
@@ -7,7 +7,7 @@
[
{ href: my_account_path, text: t(:label_my_account) },
{ href: my_2fa_devices_path, text: t("two_factor_authentication.label_two_factor_authentication") },
- nested_breadcrumb_element(t("two_factor_authentication.devices.#{@device_type}.title"), t("two_factor_authentication.devices.add_new")),
+ nested_breadcrumb_element(t("two_factor_authentication.devices.#{@device_type}.title"), t("two_factor_authentication.devices.add_new"))
],
selected_item_font_weight: :normal
)
diff --git a/modules/webhooks/app/components/webhooks/outgoing/webhooks/show_page_header_component.html.erb b/modules/webhooks/app/components/webhooks/outgoing/webhooks/show_page_header_component.html.erb
index f2cdf4c65be..fa393762c84 100644
--- a/modules/webhooks/app/components/webhooks/outgoing/webhooks/show_page_header_component.html.erb
+++ b/modules/webhooks/app/components/webhooks/outgoing/webhooks/show_page_header_component.html.erb
@@ -54,7 +54,7 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: I18n.t(:button_delete) },
data: {
confirm: t(:text_are_you_sure),
- method: :delete,
+ method: :delete
},
title: I18n.t(:button_delete)
) do |button|