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 lint

Ivan Kuchin03b5b577cde6
diff --git a/app/components/messages/show_page_header_component.html.erb b/app/components/messages/show_page_header_component.html.erb
index 8714870d380..7d4d670b37b 100644
--- a/app/components/messages/show_page_header_component.html.erb
+++ b/app/components/messages/show_page_header_component.html.erb
@@ -14,7 +14,7 @@
size: :medium,
href: url_for({ action: "quote", id: @topic }),
aria: { label: I18n.t(:button_delete) },
- data: { 'action': "forum-messages#quote", test_selector: "message-quote-button" },
+ data: { action: "forum-messages#quote", test_selector: "message-quote-button" },
title: t(:button_quote)
) do |button|
button.with_leading_visual_icon(icon: :quote)
diff --git a/app/components/op_primer/flash_component.html.erb b/app/components/op_primer/flash_component.html.erb
index 00ee247d651..b0fb39a5854 100644
--- a/app/components/op_primer/flash_component.html.erb
+++ b/app/components/op_primer/flash_component.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
classes: "op-primer-flash--item",
data: {
"flash-target": "item",
- "autohide": @autohide,
+ autohide: @autohide,
unique_key: @unique_key
}.compact
)
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 32730ae8659..953dfbddecd 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
@@ -9,7 +9,7 @@
) do |component|
component.with_header(font_weight: :bold, py: 2) do
flex_layout(justify_content: :space_between, align_items: :center) do |section_header_container|
- section_header_container.with_column(py: 2) do |content_container|
+ section_header_container.with_column(py: 2) do |_content_container|
# adding py: 2 here to match the padding of the actions_container
# otherwise the header height changes when the actions gets hidden when filtering
render(Primer::Beta::Text.new(font_weight: :bold)) do
diff --git a/app/components/settings/project_custom_field_sections/show_component.html.erb b/app/components/settings/project_custom_field_sections/show_component.html.erb
index e4fcf6ee50d..5aff40d79c5 100644
--- a/app/components/settings/project_custom_field_sections/show_component.html.erb
+++ b/app/components/settings/project_custom_field_sections/show_component.html.erb
@@ -32,7 +32,7 @@
id: "project-custom-field-section-dialog#{@project_custom_field_section.id}", title: t("settings.project_attributes.label_new_section"),
size: :medium_portrait
)
- ) do |dialog|
+ ) do |_dialog|
render(Settings::ProjectCustomFieldSections::DialogBodyFormComponent.new(project_custom_field_section: @project_custom_field_section))
end
end
diff --git a/app/components/settings/text_setting_component.html.erb b/app/components/settings/text_setting_component.html.erb
index 76491a257db..e8bfd0d0cad 100644
--- a/app/components/settings/text_setting_component.html.erb
+++ b/app/components/settings/text_setting_component.html.erb
@@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container">
<%=
styled_text_area_tag(
- "settings[#{name}][#{current_language.to_s}]",
+ "settings[#{name}][#{current_language}]",
Setting.send(name)[current_language.to_s],
disabled: !Setting.send(:"#{name}_writable?"),
label: false,
diff --git a/app/components/work_package_relations_tab/index_component.html.erb b/app/components/work_package_relations_tab/index_component.html.erb
index 49350866222..30624f9de36 100644
--- a/app/components/work_package_relations_tab/index_component.html.erb
+++ b/app/components/work_package_relations_tab/index_component.html.erb
@@ -17,7 +17,7 @@
)
) do |menu|
menu.with_show_button do |button|
- button.with_leading_visual_icon(icon: :"plus")
+ button.with_leading_visual_icon(icon: :plus)
button.with_trailing_action_icon(icon: :"triangle-down")
t(:label_relation)
end
diff --git a/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erb b/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erb
index 02491a66aa0..60d80a5cff3 100644
--- a/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erb
+++ b/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erb
@@ -5,7 +5,7 @@
render(
Primer::Alpha::ActionMenu.new(
select_variant: :single, dynamic_label: true,
- data: { "test_selector": "op-wp-journals-filter-menu" }
+ data: { test_selector: "op-wp-journals-filter-menu" }
)
) do |menu|
menu.with_show_button do |button|
@@ -16,8 +16,8 @@
href: update_filter_work_package_activities_path(work_package),
content_arguments: {
data: {
- turbo_stream: true, "action": "click->work-packages--activities-tab--index#unsetFilter",
- "test_selector": "op-wp-journals-filter-show-all"
+ turbo_stream: true, action: "click->work-packages--activities-tab--index#unsetFilter",
+ test_selector: "op-wp-journals-filter-show-all"
}
},
active: show_all?
@@ -27,8 +27,8 @@
href: update_filter_work_package_activities_path(work_package, filter: :only_changes),
content_arguments: {
data: {
- turbo_stream: true, "action": "click->work-packages--activities-tab--index#setFilterToOnlyChanges",
- "test_selector": "op-wp-journals-filter-show-only-changes"
+ turbo_stream: true, action: "click->work-packages--activities-tab--index#setFilterToOnlyChanges",
+ test_selector: "op-wp-journals-filter-show-only-changes"
}
},
active: show_only_changes?
@@ -38,8 +38,8 @@
href: update_filter_work_package_activities_path(work_package, filter: :only_comments),
content_arguments: {
data: {
- turbo_stream: true, "action": "click->work-packages--activities-tab--index#setFilterToOnlyComments",
- "test_selector": "op-wp-journals-filter-show-only-comments"
+ turbo_stream: true, action: "click->work-packages--activities-tab--index#setFilterToOnlyComments",
+ test_selector: "op-wp-journals-filter-show-only-comments"
}
},
active: show_only_comments?
@@ -48,7 +48,7 @@
end
container.with_column do
render(Primer::Alpha::ActionMenu.new(select_variant: :single, dynamic_label: true)) do |menu|
- menu.with_show_button(scheme: :invisible, data: { "test_selector": "op-wp-journals-sorting-menu" }) do |button|
+ menu.with_show_button(scheme: :invisible, data: { test_selector: "op-wp-journals-sorting-menu" }) do |button|
button.with_trailing_action_icon(icon: :"triangle-down")
end
menu.with_item(
@@ -56,7 +56,7 @@
href: update_sorting_work_package_activities_path(work_package, sorting: :desc, filter:),
form_arguments: { method: :put },
content_arguments: {
- data: { turbo_stream: true, "test_selector": "op-wp-journals-sorting-desc" }
+ data: { turbo_stream: true, test_selector: "op-wp-journals-sorting-desc" }
},
active: desc_sorting?
)
@@ -65,7 +65,7 @@
href: update_sorting_work_package_activities_path(work_package, sorting: :asc, filter:),
form_arguments: { method: :put },
content_arguments: {
- data: { turbo_stream: true, "test_selector": "op-wp-journals-sorting-asc" }
+ data: { turbo_stream: true, test_selector: "op-wp-journals-sorting-asc" }
},
active: asc_sorting?
)
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 6cbb764660d..5848ce05a53 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
@@ -16,8 +16,8 @@
size: :medium,
block: true,
data: {
- "action": "click->work-packages--activities-tab--index#showForm dragover->work-packages--activities-tab--index#showForm",
- "test_selector": "op-open-work-package-journal-form-trigger"
+ action: "click->work-packages--activities-tab--index#showForm dragover->work-packages--activities-tab--index#showForm",
+ test_selector: "op-open-work-package-journal-form-trigger"
}
)
) do
@@ -49,7 +49,7 @@
turbo_stream: true,
"work-packages--activities-tab--index-target": "form",
action: "submit->work-packages--activities-tab--index#onSubmit",
- "test_selector": "op-work-package-journal-form-element"
+ test_selector: "op-work-package-journal-form-element"
},
url: work_package_activities_path(work_package_id: work_package.id),
) do |f|
@@ -68,7 +68,7 @@
"aria-label": t("activities.work_packages.activity_tab.label_submit_comment"),
type: :submit,
data: {
- "test_selector": "op-submit-work-package-journal-form",
+ test_selector: "op-submit-work-package-journal-form",
"work-packages--activities-tab--index-target": "formSubmitButton"
}
)
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb
index f3900b9951b..d8313a45edc 100644
--- a/app/views/activities/index.html.erb
+++ b/app/views/activities/index.html.erb
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
with_subprojects: @with_subprojects ? "1" : "0",
user_id: params[:user_id]
}.compact,
- { title: t(:label_date_from_to, start: format_date(@date_to - 2 * @days), end: format_date(@date_to - @days - 1)),
+ { title: t(:label_date_from_to, start: format_date(@date_to - (2 * @days)), end: format_date(@date_to - @days - 1)),
class: "navigate-left" }
) %>
</div>
diff --git a/app/views/admin/settings/incoming_mails_settings/show.html.erb b/app/views/admin/settings/incoming_mails_settings/show.html.erb
index aa3ae1eb8ea..13df0d25774 100644
--- a/app/views/admin/settings/incoming_mails_settings/show.html.erb
+++ b/app/views/admin/settings/incoming_mails_settings/show.html.erb
@@ -31,11 +31,11 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t(:'label_incoming_emails') }
+ header.with_title { t(:label_incoming_emails) }
header.with_breadcrumbs(
[{ href: admin_index_path, text: t(:label_administration) },
{ href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },
- t(:'label_incoming_emails')]
+ t(:label_incoming_emails)]
)
end
%>
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 317db9a828e..c69c8a72659 100644
--- a/app/views/admin/settings/virus_scanning_settings/show.html.erb
+++ b/app/views/admin/settings/virus_scanning_settings/show.html.erb
@@ -40,7 +40,7 @@ See COPYRIGHT and LICENSE files for more details.
admin_settings_virus_scanning_path,
method: :patch,
data: {
- 'controller': "refresh-on-form-changes",
+ controller: "refresh-on-form-changes",
'refresh-on-form-changes-target': "form",
'refresh-on-form-changes-turbo-stream-url-value': url_for(action: "av_form")
}
diff --git a/app/views/custom_actions/_form.html.erb b/app/views/custom_actions/_form.html.erb
index c032531365d..6ac78b9784c 100644
--- a/app/views/custom_actions/_form.html.erb
+++ b/app/views/custom_actions/_form.html.erb
@@ -1,5 +1,7 @@
-<% initialize_hide_sections_with @custom_action.all_actions.map { |a| { key: a.key, label: a.human_name } },
- @custom_action.actions.map { |a| { key: a.key, label: a.human_name } } %>
+<% initialize_hide_sections_with(
+ @custom_action.all_actions.map { |a| { key: a.key, label: a.human_name } },
+ @custom_action.actions.map { |a| { key: a.key, label: a.human_name } }
+ ) %>
<div class="form--field -required">
<%= f.text_field :name, required: true, container_class: "-middle" %>
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index 3c4437e0ac1..8953a73f42a 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -118,7 +118,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<p>
<%
- has_branches = ([email protected]? && @repository.branches.length > 0)
+ has_branches = ([email protected]? && [email protected]?)
sep = ""
%>
diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erb
index 9e9bb0c03a4..83d5f8a03c5 100644
--- a/app/views/work_packages/moves/new.html.erb
+++ b/app/views/work_packages/moves/new.html.erb
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
{ action: "create" },
id: "move_form",
data: {
- 'controller': "refresh-on-form-changes",
+ controller: "refresh-on-form-changes",
'refresh-on-form-changes-target': "form",
'refresh-on-form-changes-refresh-url-value': url_for(action: "new")
},
@@ -88,7 +88,7 @@ See COPYRIGHT and LICENSE files for more details.
content_tag("option", t(:label_no_change_option), value: "") +
options_from_collection_for_select(@types, "id", "name", @target_type&.id),
data: {
- 'action': "change->refresh-on-form-changes#triggerReload"
+ action: "change->refresh-on-form-changes#triggerReload"
}
) %>
</div>
diff --git a/lookbook/docs/styles/deprecated/03-colors.md.erb b/lookbook/docs/styles/deprecated/03-colors.md.erb
index dcec549868f..0b7c011933e 100644
--- a/lookbook/docs/styles/deprecated/03-colors.md.erb
+++ b/lookbook/docs/styles/deprecated/03-colors.md.erb
@@ -187,7 +187,7 @@ This colour indicates that the requested user action was successful. It should b
<%
tokens = JSON.parse File.read(Rails.root.join("frontend/src/app/spot/styles/tokens/dist/tokens.json"))
-tokens.select { |k, v| k.start_with?("spot-color-") }.each do |name, value|
+tokens.select { |k, _v| k.start_with?("spot-color-") }.each do |name, value|
%>
<div class="colors--color">
diff --git a/lookbook/docs/styles/deprecated/04-spacings.md.erb b/lookbook/docs/styles/deprecated/04-spacings.md.erb
index 609ba274047..b470588e3ea 100644
--- a/lookbook/docs/styles/deprecated/04-spacings.md.erb
+++ b/lookbook/docs/styles/deprecated/04-spacings.md.erb
@@ -8,7 +8,7 @@ title: Spacings
<%
tokens = JSON.parse File.read(Rails.root.join("frontend/src/app/spot/styles/tokens/dist/tokens.json"))
tokens
- .select { |k, v| k.start_with?("spot-spacing-") }
+ .select { |k, _v| k.start_with?("spot-spacing-") }
.sort_by { |k,| k.split("-")[2].gsub("_", ".").to_f }
.each do |name, value|
%>
diff --git a/lookbook/docs/styles/deprecated/05-shadows.md.erb b/lookbook/docs/styles/deprecated/05-shadows.md.erb
index 4160cc0866a..4fe49829df3 100644
--- a/lookbook/docs/styles/deprecated/05-shadows.md.erb
+++ b/lookbook/docs/styles/deprecated/05-shadows.md.erb
@@ -17,7 +17,7 @@ cols = ["Low", "Mid", "High"]
rows = ["Light", "Hard"]
tokens = JSON.parse File.read(Rails.root.join("frontend/src/app/spot/styles/tokens/dist/tokens.json"))
tokens = tokens
- .select { |k, v| k.start_with?("spot-shadow-") }
+ .select { |k, _v| k.start_with?("spot-shadow-") }
.sort_by { |k,| k.split("-")[2].gsub("_", ".").to_f }
.to_h
%>
diff --git a/lookbook/previews/op_primer/form_preview/default.html.erb b/lookbook/previews/op_primer/form_preview/default.html.erb
index 2ffd40ab9c3..91927639f3d 100644
--- a/lookbook/previews/op_primer/form_preview/default.html.erb
+++ b/lookbook/previews/op_primer/form_preview/default.html.erb
@@ -24,7 +24,7 @@
url: "/foo",
method: :get,
data: {
- "controller": "form-preview",
+ controller: "form-preview",
"form-preview-url-value": preview_path
}
) do |f|
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb
index c184a8d08a5..3bf76262f6b 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb
@@ -39,14 +39,14 @@ See COPYRIGHT and LICENSE files for more details.
header.with_action_button(
tag: :a,
- mobile_icon: :"eye",
+ mobile_icon: :eye,
mobile_label: t("ifc_models.label_show_defaults"),
href: defaults_bcf_project_ifc_models_path,
aria: { label: I18n.t("ifc_models.label_show_defaults") },
data: { test_selector: "ifc-show-default-button" },
title: I18n.t("ifc_models.label_show_defaults")
) do |button|
- button.with_leading_visual_icon(icon: :"eye")
+ button.with_leading_visual_icon(icon: :eye)
t("ifc_models.label_show_defaults")
end
end
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 3d50586ee2b..b4f81209c2e 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
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
class: "budget-item-value form--text-field",
data: {
'request-key': "hours",
- 'action': "keyup->costs--budget-subform#valueChanged"
+ action: "keyup->costs--budget-subform#valueChanged"
} %>
</div>
</div>
@@ -76,7 +76,7 @@ See COPYRIGHT and LICENSE files for more details.
class: "form--select budget-item-value",
data: {
'request-key': "user_id",
- 'action': "change->costs--budget-subform#valueChanged"
+ 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 0ad05be7f0f..02b470f2b51 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
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
class: "budget-item-value form--text-field",
data: {
'request-key': "units",
- 'action': "keyup->costs--budget-subform#valueChanged"
+ action: "keyup->costs--budget-subform#valueChanged"
} %>
</div>
</div>
@@ -79,7 +79,7 @@ See COPYRIGHT and LICENSE files for more details.
class: "form--select budget-item-value",
data: {
'request-key': "cost_type_id",
- 'action': "change->costs--budget-subform#valueChanged"
+ action: "change->costs--budget-subform#valueChanged"
}
} %>
</td>
diff --git a/modules/costs/app/views/costlog/edit.html.erb b/modules/costs/app/views/costlog/edit.html.erb
index e3604fb1286..b0968a01953 100644
--- a/modules/costs/app/views/costlog/edit.html.erb
+++ b/modules/costs/app/views/costlog/edit.html.erb
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @cost_entry.work_package %>
<div class="form--field-instructions">
- <%= h("#{@cost_entry.work_package.to_s}") %>
+ <%= h("#{@cost_entry.work_package}") %>
</div>
<% end %>
</div>
diff --git a/modules/meeting/app/components/meeting_sections/header_component.html.erb b/modules/meeting/app/components/meeting_sections/header_component.html.erb
index 29c1e64670e..4ccf9b924c2 100644
--- a/modules/meeting/app/components/meeting_sections/header_component.html.erb
+++ b/modules/meeting/app/components/meeting_sections/header_component.html.erb
@@ -43,7 +43,7 @@
method: :put,
url: meeting_section_path(@meeting_section.meeting, @meeting_section),
data: {
- "controller": "meeting-section-form",
+ controller: "meeting-section-form",
"application-target": "dynamic",
"meeting-section-form-cancel-url-value": cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section)
}
diff --git a/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb b/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb
index 22483e46d48..8b0fc65b46e 100644
--- a/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb
+++ b/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb
@@ -17,7 +17,7 @@
url: update_participants_meeting_path(@meeting),
data: { turbo: true, turbo_stream: true },
class: "Overlay-form"
- ) do |f|
+ ) do |_f|
flex_layout do |form_container|
form_container.with_row do
flex_layout(justify_content: :flex_end) do |header|
diff --git a/modules/meeting/app/components/meetings/side_panel_component.html.erb b/modules/meeting/app/components/meetings/side_panel_component.html.erb
index 3de36541276..5f582e547ab 100644
--- a/modules/meeting/app/components/meetings/side_panel_component.html.erb
+++ b/modules/meeting/app/components/meetings/side_panel_component.html.erb
@@ -6,7 +6,7 @@
panel.with_section(Meetings::SidePanel::StateComponent.new(meeting: @meeting))
end
- desktop_grid_row_arguments = { display: [:none, nil, :"table_cell"] }
+ desktop_grid_row_arguments = { display: [:none, nil, :table_cell] }
panel.with_section(
Meetings::SidePanel::ParticipantsComponent.new(meeting: @meeting),
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 8f264167ad5..c9b425b8ce5 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
@@ -6,7 +6,7 @@
model:,
method: :put,
data: {
- "controller": "overview--project-life-cycles-form",
+ controller: "overview--project-life-cycles-form",
"overview--project-life-cycles-form-url-value": project_life_cycles_form_path(project_id: model.id),
"application-target": "dynamic",
turbo: true,
diff --git a/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erb b/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erb
index a9c03f50045..f2d298fd24a 100644
--- a/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erb
+++ b/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
render(
Primer::Beta::Button.new(
scheme: :default,
- block: :true,
+ block: true,
type: :submit
)
) do |button|
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 05bbffe65f6..ea17ead56f8 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
@@ -125,7 +125,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_button_tag class: "button_no-margin",
data: {
'project-storage-form-target': "selectProjectFolderButton",
- 'action': "project-storage-form#selectProjectFolder"
+ action: "project-storage-form#selectProjectFolder"
},
type: "button" do %>
<%= spot_icon("folder-open") %>
diff --git a/modules/storages/app/views/storages/project_settings/attachments.html.erb b/modules/storages/app/views/storages/project_settings/attachments.html.erb
index ac297d0db94..31255c39771 100644
--- a/modules/storages/app/views/storages/project_settings/attachments.html.erb
+++ b/modules/storages/app/views/storages/project_settings/attachments.html.erb
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
end
header.with_tab_nav(label: nil) do |tab_nav|
tab_nav.with_tab(selected: false, href: external_file_storages_project_settings_project_storages_path) do |tab|
- tab.with_text { t(:"external_file_storages") }
+ tab.with_text { t(:external_file_storages) }
end
tab_nav.with_tab(selected: true, href: attachments_project_settings_project_storages_path) do |tab|
tab.with_text { t(:"attributes.attachments") }
diff --git a/modules/storages/app/views/storages/project_settings/external_file_storages.html.erb b/modules/storages/app/views/storages/project_settings/external_file_storages.html.erb
index 23d806a12d7..c0d354395c3 100644
--- a/modules/storages/app/views/storages/project_settings/external_file_storages.html.erb
+++ b/modules/storages/app/views/storages/project_settings/external_file_storages.html.erb
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
end
header.with_tab_nav(label: nil) do |tab_nav|
tab_nav.with_tab(selected: true, href: external_file_storages_project_settings_project_storages_path) do |tab|
- tab.with_text { t(:"external_file_storages") }
+ tab.with_text { t(:external_file_storages) }
end
tab_nav.with_tab(selected: false, href: attachments_project_settings_project_storages_path) do |tab|
tab.with_text { t(:"attributes.attachments") }
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb
index b15240110a5..73a2dfd57cf 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb
@@ -23,7 +23,7 @@
t("two_factor_authentication.label_device")
end
- @available_devices.each do |key, device_class|
+ @available_devices.each do |key, _device_class|
menu.with_item(
label: t("two_factor_authentication.devices.#{key}.title"),
href: url_for(action: :new, type: key),