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 quotes

Ivan Kuchinfb715f21b92d
diff --git a/app/components/activities/days_component.html.erb b/app/components/activities/days_component.html.erb
index ced326e3a91..f3be931221e 100644
--- a/app/components/activities/days_component.html.erb
+++ b/app/components/activities/days_component.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="op-activity-days">
<% events_by_day_sorted_by_newest_first.each do |day, events| %>
- <%= content_tag(@header_tag, helpers.format_activity_day(day), class: 'op-activity-days--header') %>
+ <%= content_tag(@header_tag, helpers.format_activity_day(day), class: "op-activity-days--header") %>
<ul class="op-activity-list">
<%=
diff --git a/app/components/activities/item_component.html.erb b/app/components/activities/item_component.html.erb
index ba689f97991..bf5fb32d9c4 100644
--- a/app/components/activities/item_component.html.erb
+++ b/app/components/activities/item_component.html.erb
@@ -49,7 +49,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if comment.present? -%>
<ul class="op-activity-list--item-details">
<li class="op-activity-list--item-detail">
- <strong><%= t('label_comment_added') %></strong>
+ <strong><%= t("label_comment_added") %></strong>
<p class="op-uc-p"><%= helpers.truncate_formatted_text(comment) %></p>
</li>
</ul>
diff --git a/app/components/components/on_off_status_component.html.erb b/app/components/components/on_off_status_component.html.erb
index 4a64e60e31f..0fc8e9bb298 100644
--- a/app/components/components/on_off_status_component.html.erb
+++ b/app/components/components/on_off_status_component.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="on-off-status-cell">
<% if enabled? %>
<span class="on-off-status -enabled">
- <%= helpers.op_icon 'icon-yes' %>
+ <%= helpers.op_icon "icon-yes" %>
<%= model[:on_text] %>
</span>
<p>
@@ -40,7 +40,7 @@ See COPYRIGHT and LICENSE files for more details.
</p>
<% else %>
<span class="on-off-status -disabled">
- <%= helpers.op_icon 'icon-not-supported' %>
+ <%= helpers.op_icon "icon-not-supported" %>
<%= model[:off_text] %>
</span>
<p><%= model[:off_description] %></p>
diff --git a/app/components/enterprise_edition/banner_component.html.erb b/app/components/enterprise_edition/banner_component.html.erb
index 5161729b5d5..85448f2903d 100644
--- a/app/components/enterprise_edition/banner_component.html.erb
+++ b/app/components/enterprise_edition/banner_component.html.erb
@@ -2,7 +2,7 @@
grid_layout("op-ee-banner", **@system_arguments) do |grid|
grid.with_area(:'icon-container') do
content_tag :div, class: "op-ee-banner--shield" do
- render(Primer::Beta::Octicon.new(icon: 'op-enterprise-addons',
+ render(Primer::Beta::Octicon.new(icon: "op-enterprise-addons",
size: :medium,
classes: "op-ee-banner--icon"))
end
@@ -11,7 +11,7 @@
grid.with_area(:'description-container') { render(Primer::Beta::Text.new) { description } }
grid.with_area(:'link-container') do
render(Primer::Beta::Link.new(href: href)) do |link|
- link.with_trailing_visual_icon(icon: 'link-external')
+ link.with_trailing_visual_icon(icon: "link-external")
link_title
end
end
diff --git a/app/components/individual_principal_base_filter_component.html.erb b/app/components/individual_principal_base_filter_component.html.erb
index 42bae272f63..fbad36ec421 100644
--- a/app/components/individual_principal_base_filter_component.html.erb
+++ b/app/components/individual_principal_base_filter_component.html.erb
@@ -28,11 +28,11 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= form_tag(filter_path, method: :get) do %>
- <% collapsed_class = initially_visible? ? '' : 'collapsed' %>
+ <% collapsed_class = initially_visible? ? "" : "collapsed" %>
<fieldset class="simple-filters--container <%= collapsed_class %>" data-members-form-target="filterContainer">
<legend><%= t(:label_filter_plural) %></legend>
<% if has_close_icon? %>
- <a title="<%= t('js.close_form_title') %>"
+ <a title="<%= t("js.close_form_title") %>"
data-action="members-form#toggleMemberFilter"
class="toggle-member-filter-link simple-filters--close icon-context icon-close">
</a>
@@ -41,10 +41,10 @@ See COPYRIGHT and LICENSE files for more details.
<% if has_statuses? %>
<li class="simple-filters--filter">
<label class='simple-filters--filter-name' for='status'><%= User.human_attribute_name(:status) %>:</label>
- <%= select_tag 'status',
+ <%= select_tag "status",
user_status_options,
- class: 'simple-filters--filter-value',
- 'data-members-form-target': 'statusSelect' %>
+ class: "simple-filters--filter-value",
+ 'data-members-form-target': "statusSelect" %>
</li>
<% end %>
<% if has_groups? %>
@@ -58,7 +58,7 @@ See COPYRIGHT and LICENSE files for more details.
{ include_blank: true,
selected: params[:group_id].to_i },
{ name: "group_id",
- class: 'simple-filters--filter-value' } %>
+ class: "simple-filters--filter-value" } %>
</li>
<% end %>
<% if roles.present? %>
@@ -77,14 +77,14 @@ See COPYRIGHT and LICENSE files for more details.
},
{
name: "role_id",
- class: 'simple-filters--filter-value'
+ class: "simple-filters--filter-value"
})
%>
</li>
<% end %>
<% if has_shares? %>
<li class="simple-filters--filter">
- <label class='simple-filters--filter-name' for='shared_role_id'><%= t('members.menu.wp_shares') %>:</label>
+ <label class='simple-filters--filter-name' for='shared_role_id'><%= t("members.menu.wp_shares") %>:</label>
<%=
select_tag(
:shared_role_id,
@@ -95,18 +95,18 @@ See COPYRIGHT and LICENSE files for more details.
{
include_blank: true,
name: "shared_role_id",
- class: 'simple-filters--filter-value'
+ class: "simple-filters--filter-value"
})
%>
</li>
<% end %>
<li class="simple-filters--filter">
<label class='simple-filters--filter-name' for='name'><%= User.human_attribute_name :name %>:</label>
- <%= text_field_tag 'name', params[:name], class: 'simple-filters--filter-value' %>
+ <%= text_field_tag "name", params[:name], class: "simple-filters--filter-value" %>
</li>
<li class="simple-filters--controls">
- <%= submit_tag t(:button_apply), class: 'button -primary -small', name: nil %>
- <%= link_to t(:button_clear), clear_url, class: 'button -small -with-icon icon-undo' %>
+ <%= submit_tag t(:button_apply), class: "button -primary -small", name: nil %>
+ <%= link_to t(:button_clear), clear_url, class: "button -small -with-icon icon-undo" %>
</li>
</ul>
</fieldset>
diff --git a/app/components/members/index_sub_header_component.html.erb b/app/components/members/index_sub_header_component.html.erb
index d982cdf7950..95a0f66214d 100644
--- a/app/components/members/index_sub_header_component.html.erb
+++ b/app/components/members/index_sub_header_component.html.erb
@@ -13,7 +13,7 @@
id: "add-member-button",
data: add_button_data_attributes) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.member')
+ t("activerecord.models.member")
end
subheader.with_bottom_pane_component do
diff --git a/app/components/messages/show_page_header_component.html.erb b/app/components/messages/show_page_header_component.html.erb
index 4cec4fedc5d..2fd3c270434 100644
--- a/app/components/messages/show_page_header_component.html.erb
+++ b/app/components/messages/show_page_header_component.html.erb
@@ -5,15 +5,15 @@
watcher_action_button(header, @topic)
- if [email protected]? && authorize_for('messages', 'reply')
+ if [email protected]? && authorize_for("messages", "reply")
header.with_action_button(tag: :a,
scheme: :default,
mobile_icon: :quote,
mobile_label: t(:button_quote),
size: :medium,
- href: url_for({ action: 'quote', id: @topic }),
+ 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)
t(:button_quote)
diff --git a/app/components/my/access_token/access_token_created_dialog_component.html.erb b/app/components/my/access_token/access_token_created_dialog_component.html.erb
index ad570b7a3de..ae5e4c791bf 100644
--- a/app/components/my/access_token/access_token_created_dialog_component.html.erb
+++ b/app/components/my/access_token/access_token_created_dialog_component.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
input_group.with_trailing_action_clipboard_copy_button(
value: @token_value,
aria: {
- label: I18n.t('button_copy_to_clipboard')
+ label: I18n.t("button_copy_to_clipboard")
})
end
end
diff --git a/app/components/my/access_token/api_tokens_section_component.html.erb b/app/components/my/access_token/api_tokens_section_component.html.erb
index cd6206d5638..181b5e8d908 100644
--- a/app/components/my/access_token/api_tokens_section_component.html.erb
+++ b/app/components/my/access_token/api_tokens_section_component.html.erb
@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
<div tabindex="0" class="-info op-toast">
<div role="alert" aria-atomic="true" class="op-toast--content">
<p>
- <span><%= t('my_account.access_tokens.api.disabled_text') %></span>
+ <span><%= t("my_account.access_tokens.api.disabled_text") %></span>
</p>
</div>
</div>
diff --git a/app/components/open_project/common/attribute_component.html.erb b/app/components/open_project/common/attribute_component.html.erb
index a8be7628928..5e76a295f59 100644
--- a/app/components/open_project/common/attribute_component.html.erb
+++ b/app/components/open_project/common/attribute_component.html.erb
@@ -6,7 +6,7 @@
<%= render(
Primer::Beta::Text.new(tag: :div,
- classes: ['op-long-text-attribute--text', PARAGRAPH_CSS_CLASS],
+ classes: ["op-long-text-attribute--text", PARAGRAPH_CSS_CLASS],
color: text_color,
style: "max-height: #{max_height};",
data: {
@@ -16,25 +16,25 @@
<%= render(
Primer::Beta::Text.new(tag: :div,
display: display_expand_button_value,
- classes: 'op-long-text-attribute--text-hider',
- data: { 'attribute-target': 'textHider' })) %>
+ classes: "op-long-text-attribute--text-hider",
+ data: { 'attribute-target': "textHider" })) %>
<%= render(
Primer::Alpha::HiddenTextExpander.new(inline: false,
- "aria-label": I18n.t('label_attribute_expand_text', attribute: name),
+ "aria-label": I18n.t("label_attribute_expand_text", attribute: name),
display: display_expand_button_value,
data: {
- 'attribute-target': 'expandButton',
- 'test-selector': 'expand-button'
+ 'attribute-target': "expandButton",
+ 'test-selector': "expand-button"
},
button_arguments: { 'data-show-dialog-id': id },
- classes: 'op-long-text-attribute--text-expander'
+ classes: "op-long-text-attribute--text-expander"
)) %>
<%= render(
Primer::Alpha::Dialog.new(id: id,
data: {
- 'test-selector': 'attribute-dialog'
+ 'test-selector': "attribute-dialog"
},
title: name,
size: :large)) do |component|
diff --git a/app/components/open_project/common/submenu_component.html.erb b/app/components/open_project/common/submenu_component.html.erb
index bc172b50a4d..50cf60b59ba 100644
--- a/app/components/open_project/common/submenu_component.html.erb
+++ b/app/components/open_project/common/submenu_component.html.erb
@@ -29,7 +29,7 @@
<ul class="op-submenu--items">
<% top_level_sidebar_menu_items.first.children.each do |menu_item| %>
<li class="op-submenu--item" data-filter--filter-list-target="searchItem">
- <% selected = menu_item.selected ? 'selected' : '' %>
+ <% selected = menu_item.selected ? "selected" : "" %>
<a class="op-submenu--item-action <%= selected %>" href="<%= menu_item.href %>" data-test-selector="op-submenu--item-action">
<% if menu_item.icon %>
<%= render Primer::Beta::Octicon.new(icon: menu_item.icon, classes: "op-submenu--item-icon") %>
@@ -69,7 +69,7 @@
data-menus--submenu-target="container">
<% menu_item.children.each do |child_item| %>
<li class="op-submenu--item" data-filter--filter-list-target="searchItem">
- <% selected = child_item.selected ? 'selected' : '' %>
+ <% selected = child_item.selected ? "selected" : "" %>
<a class="op-submenu--item-action <%= selected %>" href="<%= child_item.href %>" data-test-selector="op-submenu--item-action">
<% if child_item.icon %>
<%= render Primer::Beta::Octicon.new(icon: child_item.icon, classes: "op-submenu--item-icon") %>
diff --git a/app/components/projects/configure_view_modal_component.html.erb b/app/components/projects/configure_view_modal_component.html.erb
index 6cae6fa6949..d19d4001cbb 100644
--- a/app/components/projects/configure_view_modal_component.html.erb
+++ b/app/components/projects/configure_view_modal_component.html.erb
@@ -20,7 +20,7 @@
<% tab_panel.with_tab(selected: true, id: "tab-selects--columns") do |tab| %>
<% tab.with_text { I18n.t("label_columns") } %>
<% tab.with_panel do %>
- <%= helpers.angular_component_tag 'opce-draggable-autocompleter',
+ <%= helpers.angular_component_tag "opce-draggable-autocompleter",
inputs: {
options: helpers.projects_columns_options,
selected: selected_columns,
diff --git a/app/components/projects/disk_usage_information_component.html.erb b/app/components/projects/disk_usage_information_component.html.erb
index eed9f4c860e..0e8f6bc9dbd 100644
--- a/app/components/projects/disk_usage_information_component.html.erb
+++ b/app/components/projects/disk_usage_information_component.html.erb
@@ -1,5 +1,5 @@
<p class="information-section">
- <%= helpers.op_icon('icon-info1') %>
+ <%= helpers.op_icon("icon-info1") %>
<%= t(:label_projects_disk_usage_information,
count: Project.count,
used_disk_space: number_to_human_size(Project.total_projects_size, precision: 2)) %>
diff --git a/app/components/projects/export_list_modal_component.html.erb b/app/components/projects/export_list_modal_component.html.erb
index cb39f9c51b3..5a6b837ad85 100644
--- a/app/components/projects/export_list_modal_component.html.erb
+++ b/app/components/projects/export_list_modal_component.html.erb
@@ -1,4 +1,4 @@
-<%= render(Primer::Alpha::Dialog.new(title: t('js.label_export'),
+<%= render(Primer::Alpha::Dialog.new(title: t("js.label_export"),
id: MODAL_ID)) do |d| %>
<% d.with_header(variant: :large) %>
<% d.with_body do %>
@@ -6,7 +6,7 @@
<% helpers.supported_export_formats.each do |key| %>
<li class="op-export-options--option">
<%= link_to projects_path(format: key, **helpers.projects_query_params.except(:page, :per_page)),
- class: 'op-export-options--option-link' do %>
+ class: "op-export-options--option-link" do %>
<%= helpers.op_icon("icon-big icon-export-#{key}") %>
<span class="op-export-options--option-label"><%= t("export.format.#{key}") %></span>
<% end %>
diff --git a/app/components/projects/index_page_header_component.html.erb b/app/components/projects/index_page_header_component.html.erb
index 50579e86c01..bce2a3524fa 100644
--- a/app/components/projects/index_page_header_component.html.erb
+++ b/app/components/projects/index_page_header_component.html.erb
@@ -1,7 +1,7 @@
-<%= component_wrapper(tag: 'turbo-frame') do %>
+<%= component_wrapper(tag: "turbo-frame") do %>
<%=
render(Primer::OpenProject::PageHeader.new(state: @state)) do |header|
- header.with_title(data: { 'test-selector': 'project-query-name' }) do |title|
+ header.with_title(data: { 'test-selector': "project-query-name" }) do |title|
title.with_editable_form(model: query,
update_path: @query.new_record? ? project_queries_path(projects_query_params) : project_query_path(@query, projects_query_params),
method: @query.new_record? ? :post : :put,
@@ -9,8 +9,8 @@
input_name: "name",
label: ProjectQuery.human_attribute_name(:name),
placeholder: I18n.t(:"projects.lists.new.placeholder"),
- scope: 'query',
- id: 'project-save-form')
+ scope: "query",
+ id: "project-save-form")
page_title
end
header.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: current_breadcrumb_element == page_title ? :bold : :normal)
@@ -78,7 +78,7 @@
) do |menu|
if can_rename?
menu.with_item(
- label: t('button_rename'),
+ label: t("button_rename"),
href: rename_project_query_path(query),
) do |item|
item.with_leading_visual_icon(icon: :pencil)
@@ -88,12 +88,12 @@
if gantt_portfolio_project_ids.any?
menu.with_item(
tag: :a,
- label: t('projects.index.open_as_gantt'),
+ label: t("projects.index.open_as_gantt"),
href: gantt_portfolio_query_link,
- id: 'projects-index-open-as-gantt',
- content_arguments: { target: '_blank' }
+ id: "projects-index-open-as-gantt",
+ content_arguments: { target: "_blank" }
) do |item|
- item.with_leading_visual_icon(icon: 'op-view-timeline')
+ item.with_leading_visual_icon(icon: "op-view-timeline")
end
end
@@ -103,13 +103,13 @@
href: activities_path,
content_arguments: { rel: "nofollow" }
) do |item|
- item.with_leading_visual_icon(icon: 'tasklist')
+ item.with_leading_visual_icon(icon: "tasklist")
end
if can_save?
menu_save_item(
menu:,
- label: t('button_save'),
+ label: t("button_save"),
href: project_query_path(query, projects_query_params),
method: :patch
)
@@ -118,18 +118,18 @@
if may_save_as?
menu_save_item(
menu:,
- label: t('button_save_as'),
+ label: t("button_save_as"),
href: new_project_query_path(projects_query_params)
)
end
menu.with_item(
tag: :a,
- label: t('js.label_export'),
+ label: t("js.label_export"),
href: export_list_modal_projects_path(projects_query_params),
content_arguments: { data: { controller: "async-dialog" }, rel: "nofollow" }
) do |item|
- item.with_leading_visual_icon(icon: 'sign-out')
+ item.with_leading_visual_icon(icon: "sign-out")
end
menu.with_item(
@@ -149,16 +149,16 @@
href: destroy_confirmation_modal_project_query_path(query.id),
content_arguments: { data: { controller: "async-dialog" }}
) do |item|
- item.with_leading_visual_icon(icon: 'trash')
+ item.with_leading_visual_icon(icon: "trash")
end
end
menu.with_item(
tag: :button,
- label: t('label_zen_mode'),
+ label: t("label_zen_mode"),
content_arguments: { data: { controller: "projects-zen-mode", target: "projects-zen-mode.button", action: "click->projects-zen-mode#performAction" }
}
) do |item|
- item.with_leading_visual_icon(icon: 'screen-full')
+ item.with_leading_visual_icon(icon: "screen-full")
end
end
end
diff --git a/app/components/projects/index_sub_header_component.html.erb b/app/components/projects/index_sub_header_component.html.erb
index 354a7e3b152..b2866d23d26 100644
--- a/app/components/projects/index_sub_header_component.html.erb
+++ b/app/components/projects/index_sub_header_component.html.erb
@@ -1,9 +1,9 @@
-<%= component_wrapper(tag: 'turbo-frame') do %>
+<%= component_wrapper(tag: "turbo-frame") do %>
<%= render(Primer::OpenProject::SubHeader.new(data: sub_header_data_attributes)) do |subheader|
subheader.with_filter_input(name: "name_and_identifier",
- label: t('projects.index.search.label'),
+ label: t("projects.index.search.label"),
value: filter_input_value,
- placeholder: t('projects.index.search.placeholder'),
+ placeholder: t("projects.index.search.placeholder"),
leading_visual: {
icon: :search,
size: :small
@@ -21,7 +21,7 @@
disabled: @disable_buttons,
size: :medium,
aria: { label: I18n.t(:label_project_new) },
- data: { 'test-selector': 'project-new-button' }) do |button|
+ data: { 'test-selector': "project-new-button" }) do |button|
button.with_leading_visual_icon(icon: :plus)
Project.model_name.human
end if @current_user.allowed_globally?(:add_project)
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 06c1f59002e..a81281c601b 100644
--- a/app/components/projects/settings/index_page_header_component.html.erb
+++ b/app/components/projects/settings/index_page_header_component.html.erb
@@ -22,13 +22,13 @@
header.with_action_button(tag: :a,
mobile_icon: :pencil,
- mobile_label: t('projects.settings.change_identifier'),
+ mobile_label: t("projects.settings.change_identifier"),
size: :medium,
href: project_identifier_path(@project),
- aria: { label: t('projects.settings.change_identifier') },
- title: t('projects.settings.change_identifier')) do |button|
+ aria: { label: t("projects.settings.change_identifier") },
+ title: t("projects.settings.change_identifier")) do |button|
button.with_leading_visual_icon(icon: :pencil)
- t('projects.settings.change_identifier')
+ t("projects.settings.change_identifier")
end
header.with_action_menu(
@@ -59,17 +59,17 @@
menu.with_item(
tag: :a,
label: t(:button_archive),
- href: project_archive_path(@project, status: '', name: @project.name),
+ 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|
- item.with_leading_visual_icon(icon: 'lock')
+ item.with_leading_visual_icon(icon: "lock")
end
end
if User.current.admin?
- label = @project.templated ? 'remove_from_templates' : 'make_template'
+ label = @project.templated ? "remove_from_templates" : "make_template"
menu.with_item(
tag: :a,
label: t("project.template.#{label}"),
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 1f6ee9ecb67..d214f0f91e1 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
@@ -3,9 +3,9 @@
flex.with_row do
render(Primer::OpenProject::SubHeader.new) do |subheader|
subheader.with_filter_input(name: "border-box-filter",
- label: t('projects.settings.life_cycle.filter.label'),
+ label: t("projects.settings.life_cycle.filter.label"),
visually_hide_label: true,
- placeholder: t('projects.settings.life_cycle.filter.label'),
+ placeholder: t("projects.settings.life_cycle.filter.label"),
leading_visual: {
icon: :search,
size: :small
@@ -27,36 +27,36 @@
# 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
- I18n.t('projects.settings.life_cycle.section_header')
+ I18n.t("projects.settings.life_cycle.section_header")
end
end
header_container.with_column(flex_layout: true, justify_content: :flex_end) do |actions_container|
- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering' }) do
+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
render(Primer::Beta::Button.new(
tag: :a,
href: enable_all_project_settings_life_cycle_steps_path(project_id: project),
scheme: :invisible,
font_weight: :bold,
color: :subtle,
- 'aria-label': t('projects.settings.actions.label_enable_all'),
+ 'aria-label': t("projects.settings.actions.label_enable_all"),
data: { 'turbo-method': :post, test_selector: "enable-all-life-cycle-steps" }
)) do |button|
- button.with_leading_visual_icon(icon: 'check-circle', color: :subtle)
- t('projects.settings.actions.label_enable_all')
+ button.with_leading_visual_icon(icon: "check-circle", color: :subtle)
+ t("projects.settings.actions.label_enable_all")
end
end
- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering' }) do
+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
render(Primer::Beta::Button.new(
tag: :a,
href: disable_all_project_settings_life_cycle_steps_path(project_id: project),
scheme: :invisible,
font_weight: :bold,
color: :subtle,
- 'aria-label': t('projects.settings.actions.label_disable_all'),
+ 'aria-label': t("projects.settings.actions.label_disable_all"),
data: { 'turbo-method': :post, test_selector: "disable-all-life-cycle-steps" }
)) do |button|
- button.with_leading_visual_icon(icon: 'x-circle', color: :subtle)
- t('projects.settings.actions.label_disable_all')
+ button.with_leading_visual_icon(icon: "x-circle", color: :subtle)
+ t("projects.settings.actions.label_disable_all")
end
end
end
@@ -68,7 +68,7 @@
end
else
life_cycle_definitions_and_step_active.each do |definition, active|
- component.with_row(data: { 'projects--settings--border-box-filter-target': 'searchItem' },
+ component.with_row(data: { 'projects--settings--border-box-filter-target': "searchItem" },
test_selector: "project-life-cycle-step-#{definition.id}") do
render(Projects::Settings::LifeCycleSteps::StepComponent.new(definition:, active?: active))
end
diff --git a/app/components/projects/settings/life_cycle_steps/index_page_header_component.html.erb b/app/components/projects/settings/life_cycle_steps/index_page_header_component.html.erb
index 8c7eb8f55bc..a52affb1790 100644
--- a/app/components/projects/settings/life_cycle_steps/index_page_header_component.html.erb
+++ b/app/components/projects/settings/life_cycle_steps/index_page_header_component.html.erb
@@ -1,8 +1,8 @@
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('projects.settings.life_cycle.header.title') }
+ header.with_title { t("projects.settings.life_cycle.header.title") }
header.with_description do
- t('projects.settings.life_cycle.header.description_html',
+ t("projects.settings.life_cycle.header.description_html",
overview_url: project_path(project),
admin_settings_url: admin_settings_project_life_cycle_step_definitions_path)
end
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 6da353ef3d7..9af49ae8f94 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
@@ -3,7 +3,7 @@
justify_content: :space_between) do |step_container|
step_container.with_column(flex_layout: true, mr: 2, classes: "min-width-0") do |title_container|
title_container.with_column(pt: 1, mr: 3, classes: "ellipsis") do
- render(Primer::Beta::Text.new(classes: 'filter-target-visible-text')) { definition.name }
+ render(Primer::Beta::Text.new(classes: "filter-target-visible-text")) { definition.name }
end
title_container.with_column(pt: 1, classes: "no-wrap") do
render(Projects::LifeCycleTypeComponent.new(definition))
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 fae8cdf15c3..05d2d13c579 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
@@ -1,11 +1,11 @@
<%=
component_wrapper do
- flex_layout(align_items: :center, justify_content: :space_between, classes: 'op-project-custom-field', data: {
+ flex_layout(align_items: :center, justify_content: :space_between, classes: "op-project-custom-field", data: {
test_selector: "project-custom-field-#{@project_custom_field.id}"
}) do |custom_field_container|
custom_field_container.with_column(flex_layout: true) do |title_container|
title_container.with_column(pt: 1, mr: 2) do
- render(Primer::Beta::Text.new(classes: 'filter-target-visible-text')) do
+ render(Primer::Beta::Text.new(classes: "filter-target-visible-text")) do
@project_custom_field.name
end
end
diff --git a/app/components/projects/settings/project_custom_field_sections/index_component.html.erb b/app/components/projects/settings/project_custom_field_sections/index_component.html.erb
index f54e78c9f20..69765f90a53 100644
--- a/app/components/projects/settings/project_custom_field_sections/index_component.html.erb
+++ b/app/components/projects/settings/project_custom_field_sections/index_component.html.erb
@@ -4,9 +4,9 @@
flex.with_row do
render(Primer::OpenProject::SubHeader.new) do |subheader|
subheader.with_filter_input(name: "border-box-filter",
- label: t('projects.settings.project_custom_fields.filter.label'),
+ label: t("projects.settings.project_custom_fields.filter.label"),
visually_hide_label: true,
- placeholder: t('projects.settings.project_custom_fields.filter.label'),
+ placeholder: t("projects.settings.project_custom_fields.filter.label"),
leading_visual: {
icon: :search,
size: :small
diff --git a/app/components/projects/settings/project_custom_field_sections/index_page_header_component.html.erb b/app/components/projects/settings/project_custom_field_sections/index_page_header_component.html.erb
index b56371d9d98..7d7b7d1b5e5 100644
--- a/app/components/projects/settings/project_custom_field_sections/index_page_header_component.html.erb
+++ b/app/components/projects/settings/project_custom_field_sections/index_page_header_component.html.erb
@@ -1,6 +1,6 @@
<%= render Primer::OpenProject::PageHeader.new do |header| %>
- <%= header.with_title { t('projects.settings.project_custom_fields.header.title') } %>
- <%= header.with_description { t('projects.settings.project_custom_fields.header.description_html',
+ <%= header.with_title { t("projects.settings.project_custom_fields.header.title") } %>
+ <%= header.with_description { t("projects.settings.project_custom_fields.header.description_html",
overview_url: project_path(project),
admin_settings_url: admin_settings_project_custom_fields_path) } %>
<%= header.with_breadcrumbs(breadcrumb_items) %>
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 d2164ada4f9..c9368c22581 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
@@ -1,6 +1,6 @@
<%=
component_wrapper do
- render(border_box_container(mb: 3, classes: 'op-project-custom-field-section', data: {
+ render(border_box_container(mb: 3, classes: "op-project-custom-field-section", data: {
test_selector: "project-custom-field-section-#{@project_custom_field_section.id}"
})) do |component|
component.with_header(font_weight: :bold, py: 2) do
@@ -13,7 +13,7 @@
end
end
section_header_container.with_column(flex_layout: true, justify_content: :flex_end) do |actions_container|
- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering' }) do
+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
render(Primer::Beta::Button.new(
tag: :a,
href: enable_all_of_section_project_settings_project_custom_fields_path(
@@ -25,14 +25,14 @@
scheme: :invisible,
font_weight: :bold,
color: :subtle,
- 'aria-label': t('projects.settings.actions.label_enable_all'),
+ 'aria-label': t("projects.settings.actions.label_enable_all"),
data: { 'turbo-method': :put, 'turbo-stream': true, test_selector: "enable-all-project-custom-field-mappings-#{@project_custom_field_section.id}" }
)) do |button|
- button.with_leading_visual_icon(icon: 'check-circle', color: :subtle)
- t('projects.settings.actions.label_enable_all')
+ button.with_leading_visual_icon(icon: "check-circle", color: :subtle)
+ t("projects.settings.actions.label_enable_all")
end
end
- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering' }) do
+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
render(Primer::Beta::Button.new(
tag: :a,
href: disable_all_of_section_project_settings_project_custom_fields_path(
@@ -44,11 +44,11 @@
scheme: :invisible,
font_weight: :bold,
color: :subtle,
- 'aria-label': t('projects.settings.actions.label_disable_all'),
+ 'aria-label': t("projects.settings.actions.label_disable_all"),
data: { 'turbo-method': :put, 'turbo-stream': true, test_selector: "disable-all-project-custom-field-mappings-#{@project_custom_field_section.id}" }
)) do |button|
- button.with_leading_visual_icon(icon: 'x-circle', color: :subtle)
- t('projects.settings.actions.label_disable_all')
+ button.with_leading_visual_icon(icon: "x-circle", color: :subtle)
+ t("projects.settings.actions.label_disable_all")
end
end
end
@@ -60,7 +60,7 @@
end
else
@project_custom_fields.each do |project_custom_field|
- component.with_row(data: { 'projects--settings--border-box-filter-target': 'searchItem' }) do
+ component.with_row(data: { 'projects--settings--border-box-filter-target': "searchItem" }) do
render(Projects::Settings::ProjectCustomFieldSections::CustomFieldRowComponent.new(
project: @project,
project_custom_field:,
diff --git a/app/components/projects/table_component.html.erb b/app/components/projects/table_component.html.erb
index 40c15c28370..0dd6c900d26 100644
--- a/app/components/projects/table_component.html.erb
+++ b/app/components/projects/table_component.html.erb
@@ -26,12 +26,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= component_wrapper(tag: 'turbo-frame') do %>
+<%= component_wrapper(tag: "turbo-frame") do %>
<div class="project-list-page--table" data-controller="table-action-menu" data-application-target="dynamic">
<div class="generic-table--flex-container">
<div class="generic-table--container <%= container_class %>">
<div class="generic-table--results-container">
- <table class="generic-table" data-controller="table-highlighting" <%= table_id ? "id=\"#{table_id}\"".html_safe : '' %>>
+ <table class="generic-table" data-controller="table-highlighting" <%= table_id ? "id=\"#{table_id}\"".html_safe : "" %>>
<colgroup>
<% columns.each do |column| %>
<col <%= "opHighlightCol" unless column.attribute == :hierarchy %>>
diff --git a/app/components/queries/sort_by_component.html.erb b/app/components/queries/sort_by_component.html.erb
index 041fe0328bf..b2d65f1cda8 100644
--- a/app/components/queries/sort_by_component.html.erb
+++ b/app/components/queries/sort_by_component.html.erb
@@ -1,5 +1,5 @@
-<%= render(Primer::Beta::Heading.new(tag: :h5)) { I18n.t('queries.configure_view.sort_by.automatic.heading') } %>
-<%= render(Primer::Beta::Text.new(font_size: :small, color: :subtle)) { I18n.t('queries.configure_view.sort_by.automatic.description', plural: queried_model_name.plural) } %>
+<%= render(Primer::Beta::Heading.new(tag: :h5)) { I18n.t("queries.configure_view.sort_by.automatic.heading") } %>
+<%= render(Primer::Beta::Text.new(font_size: :small, color: :subtle)) { I18n.t("queries.configure_view.sort_by.automatic.description", plural: queried_model_name.plural) } %>
<div data-controller="sort-by-config" data-application-target="dynamic">
<%= hidden_field_tag :sortBy, current_orders, data: { "sort-by-config-target" => "sortByField" } %>
<%= render(Primer::OpenProject::FlexLayout.new(data: { "sort-by-config-target" => "inputRowContainer" })) do |layout| %>
diff --git a/app/components/queries/sort_by_field_component.html.erb b/app/components/queries/sort_by_field_component.html.erb
index 21dfc7992af..76b128dcb39 100644
--- a/app/components/queries/sort_by_field_component.html.erb
+++ b/app/components/queries/sort_by_field_component.html.erb
@@ -1,14 +1,14 @@
-<%= render(Primer::OpenProject::FlexLayout.new(test_selector: 'sort-by-field')) do |flex| %>
+<%= render(Primer::OpenProject::FlexLayout.new(test_selector: "sort-by-field")) do |flex| %>
<% flex.with_column(flex: 1) do %>
<%#- We are just using the classes of the primer component here, because when using the primer component, we cannot detach the input element from the form %>
<%#- The form="none" adds the input to a nonexistant form (as we do not have one with the ID="none" and thus the fields to not get appended to the query string %>
- <%= select_tag 'sort_field', select_options, prompt: "-", form: "none", class: "FormControl-select FormControl-medium FormControl--fullWidth", data: { action: "change->sort-by-config#fieldChanged"} %>
+ <%= select_tag "sort_field", select_options, prompt: "-", form: "none", class: "FormControl-select FormControl-medium FormControl--fullWidth", data: { action: "change->sort-by-config#fieldChanged"} %>
<% end %>
<% flex.with_column do %>
<%= render(Primer::Alpha::SegmentedControl.new("aria-label": "Sort order", hide_labels: true, ml: 3)) do |sort_buttons| %>
<%#- The segmented control actions need to be included here as well as they do the visual styling of the currently selected option, just setting our action would remove their action %>
- <% sort_buttons.with_item(icon: "sort-asc", label: "sort ascending", selected: order_asc?, data: { direction: 'asc', action: "click:segmented-control#select click->sort-by-config#fieldChanged"}) %>
- <% sort_buttons.with_item(icon: "sort-desc", label: "sort descending", selected: order_desc?, data: { direction: 'desc', action: "click:segmented-control#select click->sort-by-config#fieldChanged"}) %>
+ <% sort_buttons.with_item(icon: "sort-asc", label: "sort ascending", selected: order_asc?, data: { direction: "asc", action: "click:segmented-control#select click->sort-by-config#fieldChanged"}) %>
+ <% sort_buttons.with_item(icon: "sort-desc", label: "sort descending", selected: order_desc?, data: { direction: "desc", action: "click:segmented-control#select click->sort-by-config#fieldChanged"}) %>
<% end %>
<% end %>
<% end %>
diff --git a/app/components/settings/numeric_setting_component.html.erb b/app/components/settings/numeric_setting_component.html.erb
index 2ee975c5ff0..bdcd764a53b 100644
--- a/app/components/settings/numeric_setting_component.html.erb
+++ b/app/components/settings/numeric_setting_component.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
name,
size: size,
unit: t("label_#{unit.singularize}_plural"),
- container_class: '-xslim',
+ container_class: "-xslim",
title: title
)
%>
diff --git a/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb
index 00ccbfbce0e..87798ccceb5 100644
--- a/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb
+++ b/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb
@@ -3,7 +3,7 @@
flex_layout(justify_content: :space_between, align_items: :center) do |main_container|
main_container.with_column(flex_layout: true, align_items: :center) do |content_container|
content_container.with_column(mr: 2) do
- render(Primer::OpenProject::DragHandle.new(classes: 'handle'))
+ render(Primer::OpenProject::DragHandle.new(classes: "handle"))
end
content_container.with_column(mr: 2) do
render(Primer::Beta::Link.new(
diff --git a/app/components/settings/project_custom_field_sections/index_component.html.erb b/app/components/settings/project_custom_field_sections/index_component.html.erb
index 2d26ddc97e8..431ca3ebfe4 100644
--- a/app/components/settings/project_custom_field_sections/index_component.html.erb
+++ b/app/components/settings/project_custom_field_sections/index_component.html.erb
@@ -1,7 +1,7 @@
<%=
component_wrapper(data: wrapper_data_attributes) do
if @project_custom_field_sections.any?
- flex_layout(classes: 'dragula-container', data: { 'allowed-drop-type': 'section' }.merge(drop_target_config) ) do |flex|
+ flex_layout(classes: "dragula-container", data: { 'allowed-drop-type': "section" }.merge(drop_target_config) ) do |flex|
@project_custom_field_sections.each do |section|
flex.with_row(
data: draggable_item_config(section)
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 d4e9da2b256..9efa6131d1a 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
@@ -5,7 +5,7 @@
flex_layout(justify_content: :space_between, align_items: :center) do |section_header_container|
section_header_container.with_column(flex_layout: true, align_items: :center) do |content_container|
content_container.with_column(mr: 2) do
- render(Primer::OpenProject::DragHandle.new(classes: 'handle'))
+ render(Primer::OpenProject::DragHandle.new(classes: "handle"))
end
content_container.with_column do
render(Primer::Beta::Text.new(font_weight: :bold)) do
@@ -28,7 +28,7 @@
end
actions_container.with_column do
render(Primer::Alpha::Dialog.new(
- id: "project-custom-field-section-dialog#{@project_custom_field_section.id}", title: t('settings.project_attributes.label_new_section'),
+ id: "project-custom-field-section-dialog#{@project_custom_field_section.id}", title: t("settings.project_attributes.label_new_section"),
size: :medium_portrait
)) do |dialog|
render(Settings::ProjectCustomFieldSections::DialogBodyFormComponent.new(project_custom_field_section: @project_custom_field_section))
@@ -53,7 +53,7 @@
data: { turbo: "false", test_selector: "new-project-custom-field-button" }
)) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('settings.project_attributes.label_new_attribute')
+ t("settings.project_attributes.label_new_attribute")
end
end
end
diff --git a/app/components/settings/project_custom_fields/header_component.html.erb b/app/components/settings/project_custom_fields/header_component.html.erb
index d05b23f37dd..f65b0bddae2 100644
--- a/app/components/settings/project_custom_fields/header_component.html.erb
+++ b/app/components/settings/project_custom_fields/header_component.html.erb
@@ -10,10 +10,10 @@
<%=
render Primer::OpenProject::SubHeader.new do |subheader|
subheader.with_action_component do
- render(Primer::Alpha::Dialog.new(id: "project-custom-field-section-dialog", title: t('settings.project_attributes.label_new_section'), size: :medium_portrait)) do |dialog|
- dialog.with_show_button('aria-label': t('settings.project_attributes.label_new_section')) do |button|
+ render(Primer::Alpha::Dialog.new(id: "project-custom-field-section-dialog", title: t("settings.project_attributes.label_new_section"), size: :medium_portrait)) do |dialog|
+ dialog.with_show_button('aria-label': t("settings.project_attributes.label_new_section")) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('settings.project_attributes.label_new_section')
+ t("settings.project_attributes.label_new_section")
end
dialog.with_body do
render(Settings::ProjectCustomFieldSections::DialogBodyFormComponent.new)
diff --git a/app/components/settings/project_custom_fields/new_form_header_component.html.erb b/app/components/settings/project_custom_fields/new_form_header_component.html.erb
index 1b0bcb9ccb5..23f18628b5a 100644
--- a/app/components/settings/project_custom_fields/new_form_header_component.html.erb
+++ b/app/components/settings/project_custom_fields/new_form_header_component.html.erb
@@ -29,8 +29,8 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('settings.project_attributes.new.heading') }
- header.with_description { t('settings.project_attributes.new.description') }
+ header.with_title { t("settings.project_attributes.new.heading") }
+ header.with_description { t("settings.project_attributes.new.description") }
header.with_breadcrumbs(breadcrumb_items)
end
%>
diff --git a/app/components/settings/text_setting_component.html.erb b/app/components/settings/text_setting_component.html.erb
index b03e90698f3..76491a257db 100644
--- a/app/components/settings/text_setting_component.html.erb
+++ b/app/components/settings/text_setting_component.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%# Empty label for styling only %>
- <%= styled_label_tag "lang", '' %>
+ <%= styled_label_tag "lang", "" %>
<div class="form--field-container">
<%=
styled_select_tag(
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
options_for_select(helpers.lang_options_for_select(false), current_language.to_s),
id: "lang-for-#{name}",
class: "lang-select-switch",
- container_class: '-slim'
+ container_class: "-slim"
)
%>
</div>
@@ -65,10 +65,10 @@ See COPYRIGHT and LICENSE files for more details.
disabled: !Setting.send(:"#{name}_writable?"),
label: false,
id: "settings-#{name}",
- class: 'wiki-edit',
+ class: "wiki-edit",
with_text_formatting: true,
rows: 5,
- container_class: '-xxwide'
+ container_class: "-xxwide"
)
%>
</div>
diff --git a/app/components/shares/bulk_permission_button_component.html.erb b/app/components/shares/bulk_permission_button_component.html.erb
index 32acee800a7..5c2dc77945e 100644
--- a/app/components/shares/bulk_permission_button_component.html.erb
+++ b/app/components/shares/bulk_permission_button_component.html.erb
@@ -3,10 +3,10 @@
dynamic_label: true,
anchor_align: :end,
color: :subtle,
- data: { test_selector: 'op-share-dialog-bulk-update-role'})) do |menu|
- menu.with_show_button(scheme: :invisible, color: :subtle, data: { 'shares--bulk-selection-target': 'bulkUpdateRoleLabel' }) do |button|
+ data: { test_selector: "op-share-dialog-bulk-update-role"})) do |menu|
+ menu.with_show_button(scheme: :invisible, color: :subtle, data: { 'shares--bulk-selection-target': "bulkUpdateRoleLabel" }) do |button|
button.with_trailing_action_icon(icon: "triangle-down")
- 'Placeholder'
+ "Placeholder"
end
@available_roles.each do |role_hash|
@@ -16,9 +16,9 @@
active: false,
form_arguments: {
method: :patch,
- name: 'role_ids[]',
+ name: "role_ids[]",
value: role_hash[:value],
- data: { 'shares--bulk-selection-target': 'bulkForm bulkUpdateRoleForm',
+ data: { 'shares--bulk-selection-target': "bulkForm bulkUpdateRoleForm",
'role-name': role_hash[:label],
'test-selector': "op-share-dialog-bulk-update-role-permission-#{role_hash[:label]}" }
}) do |item|
diff --git a/app/components/shares/bulk_selection_counter_component.html.erb b/app/components/shares/bulk_selection_counter_component.html.erb
index 9c45cb13e06..37e7bdfdf4c 100644
--- a/app/components/shares/bulk_selection_counter_component.html.erb
+++ b/app/components/shares/bulk_selection_counter_component.html.erb
@@ -1,21 +1,21 @@
<%
concat(
- render(Primer::Alpha::CheckBox.new(name: 'toggle_all',
+ render(Primer::Alpha::CheckBox.new(name: "toggle_all",
value: nil,
- label: I18n.t('sharing.label_toggle_all'),
+ label: I18n.t("sharing.label_toggle_all"),
visually_hide_label: true,
- data: { 'shares--bulk-selection-target': 'toggleAll',
- action: 'shares--bulk-selection#toggle' }))
+ data: { 'shares--bulk-selection-target': "toggleAll",
+ action: "shares--bulk-selection#toggle" }))
)
concat(
- render(Primer::Beta::Text.new(ml: 2, data: { 'shares--bulk-selection-target': 'sharedCounter' })) do
- I18n.t('sharing.count', count:)
+ render(Primer::Beta::Text.new(ml: 2, data: { 'shares--bulk-selection-target': "sharedCounter" })) do
+ I18n.t("sharing.count", count:)
end
)
# Text contents managed by Stimulus controller
concat(
- render(Primer::Beta::Text.new(ml: 2, data: { 'shares--bulk-selection-target': 'selectedCounter' }))
+ render(Primer::Beta::Text.new(ml: 2, data: { 'shares--bulk-selection-target': "selectedCounter" }))
)
%>
diff --git a/app/components/shares/counter_component.html.erb b/app/components/shares/counter_component.html.erb
index 2e58b8d310d..8b235ba950a 100644
--- a/app/components/shares/counter_component.html.erb
+++ b/app/components/shares/counter_component.html.erb
@@ -1,5 +1,5 @@
<%=
- component_wrapper(data: { test_selector: 'op-share-dialog-active-count'}) do
+ component_wrapper(data: { test_selector: "op-share-dialog-active-count"}) do
render(Primer::Box.new(display: :flex, aligns_items: :center)) do
# There's no point in rendering the BulkSelectionCounterComponent even if
# I'm able to manage shares if the only user that the work package is
diff --git a/app/components/shares/modal_body_component.html.erb b/app/components/shares/modal_body_component.html.erb
index 86aa24b5490..3bc42afca95 100644
--- a/app/components/shares/modal_body_component.html.erb
+++ b/app/components/shares/modal_body_component.html.erb
@@ -1,5 +1,5 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
+ component_wrapper(tag: "turbo-frame") do
flex_layout(data: { turbo: true }, classes: "op-share-dialog-modal-body--row-container") do |modal_content|
if strategy.custom_body_components?
strategy.additional_body_components.each do |component|
diff --git a/app/components/shares/permission_button_component.html.erb b/app/components/shares/permission_button_component.html.erb
index dcbae570f5f..60cc88a5626 100644
--- a/app/components/shares/permission_button_component.html.erb
+++ b/app/components/shares/permission_button_component.html.erb
@@ -6,7 +6,7 @@
dynamic_label: true,
anchor_align: :end,
color: :subtle }.deep_merge(@system_arguments))) do |menu|
- menu.with_show_button(disabled: !editable?, data: { 'shares--bulk-selection-target': 'userRowRole',
+ menu.with_show_button(disabled: !editable?, data: { 'shares--bulk-selection-target': "userRowRole",
'share-id': share.id,
'active-role-name': permission_name(active_role.id)}) do |button|
button.with_trailing_action_icon(icon: :"triangle-down")
diff --git a/app/components/shares/project_queries/project_access_warning_component.html.erb b/app/components/shares/project_queries/project_access_warning_component.html.erb
index 21fef5f42ab..fd7cff24685 100644
--- a/app/components/shares/project_queries/project_access_warning_component.html.erb
+++ b/app/components/shares/project_queries/project_access_warning_component.html.erb
@@ -1,3 +1,3 @@
<%- if query_is_public? || query_is_shared? %>
- <%= container.with_row { render(Primer::Alpha::Banner.new(icon: :info)) { I18n.t('sharing.project_queries.access_warning') } } %>
+ <%= container.with_row { render(Primer::Alpha::Banner.new(icon: :info)) { I18n.t("sharing.project_queries.access_warning") } } %>
<%- end %>
diff --git a/app/components/shares/project_queries/upsale_component.html.erb b/app/components/shares/project_queries/upsale_component.html.erb
index 946bbda996a..e2f3d80819c 100644
--- a/app/components/shares/project_queries/upsale_component.html.erb
+++ b/app/components/shares/project_queries/upsale_component.html.erb
@@ -1,8 +1,8 @@
<%=
- modal_content.with_row(data: { 'test-selector': 'op-share-dialog-upsale-block' }) do
+ modal_content.with_row(data: { 'test-selector': "op-share-dialog-upsale-block" }) do
render Primer::OpenProject::FeedbackMessage.new(icon_arguments: { icon: :"op-enterprise-addons", classes: "upsale-colored" }, border: true) do |component|
- component.with_heading(tag: :h2, classes: 'upsale-colored').with_content(I18n.t(:"ee.upsale.title"))
- component.with_description { I18n.t('sharing.project_queries.upsale.message') }
+ component.with_heading(tag: :h2, classes: "upsale-colored").with_content(I18n.t(:"ee.upsale.title"))
+ component.with_description { I18n.t("sharing.project_queries.upsale.message") }
href = "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=project-list-sharing-modal"
component.with_secondary_action(href:) do |link|
diff --git a/app/components/shares/share_counter_component.html.erb b/app/components/shares/share_counter_component.html.erb
index 04f3ac8250c..b5fe6a49717 100644
--- a/app/components/shares/share_counter_component.html.erb
+++ b/app/components/shares/share_counter_component.html.erb
@@ -1,3 +1,3 @@
<%
- concat(render(Primer::Beta::Text.new) { I18n.t('sharing.count', count:) })
+ concat(render(Primer::Beta::Text.new) { I18n.t("sharing.count", count:) })
%>
diff --git a/app/components/shares/share_dialog_component.html.erb b/app/components/shares/share_dialog_component.html.erb
index d976bc8ac7e..f5302f351fc 100644
--- a/app/components/shares/share_dialog_component.html.erb
+++ b/app/components/shares/share_dialog_component.html.erb
@@ -1,5 +1,5 @@
<%=
- render(Primer::Alpha::Dialog.new(title: strategy.title, id: 'sharing-modal', data: { 'keep-open-on-submit': true }, size: :xlarge, open: open)) do |d|
+ render(Primer::Alpha::Dialog.new(title: strategy.title, id: "sharing-modal", data: { 'keep-open-on-submit': true }, size: :xlarge, open: open)) do |d|
d.with_header(variant: :large)
d.with_body do
render(strategy.modal_body_component(errors))
diff --git a/app/components/shares/work_packages/modal_upsale_component.html.erb b/app/components/shares/work_packages/modal_upsale_component.html.erb
index 036bc35a673..33bc64480a8 100644
--- a/app/components/shares/work_packages/modal_upsale_component.html.erb
+++ b/app/components/shares/work_packages/modal_upsale_component.html.erb
@@ -1,8 +1,8 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
+ component_wrapper(tag: "turbo-frame") do
render Primer::OpenProject::FeedbackMessage.new(icon_arguments: { icon: :"op-enterprise-addons", classes: "upsale-colored" }, border: true) do |component|
- component.with_heading(tag: :h2, classes: 'upsale-colored').with_content(I18n.t(:"ee.upsale.title"))
- component.with_description { I18n.t('mail.sharing.work_packages.enterprise_text') }
+ component.with_heading(tag: :h2, classes: "upsale-colored").with_content(I18n.t(:"ee.upsale.title"))
+ component.with_description { I18n.t("mail.sharing.work_packages.enterprise_text") }
href = "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=work-package-sharing-modal"
component.with_secondary_action(href:) do |link|
diff --git a/app/components/users/edit_page_header_component.html.erb b/app/components/users/edit_page_header_component.html.erb
index 13a172ea7e2..3551bd5ecd9 100644
--- a/app/components/users/edit_page_header_component.html.erb
+++ b/app/components/users/edit_page_header_component.html.erb
@@ -64,7 +64,7 @@ See COPYRIGHT and LICENSE files for more details.
mobile_label: title,
size: :medium,
name: name,
- href: change_status_user_path(@user, { name => '' }),
+ href: change_status_user_path(@user, { name => "" }),
data: { method: :post },
aria: { label: title },
title: title) do |button|
diff --git a/app/components/users/hover_card_component.html.erb b/app/components/users/hover_card_component.html.erb
index 7af47f81965..b143e607afd 100644
--- a/app/components/users/hover_card_component.html.erb
+++ b/app/components/users/hover_card_component.html.erb
@@ -29,24 +29,24 @@ See COPYRIGHT and LICENSE files for more details.
<%=
if @user.present?
- flex_layout(classes: 'op-user-hover-card', data: { test_selector: "user-hover-card-#{@user.id}" }) do |flex|
+ flex_layout(classes: "op-user-hover-card", data: { test_selector: "user-hover-card-#{@user.id}" }) do |flex|
flex.with_row do
render(Users::AvatarComponent.new(user: @user, show_name: false, link: false, hover_card: { active: false }))
end
flex.with_row do
- flex_layout(classes: 'op-user-hover-card--info') do |f|
- f.with_column(classes: 'op-user-hover-card--name') do
- render(Primer::Beta::Text.new(font_weight: :semibold, data: { test_selector: 'user-hover-card-name' })) do
+ flex_layout(classes: "op-user-hover-card--info") do |f|
+ f.with_column(classes: "op-user-hover-card--name") do
+ render(Primer::Beta::Text.new(font_weight: :semibold, data: { test_selector: "user-hover-card-name" })) do
@user.name
end
end
if show_email?
- f.with_column(classes: 'op-user-hover-card--email') do
+ f.with_column(classes: "op-user-hover-card--email") do
render(Primer::Beta::Text.new(font_size: :small,
color: :muted,
- data: { test_selector: 'user-hover-card-email' })) do
+ data: { test_selector: "user-hover-card-email" })) do
@user.mail
end
end
@@ -55,13 +55,13 @@ See COPYRIGHT and LICENSE files for more details.
end
flex.with_row do
- flex_layout(classes: 'op-user-hover-card--group-list') do |f|
+ flex_layout(classes: "op-user-hover-card--group-list") do |f|
f.with_column do
render(Primer::Beta::Octicon.new(icon: :people))
end
f.with_column do
- render(Primer::Beta::Text.new(color: :muted, data: { test_selector: 'user-hover-card-groups' })) do
+ render(Primer::Beta::Text.new(color: :muted, data: { test_selector: "user-hover-card-groups" })) do
group_membership_summary
end
end
@@ -71,7 +71,7 @@ See COPYRIGHT and LICENSE files for more details.
flex.with_row do
render(Primer::Beta::Button.new(tag: :a,
href: helpers.allowed_management_user_profile_path(@user),
- data: { test_selector: 'user-hover-card-profile-btn' })) do
+ data: { test_selector: "user-hover-card-profile-btn" })) do
I18n.t("users.open_profile")
end
end
diff --git a/app/components/users/index_sub_header_component.html.erb b/app/components/users/index_sub_header_component.html.erb
index 017de6e8cbb..55bbe495833 100644
--- a/app/components/users/index_sub_header_component.html.erb
+++ b/app/components/users/index_sub_header_component.html.erb
@@ -6,7 +6,7 @@
tag: :a,
href: new_user_path) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.user')
+ t("activerecord.models.user")
end
subheader.with_bottom_pane_component do
diff --git a/app/components/users/profile/activities_component.html.erb b/app/components/users/profile/activities_component.html.erb
index 446e7a7c0c5..17778d24609 100644
--- a/app/components/users/profile/activities_component.html.erb
+++ b/app/components/users/profile/activities_component.html.erb
@@ -1,13 +1,13 @@
<% unless @events.empty? %>
<h3>
- <%= link_to t(:label_activity), controller: '/activities', action: 'index', id: nil, user_id: @user, from: @events.first.event_datetime %>
+ <%= link_to t(:label_activity), controller: "/activities", action: "index", id: nil, user_id: @user, from: @events.first.event_datetime %>
</h3>
<p>
<%= t(:label_reported_work_packages) %>: <%= @user.reported_work_package_count %>
</p>
- <%= render(Activities::DaysComponent.new(events: @events, display_user: false, header_tag: 'h4', activity_page: @activity_page)) %>
+ <%= render(Activities::DaysComponent.new(events: @events, display_user: false, header_tag: "h4", activity_page: @activity_page)) %>
<%= helpers.other_formats_links do |f| %>
- <%= f.link_to 'Atom', url: { controller: '/activities', action: 'index', id: nil, user_id: @user, key: User.current.rss_key } %>
+ <%= f.link_to "Atom", url: { controller: "/activities", action: "index", id: nil, user_id: @user, key: User.current.rss_key } %>
<% end %>
<% end %>
diff --git a/app/components/users/profile/attributes_component.html.erb b/app/components/users/profile/attributes_component.html.erb
index b6924ec8875..2b96040f1a6 100644
--- a/app/components/users/profile/attributes_component.html.erb
+++ b/app/components/users/profile/attributes_component.html.erb
@@ -10,7 +10,7 @@
end
details_container.with_row do
- mail_to(escape_javascript(@user.mail), nil, encode: 'javascript')
+ mail_to(escape_javascript(@user.mail), nil, encode: "javascript")
end
end
diff --git a/app/components/users/profile/projects_component.html.erb b/app/components/users/profile/projects_component.html.erb
index 5794a8fa877..117bc4374b2 100644
--- a/app/components/users/profile/projects_component.html.erb
+++ b/app/components/users/profile/projects_component.html.erb
@@ -17,7 +17,7 @@
list.with_element do
concat helpers.link_to_project(membership.project)
- roles = membership.roles.sort.collect(&:to_s).join(', ')
+ roles = membership.roles.sort.collect(&:to_s).join(", ")
concat render(Primer::Beta::Text.new(ml: 1, color: :subtle, font_size: :small)) { "(#{roles})" }
end
end
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 78c299aed6c..f3fac663d74 100644
--- a/app/components/work_packages/exports/column_selection_component.html.erb
+++ b/app/components/work_packages/exports/column_selection_component.html.erb
@@ -1,7 +1,7 @@
<%= helpers.angular_component_tag "opce-draggable-autocompleter",
inputs: {
id:,
- name: 'columns',
+ name: "columns",
dragAreaName: "#{id}_dragarea",
formControlId: "#{id}_autocompleter",
appendToComponent: true,
diff --git a/app/components/work_packages/exports/modal_dialog_component.html.erb b/app/components/work_packages/exports/modal_dialog_component.html.erb
index ed2ca1c1cf7..e4469f69b9d 100644
--- a/app/components/work_packages/exports/modal_dialog_component.html.erb
+++ b/app/components/work_packages/exports/modal_dialog_component.html.erb
@@ -1,5 +1,5 @@
<%= render(Primer::Alpha::Dialog.new(
- title: I18n.t('export.dialog.title'),
+ title: I18n.t("export.dialog.title"),
size: :xlarge,
id: MODAL_ID,
data: {
@@ -11,8 +11,8 @@
<% dialog.with_body do %>
<% flex_layout do |modal_body| %>
<% modal_body.with_row do |_format| %>
- <%= render(Primer::Beta::Text.new(tag: "legend", font_size: :normal, mb: 2, font_weight: :bold)) { I18n.t('export.dialog.format.label') } %>
- <%= render(Primer::Alpha::SegmentedControl.new(ml: 0, "aria-label": I18n.t('export.dialog.format.label'), size: :medium)) do |component|
+ <%= render(Primer::Beta::Text.new(tag: "legend", font_size: :normal, mb: 2, font_weight: :bold)) { I18n.t("export.dialog.format.label") } %>
+ <%= render(Primer::Alpha::SegmentedControl.new(ml: 0, "aria-label": I18n.t("export.dialog.format.label"), size: :medium)) do |component|
export_formats_settings.each do |format|
component.with_item(
label: format[:label], icon: format[:icon], selected: format[:selected],
@@ -36,7 +36,7 @@
"application-target": "dynamic",
action: "submit->work-packages--export--form#submitForm",
controller: "work-packages--export--form",
- "work-packages--export--form-job-status-dialog-url-value": job_status_dialog_path('_job_uuid_')
+ "work-packages--export--form-job-status-dialog-url-value": job_status_dialog_path("_job_uuid_")
}
) do |form| %>
<input type="hidden" name="query" value="<%= query_params %>">
@@ -54,6 +54,6 @@
"work-packages--export--dialog-target": "submit"
},
scheme: :primary, type: :submit,
- form: "#{EXPORT_FORM_ID}-#{export_formats_settings.find { |e| e[:selected] }[:id]}")) { I18n.t('export.dialog.submit') } %>
+ form: "#{EXPORT_FORM_ID}-#{export_formats_settings.find { |e| e[:selected] }[:id]}")) { I18n.t("export.dialog.submit") } %>
<% end %>
<% end %>
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 c1b343fdfaf..694ac5c7cee 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
@@ -12,7 +12,7 @@
<%= helpers.angular_component_tag "opce-draggable-autocompleter",
inputs: {
id: "ltf-select-export-pdf-report",
- name: 'long_text_fields',
+ name: "long_text_fields",
dragAreaName: "ltf-select-export-pdf-report_dragarea",
formControlId: "ltf-select-export-pdf-report_autocompleter",
appendToComponent: true,
@@ -27,7 +27,7 @@
<% end %>
<%= container.with_row do |_pdf_report_images| %>
<%= render OpenProject::Common::DividerComponent.new %>
- <%= render(Primer::Alpha::CheckBox.new(name: 'show_images',
+ <%= render(Primer::Alpha::CheckBox.new(name: "show_images",
checked: true,
value: "true",
unchecked_value: "false",
diff --git a/app/components/work_packages/hover_card_component.html.erb b/app/components/work_packages/hover_card_component.html.erb
index 5b3d8c25557..096bd5b7a57 100644
--- a/app/components/work_packages/hover_card_component.html.erb
+++ b/app/components/work_packages/hover_card_component.html.erb
@@ -1,6 +1,6 @@
<%=
if @work_package.present?
- grid_layout('op-wp-hover-card', tag: :div) do |grid|
+ grid_layout("op-wp-hover-card", tag: :div) do |grid|
grid.with_area(:info, tag: :div) do
render(WorkPackages::InfoLineComponent.new(work_package: @work_package))
end
diff --git a/app/views/account/_auth_providers.html.erb b/app/views/account/_auth_providers.html.erb
index 63e8821b3ff..056390f26cc 100644
--- a/app/views/account/_auth_providers.html.erb
+++ b/app/views/account/_auth_providers.html.erb
@@ -37,15 +37,15 @@ See COPYRIGHT and LICENSE files for more details.
# * http://stackoverflow.com/questions/13112430/find-loaded-providers-for-omniauth
auth_provider_html = call_hook :view_account_login_auth_provider
no_pwd = OpenProject::Configuration.disable_password_login?
-pclass = no_pwd ? 'no-pwd' : ''
-wclass = local_assigns[:wide] ? 'wide' : ''
+pclass = no_pwd ? "no-pwd" : ""
+wclass = local_assigns[:wide] ? "wide" : ""
%>
<% if auth_provider_html.strip != '' %>
<div class="login-auth-providers <%= pclass %> <%= wclass %>">
<% unless no_pwd %>
<h3 class="login-auth-providers-title mb-3">
<span>
- <%= local_assigns[:omniauth_title] || I18n.t('account.login_with_auth_provider') %>
+ <%= local_assigns[:omniauth_title] || I18n.t("account.login_with_auth_provider") %>
</span>
</h3>
<% end %>
diff --git a/app/views/account/_footer.html.erb b/app/views/account/_footer.html.erb
index 5e958144344..6acfebaf303 100644
--- a/app/views/account/_footer.html.erb
+++ b/app/views/account/_footer.html.erb
@@ -3,6 +3,6 @@
<% if footer = registration_footer %>
<span><%= footer %></span>
<% end %>
- <%= styled_button_tag t(:button_create), class: 'button_no-margin -primary -with-icon icon-checkmark spot-action-bar--action' %>
+ <%= styled_button_tag t(:button_create), class: "button_no-margin -primary -with-icon icon-checkmark spot-action-bar--action" %>
</div>
</div>
diff --git a/app/views/account/_login.html.erb b/app/views/account/_login.html.erb
index dd4a616ebad..42b76029495 100644
--- a/app/views/account/_login.html.erb
+++ b/app/views/account/_login.html.erb
@@ -28,21 +28,21 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div id="nav-login-content">
- <%= styled_form_tag({controller: '/account', action: "login"},
- autocomplete: 'off', class: '-vertical') do %>
+ <%= styled_form_tag({controller: "/account", action: "login"},
+ autocomplete: "off", class: "-vertical") do %>
<%= back_url_to_current_page_hidden_field_tag %>
<div class="grid-block">
<div class="form--field -required">
- <%= styled_label_tag 'username-pulldown', User.human_attribute_name(:login) %>
+ <%= styled_label_tag "username-pulldown", User.human_attribute_name(:login) %>
<div class="form--field-container">
- <%= styled_text_field_tag 'username', nil, id: 'username-pulldown', tabindex: 1, autocapitalize: 'none' %>
+ <%= styled_text_field_tag "username", nil, id: "username-pulldown", tabindex: 1, autocapitalize: "none" %>
</div>
<div class="form--field-extra-actions">
<% if Setting::Autologin.enabled? %>
<label class="form--label-with-check-box -no-ellipsis">
- <%= styled_check_box_tag 'autologin', 1, false, id: 'autologin-pulldown' %>
- <%= t('users.autologins.prompt', num_days: I18n.t('datetime.distance_in_words.x_days', count: Setting.autologin)) %>
+ <%= styled_check_box_tag "autologin", 1, false, id: "autologin-pulldown" %>
+ <%= t("users.autologins.prompt", num_days: I18n.t("datetime.distance_in_words.x_days", count: Setting.autologin)) %>
</label>
<% elsif Setting::SelfRegistration.enabled? %>
<%# show here if autologin is disabled, otherwise below lost_password link %>
@@ -54,17 +54,17 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="form--field -required">
- <%= styled_label_tag 'password-pulldown', User.human_attribute_name(:password) %>
+ <%= styled_label_tag "password-pulldown", User.human_attribute_name(:password) %>
<div class="form--field-container">
- <%= styled_password_field_tag 'password', nil, id: 'password-pulldown', tabindex: 1 %>
+ <%= styled_password_field_tag "password", nil, id: "password-pulldown", tabindex: 1 %>
</div>
<div class="form--field-extra-actions">
<% if Setting.lost_password? %>
- <%= link_to t(:label_password_lost), {controller: '/account', action: 'lost_password'} %>
+ <%= link_to t(:label_password_lost), {controller: "/account", action: "lost_password"} %>
<% end %>
<% if Setting::Autologin.enabled? && Setting::SelfRegistration.enabled? %>
<%# show here if autologin is enabled, otherwise below login field %>
- <%= '<br>'.html_safe if Setting.lost_password? %>
+ <%= "<br>".html_safe if Setting.lost_password? %>
<%= link_to t(:label_register),
account_register_path,
title: t(:label_register) %>
@@ -81,6 +81,6 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
- <%= render partial: 'account/auth_providers' %>
+ <%= render partial: "account/auth_providers" %>
<% end %>
</div>
diff --git a/app/views/account/_omniauth_login.html.erb b/app/views/account/_omniauth_login.html.erb
index 8e15ba11647..69cdef53a79 100644
--- a/app/views/account/_omniauth_login.html.erb
+++ b/app/views/account/_omniauth_login.html.erb
@@ -28,5 +28,5 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div id="nav-login-content">
- <%= render partial: 'account/auth_providers' %>
+ <%= render partial: "account/auth_providers" %>
</div>
diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erb
index 7ae03893f00..7c9e540acf7 100644
--- a/app/views/account/_password_login_form.html.erb
+++ b/app/views/account/_password_login_form.html.erb
@@ -29,23 +29,23 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(
{action: "login"},
- autocomplete: 'off',
- class: '-wide-labels user-login--form',
+ autocomplete: "off",
+ class: "-wide-labels user-login--form",
data: { turbo: false } # allow redirects without turbo
) do %>
<%= back_url_hidden_field_tag %>
<div class="form--field -required">
- <%= styled_label_tag 'username', User.human_attribute_name(:login) %>
+ <%= styled_label_tag "username", User.human_attribute_name(:login) %>
<div class="form--field-container">
- <%= styled_text_field_tag 'username', params[:username], autofocus: params[:username].blank?, autocapitalize: 'none' %>
+ <%= styled_text_field_tag "username", params[:username], autofocus: params[:username].blank?, autocapitalize: "none" %>
</div>
</div>
<div class="form--field -required">
- <%= styled_label_tag 'password', User.human_attribute_name(:password) %>
+ <%= styled_label_tag "password", User.human_attribute_name(:password) %>
<div class="form--field-container">
- <%= styled_password_field_tag 'password', nil, autofocus: !params[:username].blank? %>
+ <%= styled_password_field_tag "password", nil, autofocus: !params[:username].blank? %>
</div>
</div>
@@ -53,8 +53,8 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -no-label">
<div class="form--field-container">
<label class="form--label-with-check-box">
- <%= styled_check_box_tag 'autologin', 1, false %>
- <%= t('users.autologins.prompt', num_days: I18n.t('datetime.distance_in_words.x_days', count: Setting.autologin)) %>
+ <%= styled_check_box_tag "autologin", 1, false %>
+ <%= t("users.autologins.prompt", num_days: I18n.t("datetime.distance_in_words.x_days", count: Setting.autologin)) %>
</label>
</div>
</div>
@@ -63,22 +63,22 @@ See COPYRIGHT and LICENSE files for more details.
<div class="login-form--footer">
<%= submit_tag t(:button_login),
name: :login,
- class: 'button -primary button_no-margin',
+ class: "button -primary button_no-margin",
data: { disable_with: t(:label_loading) } %>
<div class="login-options-container">
<div class="login-links">
<% if Setting.lost_password? %>
<%= link_to t(:label_password_lost),
- { controller: '/account', action: 'lost_password' },
- class: 'login-form--footer-link' %>
+ { controller: "/account", action: "lost_password" },
+ class: "login-form--footer-link" %>
<br>
<% end %>
<% if Setting::SelfRegistration.enabled? %>
<%= link_to t(:label_register),
- '',
+ "",
title: t(:label_register),
- class: 'login-form--footer-link registration-modal--activation-link' %>
+ class: "login-form--footer-link registration-modal--activation-link" %>
<% end %>
</div>
</div>
@@ -89,5 +89,5 @@ See COPYRIGHT and LICENSE files for more details.
data-activation-selector=".registration-modal--activation-link"
data-modal-class-name="registration-modal -primary">
<% @user ||= User.new %>
- <%= render partial: '/account/register' %>
+ <%= render partial: "/account/register" %>
</section>
diff --git a/app/views/account/_register.html.erb b/app/views/account/_register.html.erb
index 6afa16518a8..e3826390099 100644
--- a/app/views/account/_register.html.erb
+++ b/app/views/account/_register.html.erb
@@ -31,11 +31,11 @@ See COPYRIGHT and LICENSE files for more details.
@user,
url: account_register_path,
data: { turbo: false },
- html: { class: 'form -wide-labels spot-modal' }) do |f| %>
+ html: { class: "form -wide-labels spot-modal" }) do |f| %>
<%= back_url_hidden_field_tag use_referer: false %>
<%= error_messages_for :user %>
<div id="spotModalTitle" class="spot-modal--header">
- <%= I18n.t('onboarding.welcome', app_title: Setting.app_title) %>
+ <%= I18n.t("onboarding.welcome", app_title: Setting.app_title) %>
</div>
<div class="spot-divider"></div>
<div class="spot-modal--body spot-container">
@@ -71,7 +71,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.password_field :password,
required: true,
size: 25,
- autocomplete: 'off' %>
+ autocomplete: "off" %>
<div class="form--field-instructions">
<%= password_complexity_requirements %>
</div>
@@ -80,16 +80,16 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.password_field :password_confirmation,
required: true,
size: 25,
- autocomplete: 'off' %>
+ autocomplete: "off" %>
</div>
<% end %>
</section>
<% if user_consent_required? %>
<hr>
- <%= render partial: 'account/user_consent_check' %>
+ <%= render partial: "account/user_consent_check" %>
<% end %>
- <%= render partial: 'account/auth_providers', locals: { omniauth_title: I18n.t('account.signup_with_auth_provider'), wide: true } %>
+ <%= render partial: "account/auth_providers", locals: { omniauth_title: I18n.t("account.signup_with_auth_provider"), wide: true } %>
</div>
- <%= render partial: 'account/footer' %>
+ <%= render partial: "account/footer" %>
<% end %>
</div>
diff --git a/app/views/account/_user_consent_check.html.erb b/app/views/account/_user_consent_check.html.erb
index 450055136ac..782a9fc5340 100644
--- a/app/views/account/_user_consent_check.html.erb
+++ b/app/views/account/_user_consent_check.html.erb
@@ -1,6 +1,6 @@
<section class="form--section op-user-consent-form">
<p>
- <%= format_text(user_consent_instructions(::I18n.locale), { target: '_blank' }) %>
+ <%= format_text(user_consent_instructions(::I18n.locale), { target: "_blank" }) %>
</p>
<label class="form--label-with-check-box -required -no-ellipsis op-user-consent-form--agreement">
diff --git a/app/views/account/consent.html.erb b/app/views/account/consent.html.erb
index 384c4dd3b7a..2274f155910 100644
--- a/app/views/account/consent.html.erb
+++ b/app/views/account/consent.html.erb
@@ -27,18 +27,18 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% breadcrumb_paths(t('consent.title')) %>
-<% html_title t('consent.title') %>
+<% breadcrumb_paths(t("consent.title")) %>
+<% html_title t("consent.title") %>
<%= call_hook :view_account_consent_top %>
<div id="login-form" class="account-consent form -bordered">
<%= form_tag(account_confirm_consent_path, method: :post, class: "form -wide-labels") do %>
- <%= render partial: 'user_consent_check' %>
+ <%= render partial: "user_consent_check" %>
<section class="form--section">
<button type="submit" class="button -primary">
<span class="button--text"><%= t(:button_continue) %></span>
</button>
- <%= link_to t(:button_decline), account_decline_consent_path, class: 'button' %>
+ <%= link_to t(:button_decline), account_decline_consent_path, class: "button" %>
</section>
<% end %>
</div>
diff --git a/app/views/account/exit.html.erb b/app/views/account/exit.html.erb
index 8b549578e1e..f1294ab3c94 100644
--- a/app/views/account/exit.html.erb
+++ b/app/views/account/exit.html.erb
@@ -28,14 +28,14 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% # LOCALS
- fail ArgumentError, 'missing instructions' unless defined? instructions %>
+ fail ArgumentError, "missing instructions" unless defined? instructions %>
<% html_title t(:label_login) %>
<% breadcrumb_paths(t(:label_login)) %>
<%= call_hook :view_account_login_top %>
<%
- signin_link = link_to I18n.t('label_here'), signin_path
+ signin_link = link_to I18n.t("label_here"), signin_path
instruction_text = I18n.t "instructions_#{instructions}", signin: signin_link
%>
diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb
index 86908cfc358..a2486611d22 100644
--- a/app/views/account/login.html.erb
+++ b/app/views/account/login.html.erb
@@ -35,8 +35,8 @@ See COPYRIGHT and LICENSE files for more details.
<hr class="form--separator">
<% unless OpenProject::Configuration.disable_password_login? %>
- <%= render partial: 'password_login_form' %>
+ <%= render partial: "password_login_form" %>
<% end %>
- <%= render partial: 'auth_providers' %>
+ <%= render partial: "auth_providers" %>
</div>
<%= call_hook :view_account_login_bottom %>
diff --git a/app/views/account/lost_password.html.erb b/app/views/account/lost_password.html.erb
index 1a5fced1d7c..cbc5b4987ce 100644
--- a/app/views/account/lost_password.html.erb
+++ b/app/views/account/lost_password.html.erb
@@ -39,11 +39,11 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<%= styled_form_tag({action: "lost_password"}) do %>
<div class="form--field -required">
- <%= styled_label_tag 'mail', User.human_attribute_name(:mail) %>
+ <%= styled_label_tag "mail", User.human_attribute_name(:mail) %>
<span class="form--field-container">
- <%= styled_text_field_tag 'mail', nil, size: 40, container_class: '-middle' %>
+ <%= styled_text_field_tag "mail", nil, size: 40, container_class: "-middle" %>
</span>
</div>
- <%= styled_button_tag t(:button_submit), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_submit), class: "-primary -with-icon icon-checkmark" %>
<% end %>
</section>
diff --git a/app/views/account/password_recovery.html.erb b/app/views/account/password_recovery.html.erb
index 3e33e162f62..04c37f30e8b 100644
--- a/app/views/account/password_recovery.html.erb
+++ b/app/views/account/password_recovery.html.erb
@@ -36,25 +36,25 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= error_messages_for 'user' %>
-<%= styled_form_tag({token: @token.value}, autocomplete: 'off') do %>
+<%= error_messages_for "user" %>
+<%= styled_form_tag({token: @token.value}, autocomplete: "off") do %>
<section class="form--section">
<div class="form--field -required">
- <%= styled_label_tag 'new_password', User.human_attribute_name(:new_password) %>
+ <%= styled_label_tag "new_password", User.human_attribute_name(:new_password) %>
<div class="form--field-container">
- <%= styled_password_field_tag 'new_password', nil, size: 25, container_class: '-middle' %>
+ <%= styled_password_field_tag "new_password", nil, size: 25, container_class: "-middle" %>
</div>
<div class="form--field-instructions">
<%= password_complexity_requirements %>
</div>
</div>
<div class="form--field -required">
- <%= styled_label_tag 'new_password_confirmation',
+ <%= styled_label_tag "new_password_confirmation",
User.human_attribute_name(:password_confirmation) %>
<div class="form--field-container">
- <%= styled_password_field_tag 'new_password_confirmation', nil, size: 25, container_class: '-middle' %>
+ <%= styled_password_field_tag "new_password_confirmation", nil, size: 25, container_class: "-middle" %>
</div>
</div>
</section>
- <p><%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %></p>
+ <p><%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %></p>
<% end %>
diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb
index 8fdf8af86f4..b3c29039f33 100644
--- a/app/views/account/register.html.erb
+++ b/app/views/account/register.html.erb
@@ -31,5 +31,5 @@ See COPYRIGHT and LICENSE files for more details.
data-modal-initialize-now="true"
data-modal-class-name="registration-modal -primary">
<% @user ||= User.new %>
- <%= render partial: '/account/register' %>
+ <%= render partial: "/account/register" %>
</section>
diff --git a/app/views/activities/_filters_menu.html.erb b/app/views/activities/_filters_menu.html.erb
index 85a5e7da8eb..c53a6671289 100644
--- a/app/views/activities/_filters_menu.html.erb
+++ b/app/views/activities/_filters_menu.html.erb
@@ -1,5 +1,5 @@
<%= turbo_frame_tag "activity_menu",
- src: url_for(controller: '/activities', action: :menu, project_id: @project),
+ src: url_for(controller: "/activities", action: :menu, project_id: @project),
data: { turbo: false },
loading: :lazy do %>
<% end %>
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb
index 8c6f586cf61..99dee39d04d 100644
--- a/app/views/activities/index.html.erb
+++ b/app/views/activities/index.html.erb
@@ -50,30 +50,30 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to_content_update(t(:label_previous),
{
from: (@date_to - @days - 1),
- with_subprojects: @with_subprojects ? '1' : '0',
+ 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)),
- class: 'navigate-left'}) %>
+ class: "navigate-left"}) %>
</div>
<div style="float:right;">
<%= link_to_content_update(t(:label_next),
{
from: (@date_to + @days - 1),
- with_subprojects: @with_subprojects ? '1' : '0',
+ with_subprojects: @with_subprojects ? "1" : "0",
user_id: params[:user_id]
}.compact,
{title: t(:label_date_from_to, start: format_date(@date_to), end: format_date(@date_to + @days - 1)),
- class: 'navigate-right'}) unless @date_to >= Date.today %>
+ class: "navigate-right"}) unless @date_to >= Date.today %>
</div>
&nbsp;
<%= other_formats_links do |f| %>
- <%= f.link_to 'Atom', url: { from: nil }, key: User.current.rss_key %>
+ <%= f.link_to "Atom", url: { from: nil }, key: User.current.rss_key %>
<% end %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom,
- { format: 'atom', from: nil, key: User.current.rss_key }) %>
+ { format: "atom", from: nil, key: User.current.rss_key }) %>
<% end %>
<% html_title(t(:label_activity), @author) -%>
diff --git a/app/views/admin/attachments/quarantined_attachments/index.html.erb b/app/views/admin/attachments/quarantined_attachments/index.html.erb
index d9108ba5c9c..e9d863c8ce0 100644
--- a/app/views/admin/attachments/quarantined_attachments/index.html.erb
+++ b/app/views/admin/attachments/quarantined_attachments/index.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render(Admin::AttachmentsSettingsHeaderComponent.new(
- title: t('antivirus_scan.quarantined_attachments.title'),
+ title: t("antivirus_scan.quarantined_attachments.title"),
selected: 3,
))
%>
diff --git a/app/views/admin/backups/reset_token.html.erb b/app/views/admin/backups/reset_token.html.erb
index a58a07b1a8a..7dbd9d6ec2f 100644
--- a/app/views/admin/backups/reset_token.html.erb
+++ b/app/views/admin/backups/reset_token.html.erb
@@ -27,20 +27,20 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% action = @backup_token.present? ? 'reset' : 'create' %>
-<% icon = @backup_token.present? ? 'delete' : 'add' %>
+<% action = @backup_token.present? ? "reset" : "create" %>
+<% icon = @backup_token.present? ? "delete" : "add" %>
<% html_title(t(:label_administration), t("backup.reset_token.heading_#{action}")) -%>
<%= password_confirmation_form_for(
@user,
as: :user,
- url: { action: 'perform_token_reset' },
+ url: { action: "perform_token_reset" },
builder: ::TabularFormBuilder,
lang: current_language,
html: {
method: :post,
- class: '-wide-labels confirm_required request-for-confirmation form danger-zone'
+ class: "-wide-labels confirm_required request-for-confirmation form danger-zone"
}
) do |f| %>
<div class='wiki'>
@@ -69,9 +69,9 @@ See COPYRIGHT and LICENSE files for more details.
</p>
<div class="danger-zone--verification">
<input type="text" name="login_verification">
- <%= styled_button_tag '', class: '-primary', disabled: true do
- concat content_tag :i, '', class: "button--icon icon-#{icon}"
- concat content_tag :span, t("backup.reset_token.action_#{action}"), class: 'button--text'
+ <%= styled_button_tag "", class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-#{icon}"
+ concat content_tag :span, t("backup.reset_token.action_#{action}"), class: "button--text"
end %>
</div>
</section>
diff --git a/app/views/admin/backups/show.html.erb b/app/views/admin/backups/show.html.erb
index b1bcd6f8846..db25379fb0b 100644
--- a/app/views/admin/backups/show.html.erb
+++ b/app/views/admin/backups/show.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
<% else %>
<%= token.user.name %>
<% end %>
- <%= token.user == current_user ? "(#{I18n.t(:you)})" : '' %>
+ <%= token.user == current_user ? "(#{I18n.t(:you)})" : "" %>
</li>
<% end %>
</ul>
diff --git a/app/views/admin/custom_fields/custom_field_projects/index.html.erb b/app/views/admin/custom_fields/custom_field_projects/index.html.erb
index ecc153ee115..e0d04b17cd3 100644
--- a/app/views/admin/custom_fields/custom_field_projects/index.html.erb
+++ b/app/views/admin/custom_fields/custom_field_projects/index.html.erb
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
href: new_custom_field_project_path(@custom_field),
data: { controller: "async-dialog" }
)) do |button|
- button.with_leading_visual_icon(icon: 'op-include-projects')
+ button.with_leading_visual_icon(icon: "op-include-projects")
I18n.t(:label_add_projects)
end
end
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb
index 481cf3dcf8c..db253617e2e 100644
--- a/app/views/admin/index.html.erb
+++ b/app/views/admin/index.html.erb
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="menu-blocks--container" data-test-selector="menu-blocks--container">
<% @menu_nodes.each do |menu_node| -%>
- <%= link_to menu_node.url, { class: 'menu-block', 'data-test-selector': 'menu-block' } do %>
+ <%= link_to menu_node.url, { class: "menu-block", 'data-test-selector': "menu-block" } do %>
<%= render(Primer::Beta::Octicon.new(icon: menu_node.icon, height: 32, classes: "menu-block--icon", "aria-label": menu_node.caption)) %>
<span class="menu-block--title"> <%= menu_node.caption %> </span>
<% end %>
diff --git a/app/views/admin/info.html.erb b/app/views/admin/info.html.erb
index bf3c8263159..00043aea9e3 100644
--- a/app/views/admin/info.html.erb
+++ b/app/views/admin/info.html.erb
@@ -53,12 +53,12 @@ See COPYRIGHT and LICENSE files for more details.
if display_security_badge_graphic?
content = content_tag :object, nil, data: security_badge_url, type: "image/svg+xml"
- content += link_to '',
+ content += link_to "",
::OpenProject::Static::Links[:security_badge_documentation][:href],
title: t(:label_what_is_this),
- class: 'security-badge--help-icon icon-context icon-help1',
- target: '_blank'
- component.with_attribute(key: '', value: content)
+ class: "security-badge--help-icon icon-context icon-help1",
+ target: "_blank"
+ component.with_attribute(key: "", value: content)
end
if OpenProject::Database.version_deprecated?
@@ -70,7 +70,7 @@ See COPYRIGHT and LICENSE files for more details.
You can perform the upgrade ahead of the release at any time by following the guides.
</p>
STR
- component.with_attribute(key: 'Deprecation warning', value:)
+ component.with_attribute(key: "Deprecation warning", value:)
end
if (updated_on = OpenProject::VERSION.updated_on).present?
@@ -83,7 +83,7 @@ end %>
@checklist.each do |label, result|
aria_label = result ? t(:general_text_Yes) : t(:general_text_No)
- icon = result ? 'check-circle-fill' : 'circle'
+ icon = result ? "check-circle-fill" : "circle"
value = render Primer::Beta::Octicon.new(icon:, "aria-label": aria_label)
component.with_attribute(key: I18n.t(label), value:)
end
@@ -95,7 +95,7 @@ end %>
component.with_header(title: t(:label_storage_group, identifier: i + 1))
component.with_attribute(key: t(:label_storage_for),
- value: safe_join(entries[:labels], '<br/>'.html_safe))
+ value: safe_join(entries[:labels], "<br/>".html_safe))
component.with_attribute(key: t(:label_storage_free_space),
value: number_to_human_size(entries[:data][:free], precision: 2))
diff --git a/app/views/admin/plugins.html.erb b/app/views/admin/plugins.html.erb
index 434e6506b5c..933ac8647ee 100644
--- a/app/views/admin/plugins.html.erb
+++ b/app/views/admin/plugins.html.erb
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= I18n.t('label_name') %>
+ <%= I18n.t("label_name") %>
</span>
</div>
</div>
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= I18n.t('attributes.author') %>
+ <%= I18n.t("attributes.author") %>
</span>
</div>
</div>
@@ -68,7 +68,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= I18n.t('attributes.version') %>
+ <%= I18n.t("attributes.version") %>
</span>
</div>
</div>
@@ -78,8 +78,8 @@ See COPYRIGHT and LICENSE files for more details.
<% @plugins.each do |plugin| %>
<tr>
<td><span class="name"><%= h plugin.name %></span>
- <%= content_tag('span', plugin.description, class: 'description') if plugin.description.present? %>
- <%= content_tag('span', link_to(plugin.url, plugin.url), class: 'url') if plugin.url.present? %>
+ <%= content_tag("span", plugin.description, class: "description") if plugin.description.present? %>
+ <%= content_tag("span", link_to(plugin.url, plugin.url), class: "url") if plugin.url.present? %>
</td>
<td class="author"><%= plugin.author_url.blank? ? plugin.author : link_to(plugin.author, plugin.author_url) %></td>
<td class="version">
diff --git a/app/views/admin/settings/aggregation_settings/show.html.erb b/app/views/admin/settings/aggregation_settings/show.html.erb
index 4bbb465618e..00ed50be99c 100644
--- a/app/views/admin/settings/aggregation_settings/show.html.erb
+++ b/app/views/admin/settings/aggregation_settings/show.html.erb
@@ -43,16 +43,16 @@ See COPYRIGHT and LICENSE files for more details.
<%= setting_number_field :journal_aggregation_time_minutes,
unit: t(:label_minute_plural),
min: 0,
- container_class: '-xslim' %>
+ container_class: "-xslim" %>
<span class="form--field-instructions">
<%= t(:'admin.journal_aggregation.explanation.text',
webhook_link: link_to(t(:'admin.journal_aggregation.explanation.link'),
admin_outgoing_webhooks_path,
- target: '_blank')).html_safe %>
+ target: "_blank")).html_safe %>
<br>
<%= t(:text_hint_disable_with_0) %>
</span>
</div>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/api_settings/show.html.erb b/app/views/admin/settings/api_settings/show.html.erb
index 264c3b31223..d56ef7021b5 100644
--- a/app/views/admin/settings/api_settings/show.html.erb
+++ b/app/views/admin/settings/api_settings/show.html.erb
@@ -43,13 +43,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= setting_check_box :rest_api_enabled %>
</div>
<div class="form--field">
- <%= setting_number_field :apiv3_max_page_size, min: 50, container_class: '-slim' %>
+ <%= setting_number_field :apiv3_max_page_size, min: 50, container_class: "-slim" %>
<div class="form--field-instructions">
<p><%= t(:setting_apiv3_max_page_instructions_html) %></p>
</div>
</div>
<div class="form--field">
- <%= setting_check_box :apiv3_write_readonly_attributes, container_class: '-slim' %>
+ <%= setting_check_box :apiv3_write_readonly_attributes, container_class: "-slim" %>
<div class="form--field-instructions">
<p><%= t(:setting_apiv3_write_readonly_attributes_instructions_html,
api_documentation_link: static_link_to(:api_docs)
@@ -76,7 +76,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= setting_check_box :apiv3_cors_enabled %>
</div>
<div class="form--field">
- <%= setting_text_area :apiv3_cors_origins, rows: 5, container_class: '-wide' %>
+ <%= setting_text_area :apiv3_cors_origins, rows: 5, container_class: "-wide" %>
<div class="form--field-instructions">
<p><%= t(:text_line_separated) %></p>
<p><%= t(:setting_apiv3_cors_origins_text_html,
@@ -84,5 +84,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/attachments_settings/show.html.erb b/app/views/admin/settings/attachments_settings/show.html.erb
index d7be7a30e7c..6b05bc8f9a7 100644
--- a/app/views/admin/settings/attachments_settings/show.html.erb
+++ b/app/views/admin/settings/attachments_settings/show.html.erb
@@ -40,23 +40,23 @@ See COPYRIGHT and LICENSE files for more details.
) do %>
<section class="form--section">
<div class="form--field">
- <%= setting_check_box :show_work_package_attachments, container_class: '-slim' %>
+ <%= setting_check_box :show_work_package_attachments, container_class: "-slim" %>
<div class="form--field-instructions">
- <%= t('settings.attachments.show_work_package_attachments') %>
+ <%= t("settings.attachments.show_work_package_attachments") %>
</div>
</div>
<div class="form--field">
- <%= setting_text_field :attachment_max_size, size: 6, unit: t(:"number.human.storage_units.units.kb"), container_class: '-slim' %>
+ <%= setting_text_field :attachment_max_size, size: 6, unit: t(:"number.human.storage_units.units.kb"), container_class: "-slim" %>
</div>
<div class="form--field">
- <%= setting_text_area :attachment_whitelist, rows: 5, container_class: '-wide' %>
+ <%= setting_text_area :attachment_whitelist, rows: 5, container_class: "-wide" %>
<div class="form--field-instructions">
- <%= t('settings.attachments.whitelist_text_html',
- ext_example: '*.jpg',
- mime_example: 'image/jpeg',
+ <%= t("settings.attachments.whitelist_text_html",
+ ext_example: "*.jpg",
+ mime_example: "image/jpeg",
) %>
</div>
</div>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/authentication_settings/show.html.erb b/app/views/admin/settings/authentication_settings/show.html.erb
index 01c36fe2dbd..0f2c0726c64 100644
--- a/app/views/admin/settings/authentication_settings/show.html.erb
+++ b/app/views/admin/settings/authentication_settings/show.html.erb
@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
[t(:label_registration_activation_by_email), Setting::SelfRegistration.by_email.to_s],
[t(:label_registration_manual_activation), Setting::SelfRegistration.manual.to_s],
[t(:label_registration_automatic_activation), Setting::SelfRegistration.automatic.to_s]],
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<div class="form--field">
@@ -68,7 +68,7 @@ See COPYRIGHT and LICENSE files for more details.
.map { |p| ["#{p.display_name} (#{p.human_type})", p.slug] } %>
<%= setting_select :omniauth_direct_login_provider,
[[t(:label_disabled), ""]] + providers,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<span class="form--field-instructions">
<%= t("settings.authentication.omniauth_direct_login_hint_html",
internal_path: internal_signin_url) %>
@@ -86,26 +86,26 @@ See COPYRIGHT and LICENSE files for more details.
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= I18n.t(:passwords, scope: [:settings]) %></legend>
<% if !OpenProject::Configuration.disable_password_login? %>
- <div class="form--field -wide-label"><%= setting_text_field :password_min_length, size: 6, container_class: '-xslim' %></div>
+ <div class="form--field -wide-label"><%= setting_text_field :password_min_length, size: 6, container_class: "-xslim" %></div>
<div class="form--field -wide-label">
<% rules = OpenProject::Passwords::Evaluator.known_rules.map do |rule|
[t("label_password_rule_#{rule}"), rule]
end %>
<%= setting_multiselect :password_active_rules, rules %>
</div>
- <div class="form--field -wide-label"><%= setting_text_field :password_min_adhered_rules, size: 6, container_class: '-xslim' %></div>
- <div class="form--field -wide-label"><%= setting_text_field :password_days_valid, size: 6, container_class: '-xslim' %>
+ <div class="form--field -wide-label"><%= setting_text_field :password_min_adhered_rules, size: 6, container_class: "-xslim" %></div>
+ <div class="form--field -wide-label"><%= setting_text_field :password_days_valid, size: 6, container_class: "-xslim" %>
<span class="form--field-instructions">
<%= t(:text_hint_disable_with_0) %>
</span>
</div>
- <div class="form--field -wide-label"><%= setting_text_field :password_count_former_banned, size: 6, container_class: '-xslim' %></div>
+ <div class="form--field -wide-label"><%= setting_text_field :password_count_former_banned, size: 6, container_class: "-xslim" %></div>
<div class="form--field -wide-label"><%= setting_check_box :lost_password, label: :label_password_lost %></div>
<% else %>
<div class="form--field -wide-label">
<label><b><%= I18n.t :note %>: </b>
<%=
- url = 'https://www.openproject.org/docs/installation-and-operations/configuration/#disable-password-login'
+ url = "https://www.openproject.org/docs/installation-and-operations/configuration/#disable-password-login"
explanation = I18n.t :note_password_login_disabled,
configuration: "<a target=\"_blank\" href=\"#{url}\"> #{I18n.t('label_configuration')}</a>"
@@ -120,12 +120,12 @@ See COPYRIGHT and LICENSE files for more details.
<% unless OpenProject::Configuration.disable_password_login? %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= I18n.t(:brute_force_prevention, scope: [:settings]) %></legend>
- <div class="form--field -wide-label"><%= setting_text_field :brute_force_block_after_failed_logins, container_class: '-xslim' %>
+ <div class="form--field -wide-label"><%= setting_text_field :brute_force_block_after_failed_logins, container_class: "-xslim" %>
<span class="form--field-instructions">
<%= t(:text_hint_disable_with_0) %>
</span>
</div>
- <div class="form--field -wide-label"><%= setting_text_field :brute_force_block_minutes, unit: t(:label_minute_plural), container_class: '-xslim' %></div>
+ <div class="form--field -wide-label"><%= setting_text_field :brute_force_block_minutes, unit: t(:label_minute_plural), container_class: "-xslim" %></div>
</fieldset>
<% end %>
@@ -134,16 +134,16 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -wide-label"><%= setting_select :autologin,
([[t(:label_disabled), 0]] +
Settings::Definition[:autologin].allowed.collect do |days|
- [t('datetime.distance_in_words.x_days', count: days),
+ [t("datetime.distance_in_words.x_days", count: days),
days.to_s]
end),
- container_class: '-xslim' %>
+ container_class: "-xslim" %>
</div>
<div class="form--field -wide-label"><%= setting_check_box :session_ttl_enabled %></div>
<div class="form--field -wide-label" id="settings_session_ttl_container" style="display:none;">
- <%= setting_text_field :session_ttl, unit: t(:label_minute_plural), container_class: '-xslim' %>
+ <%= setting_text_field :session_ttl, unit: t(:label_minute_plural), container_class: "-xslim" %>
<span class="form--field-instructions">
- <%= I18n.t('setting_session_ttl_hint') %>
+ <%= I18n.t("setting_session_ttl_hint") %>
</span>
</div>
</fieldset>
@@ -155,8 +155,8 @@ See COPYRIGHT and LICENSE files for more details.
</section>
<% unless OpenProject::Configuration.disable_password_login? %>
<div style="float:right;">
- <%= link_to t(:label_ldap_authentication), {controller: '/ldap_auth_sources', action: 'index'}, class: 'icon icon-server-key' %>
+ <%= link_to t(:label_ldap_authentication), {controller: "/ldap_auth_sources", action: "index"}, class: "icon icon-server-key" %>
</div>
<% end %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/date_format_settings/show.html.erb b/app/views/admin/settings/date_format_settings/show.html.erb
index d558d1c58ca..223f37b2c51 100644
--- a/app/views/admin/settings/date_format_settings/show.html.erb
+++ b/app/views/admin/settings/date_format_settings/show.html.erb
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(
admin_settings_date_format_path,
method: :patch,
- class: 'op-date-format-admin-settings'
+ class: "op-date-format-admin-settings"
) do %>
<section class="form--section">
@@ -50,28 +50,28 @@ See COPYRIGHT and LICENSE files for more details.
<%= setting_select :date_format,
Settings::Definition[:date_format].allowed.collect {|f| [Date.today.strftime(f), f]},
blank: :label_language_based,
- container_class: '-wide' %>
+ container_class: "-wide" %>
</div>
<div class="form--field">
<%= setting_select :time_format,
Settings::Definition[:time_format].allowed.collect {|f| [Time.now.strftime(f), f]},
blank: :label_language_based,
- container_class: '-wide' %>
+ container_class: "-wide" %>
</div>
<div class="form--field">
- <%= setting_select :start_of_week, [[day_name(1),'1'], [day_name(6),'6'], [day_name(7),'7']], blank: :label_language_based, container_class: '-wide' %>
+ <%= setting_select :start_of_week, [[day_name(1),"1"], [day_name(6),"6"], [day_name(7),"7"]], blank: :label_language_based, container_class: "-wide" %>
</div>
<div class="form--field">
- <%= setting_select :first_week_of_year, [[day_name(1),'1'], [day_name(4),'4']], blank: :label_language_based, container_class: '-wide' %>
+ <%= setting_select :first_week_of_year, [[day_name(1),"1"], [day_name(4),"4"]], blank: :label_language_based, container_class: "-wide" %>
<div class="form--field-instructions">
- <p><%= t('settings.date_format.first_week_of_year_text_html', link: OpenProject::Static::Links[:date_format_settings_documentation][:href]) %></p>
+ <p><%= t("settings.date_format.first_week_of_year_text_html", link: OpenProject::Static::Links[:date_format_settings_documentation][:href]) %></p>
</div>
</div>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/experimental_settings/show.html.erb b/app/views/admin/settings/experimental_settings/show.html.erb
index 32fe0a08f86..e7931457acb 100644
--- a/app/views/admin/settings/experimental_settings/show.html.erb
+++ b/app/views/admin/settings/experimental_settings/show.html.erb
@@ -40,12 +40,12 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(admin_settings_experimental_path, method: :patch) do %>
<section class="form--section">
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= t('settings.experimental.feature_flags') %></legend>
+ <legend class="form--fieldset-legend"><%= t("settings.experimental.feature_flags") %></legend>
<div class="op-toast -warning -with-bottom-spacing">
<div class="op-toast--content">
<p>
- <%= t('settings.experimental.warning_toast') %>
+ <%= t("settings.experimental.warning_toast") %>
</p>
</div>
@@ -62,7 +62,7 @@ See COPYRIGHT and LICENSE files for more details.
</fieldset>
</section>
<%= styled_button_tag t(:button_save),
- class: '-primary -with-icon icon-checkmark',
+ class: "-primary -with-icon icon-checkmark",
data: {
confirm: t("settings.experimental.save_confirmation")
} %>
diff --git a/app/views/admin/settings/general_settings/show.html.erb b/app/views/admin/settings/general_settings/show.html.erb
index eb508f44ad6..c3b82e21402 100644
--- a/app/views/admin/settings/general_settings/show.html.erb
+++ b/app/views/admin/settings/general_settings/show.html.erb
@@ -40,31 +40,31 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(admin_settings_general_path, method: :patch) do %>
<section class="form--section">
- <div class="form--field"><%= setting_text_field :app_title, size: 30, container_class: '-middle' %></div>
+ <div class="form--field"><%= setting_text_field :app_title, size: 30, container_class: "-middle" %></div>
<div class="form--field">
- <%= setting_text_field :per_page_options, size: 20, container_class: '-slim' %>
+ <%= setting_text_field :per_page_options, size: 20, container_class: "-slim" %>
<span class="form--field-instructions">
<%= t(:text_comma_separated) %><br>
<%= t(:text_notice_too_many_values_are_inperformant) %>
</span>
</div>
<div class="form--field">
- <%= setting_number_field :activity_days_default, size: 6, unit: t(:label_day_plural), container_class: '-xslim' %>
+ <%= setting_number_field :activity_days_default, size: 6, unit: t(:label_day_plural), container_class: "-xslim" %>
</div>
<div class="form--field">
- <%= setting_text_field :host_name, size: 60, container_class: '-middle' %>
+ <%= setting_text_field :host_name, size: 60, container_class: "-middle" %>
<span class="form--field-instructions">
<%= t(:label_example) %>: <%= @guessed_host %>
</span>
</div>
<div class="form--field"><%= setting_check_box :cache_formatted_text %></div>
<div class="form--field"><%= setting_check_box :feeds_enabled, size: 6 %></div>
- <div class="form--field"><%= setting_text_field :feeds_limit, size: 6, container_class: '-xslim' %></div>
- <div class="form--field"><%= setting_text_field :work_packages_projects_export_limit, size: 6, container_class: '-xslim' %></div>
+ <div class="form--field"><%= setting_text_field :feeds_limit, size: 6, container_class: "-xslim" %></div>
+ <div class="form--field"><%= setting_text_field :work_packages_projects_export_limit, size: 6, container_class: "-xslim" %></div>
<div class="form--field">
- <%= setting_text_field :file_max_size_displayed, size: 6, unit: t(:"number.human.storage_units.units.kb"), container_class: '-xslim' %>
+ <%= setting_text_field :file_max_size_displayed, size: 6, unit: t(:"number.human.storage_units.units.kb"), container_class: "-xslim" %>
</div>
- <div class="form--field"><%= setting_text_field :diff_max_lines_displayed, size: 6, container_class: '-xslim' %></div>
+ <div class="form--field"><%= setting_text_field :diff_max_lines_displayed, size: 6, container_class: "-xslim" %></div>
<% if OpenProject::Configuration.security_badge_displayed? %>
<div class="form--field">
@@ -80,18 +80,18 @@ See COPYRIGHT and LICENSE files for more details.
<%= call_hook(:view_settings_general_form) %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:setting_welcome_text) %></legend>
- <div class="form--field"><%= setting_text_field :welcome_title, size: 30, container_class: '-wide' %></div>
+ <div class="form--field"><%= setting_text_field :welcome_title, size: 30, container_class: "-wide" %></div>
<div class="form--field -visible-overflow">
<%= setting_text_area :welcome_text,
cols: 60,
rows: 5,
- class: 'wiki-edit',
- id: 'settings_welcome_text',
+ class: "wiki-edit",
+ id: "settings_welcome_text",
with_text_formatting: true,
- container_class: '-xxwide' %>
+ container_class: "-xxwide" %>
</div>
<div class="form--field"><%= setting_check_box :welcome_on_homescreen %></div>
</fieldset>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/icalendar_settings/show.html.erb b/app/views/admin/settings/icalendar_settings/show.html.erb
index f82f58b40bc..f851e2f7129 100644
--- a/app/views/admin/settings/icalendar_settings/show.html.erb
+++ b/app/views/admin/settings/icalendar_settings/show.html.erb
@@ -41,17 +41,17 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(
admin_settings_icalendar_path,
method: :patch,
- class: 'op-icalendar-admin-settings'
+ class: "op-icalendar-admin-settings"
) do %>
<section class="form--section">
<div class="form--field">
<%= setting_check_box :ical_enabled, size: 6 %>
<div class="form--field-instructions">
- <p><%= t('settings.icalendar.enable_subscriptions_text_html', link: OpenProject::Static::Links[:ical_docs][:href]) %></p>
+ <p><%= t("settings.icalendar.enable_subscriptions_text_html", link: OpenProject::Static::Links[:ical_docs][:href]) %></p>
</div>
</div>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
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 066a7d62705..117a3b42af1 100644
--- a/app/views/admin/settings/incoming_mails_settings/show.html.erb
+++ b/app/views/admin/settings/incoming_mails_settings/show.html.erb
@@ -41,18 +41,18 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(admin_settings_incoming_mails_path, method: :patch) do %>
<section class="form--section">
<div class="form--field">
- <%= setting_text_area :mail_handler_body_delimiters, rows: 5, container_class: '-wide' %>
+ <%= setting_text_area :mail_handler_body_delimiters, rows: 5, container_class: "-wide" %>
<div class="form--field-instructions"><%= t(:text_line_separated) %></div>
</div>
<div class="form--field">
- <%= setting_text_field :mail_handler_body_delimiter_regex, container_class: '-wide' %>
+ <%= setting_text_field :mail_handler_body_delimiter_regex, container_class: "-wide" %>
<div class="form--field-instructions"><%= t(:text_regexp_multiline) %></div>
</div>
<div class="form--field">
- <%= setting_text_area :mail_handler_ignore_filenames, rows: 5, container_class: '-wide' %>
- <div class="form--field-instructions"><%= t('incoming_mails.ignore_filenames') %></div>
+ <%= setting_text_area :mail_handler_ignore_filenames, rows: 5, container_class: "-wide" %>
+ <div class="form--field-instructions"><%= t("incoming_mails.ignore_filenames") %></div>
</div>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/languages_settings/show.html.erb b/app/views/admin/settings/languages_settings/show.html.erb
index 696ebe747c5..2e95017a2fa 100644
--- a/app/views/admin/settings/languages_settings/show.html.erb
+++ b/app/views/admin/settings/languages_settings/show.html.erb
@@ -47,6 +47,6 @@ See COPYRIGHT and LICENSE files for more details.
</section>
<%= styled_button_tag t(:button_save),
- class: '-primary -with-icon icon-checkmark',
+ class: "-primary -with-icon icon-checkmark",
disabled: !Setting.available_languages_writable? %>
<% end %>
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 1333508205c..20f5fcf8487 100644
--- a/app/views/admin/settings/mail_notifications_settings/show.html.erb
+++ b/app/views/admin/settings/mail_notifications_settings/show.html.erb
@@ -41,16 +41,16 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(admin_settings_mail_notifications_path, method: :patch) do %>
<% if @deliveries %>
<section class="form--section">
- <div class="form--field"><%= setting_text_field :mail_from, size: 60, container_class: '-middle' %></div>
+ <div class="form--field"><%= setting_text_field :mail_from, size: 60, container_class: "-middle" %></div>
<div class="form--field"><%= setting_check_box :bcc_recipients %></div>
<div class="form--field"><%= setting_check_box :plain_text_mail %></div>
<div class="form--field">
<%= 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' %>
+ container_class: "-middle" %>
</div>
</section>
@@ -72,14 +72,14 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= content_tag :fieldset, id: "mail_configuration", class: "form--fieldset" do %>
<legend class="form--fieldset-legend"><%= t(:text_setup_mail_configuration) %></legend>
- <div class="form--field"><%= setting_select(:email_delivery_method, email_methods, id: "email_delivery_method_switch", container_class: '-slim') %></div>
+ <div class="form--field"><%= setting_select(:email_delivery_method, email_methods, id: "email_delivery_method_switch", container_class: "-slim") %></div>
<div id="email_delivery_method_smtp" class="email_delivery_method_settings">
- <div class="form--field"><%= setting_text_field :smtp_address, container_class: '-middle' %></div>
- <div class="form--field"><%= setting_text_field :smtp_port, size: 6, container_class: '-xslim' %></div>
- <div class="form--field"><%= setting_text_field :smtp_domain, container_class: '-middle' %></div>
- <div class="form--field"><%= setting_select(:smtp_authentication, [:none, :plain, :login, :cram_md5], container_class: '-slim') %></div>
- <div class="form--field"><%= setting_text_field :smtp_user_name, container_class: '-middle' %></div>
- <div class="form--field"><%= setting_password :smtp_password, container_class: '-middle' %></div>
+ <div class="form--field"><%= setting_text_field :smtp_address, container_class: "-middle" %></div>
+ <div class="form--field"><%= setting_text_field :smtp_port, size: 6, container_class: "-xslim" %></div>
+ <div class="form--field"><%= setting_text_field :smtp_domain, container_class: "-middle" %></div>
+ <div class="form--field"><%= setting_select(:smtp_authentication, [:none, :plain, :login, :cram_md5], container_class: "-slim") %></div>
+ <div class="form--field"><%= setting_text_field :smtp_user_name, container_class: "-middle" %></div>
+ <div class="form--field"><%= setting_password :smtp_password, container_class: "-middle" %></div>
<div class="form--field"><%= setting_check_box :smtp_enable_starttls_auto %></div>
<div class="form--field"><%= setting_check_box :smtp_ssl %></div>
</div>
@@ -92,12 +92,12 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end unless OpenProject::Configuration['email_delivery_configuration'] == 'legacy' %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% if @deliveries %>
<div style="float:none;display:inline-block;font-weight:bold;">
<%= link_to t(:label_send_test_email),
- { controller: '/admin', action: 'test_email' },
+ { controller: "/admin", action: "test_email" },
method: :post %>
</div>
<% end %>
diff --git a/app/views/admin/settings/new_project_settings/show.html.erb b/app/views/admin/settings/new_project_settings/show.html.erb
index 07325b1623c..524982f9366 100644
--- a/app/views/admin/settings/new_project_settings/show.html.erb
+++ b/app/views/admin/settings/new_project_settings/show.html.erb
@@ -47,8 +47,8 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field"><%= setting_select :new_project_user_role_id,
Role.givable.collect {|r| [r.name, r.id.to_s]},
blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
- container_class: '-middle' %></div>
+ container_class: "-middle" %></div>
</fieldset>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/project_custom_fields/new.html.erb b/app/views/admin/settings/project_custom_fields/new.html.erb
index 7bff6431565..c42701066e3 100644
--- a/app/views/admin/settings/project_custom_fields/new.html.erb
+++ b/app/views/admin/settings/project_custom_fields/new.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t("settings.project_attributes.heading"), t('settings.project_attributes.new.heading') %>
+<% html_title t(:label_administration), t("settings.project_attributes.heading"), t("settings.project_attributes.new.heading") %>
<%= render(Settings::ProjectCustomFields::NewFormHeaderComponent.new) %>
diff --git a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb b/app/views/admin/settings/project_custom_fields/project_mappings.html.erb
index 25cf9d666fa..a1f056e369e 100644
--- a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb
+++ b/app/views/admin/settings/project_custom_fields/project_mappings.html.erb
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
href: new_link_admin_settings_project_custom_field_path(@custom_field),
data: { controller: "async-dialog" }
)) do |button|
- button.with_leading_visual_icon(icon: 'op-include-projects')
+ button.with_leading_visual_icon(icon: "op-include-projects")
I18n.t(:label_add_projects)
end
end
diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb
index ded88d96596..8595e8f93b0 100644
--- a/app/views/admin/settings/projects_settings/show.html.erb
+++ b/app/views/admin/settings/projects_settings/show.html.erb
@@ -41,13 +41,13 @@ See COPYRIGHT and LICENSE files for more details.
<fieldset class="form--fieldset">
<div class="form--field -full-width">
<div class="form--text-field-container -xwide">
- <%= angular_component_tag 'opce-draggable-autocompleter',
+ <%= angular_component_tag "opce-draggable-autocompleter",
inputs: {
options: projects_columns_options,
selected: selected_projects_columns_options,
protected: protected_projects_columns_options,
- name: 'settings[enabled_projects_columns][]',
- id: 'settings_enabled_projects_columns',
+ name: "settings[enabled_projects_columns][]",
+ id: "settings_enabled_projects_columns",
inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),
inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),
dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label')
@@ -61,12 +61,12 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<span class="form--field-container">
<span class="form--text-field-container">
- <%= angular_component_tag 'opce-editable-query-props',
+ <%= angular_component_tag "opce-editable-query-props",
data: {
- name: 'settings[project_gantt_query]',
- id: 'settings_project_gantt_query',
+ name: "settings[project_gantt_query]",
+ id: "settings_project_gantt_query",
query: ::Projects::GanttQueryGeneratorService.current_query,
- 'url-params': 'true'
+ 'url-params': "true"
} %>
</span>
</span>
@@ -75,5 +75,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
</fieldset>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erb b/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erb
index 7cd1240df89..3d3cdc340b1 100644
--- a/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erb
+++ b/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erb
@@ -1,9 +1,9 @@
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= t('repositories.checkout.instructions') %></legend>
+ <legend class="form--fieldset-legend"><%= t("repositories.checkout.instructions") %></legend>
<% OpenProject::SCM::Manager.registered.each do |vendor, klass| %>
<% vendor = vendor.to_s %>
<% setting_base = "settings[repository_checkout_data][#{vendor}]" %>
- <% enabled = Setting.repository_checkout_data[vendor]['enabled'].to_i > 0 %>
+ <% enabled = Setting.repository_checkout_data[vendor]["enabled"].to_i > 0 %>
<fieldset class="form--fieldset -collapsible collapsed">
<legend class="form--fieldset-legend" title="<%= klass.vendor_name %>">
<a href="#"><%= klass.vendor_name %>
@@ -14,27 +14,27 @@
<input type="hidden" name="<%= key %>" value="0" id="<% "#{key}_hidden" %>">
<%= setting_label key, label: :setting_repository_checkout_display %>
<div class="form--field-container">
- <%= styled_check_box_tag key, 1, enabled, class: 'settings-repositories--checkout-toggle' %>
+ <%= styled_check_box_tag key, 1, enabled, class: "settings-repositories--checkout-toggle" %>
</div>
- <div class="form--field-instructions"><%= t('repositories.checkout.enable_instructions_text') %></div>
+ <div class="form--field-instructions"><%= t("repositories.checkout.enable_instructions_text") %></div>
</div>
<div class="form--field">
<% key = "#{setting_base}[base_url]" %>
<%= setting_label key, label: :setting_repository_checkout_base_url %>
<div class="form--field-container">
- <%= styled_text_field_tag key, Setting.repository_checkout_data[vendor]['base_url'],
- type: 'url', required: enabled %>
+ <%= styled_text_field_tag key, Setting.repository_checkout_data[vendor]["base_url"],
+ type: "url", required: enabled %>
</div>
- <div class="form--field-instructions"><%= simple_format t('repositories.checkout.base_url_text') %></div>
+ <div class="form--field-instructions"><%= simple_format t("repositories.checkout.base_url_text") %></div>
</div>
<div class="form--field">
<% key = "#{setting_base}[text]" %>
<%= setting_label key, label: :setting_repository_checkout_text %>
<div class="form--field-container">
- <%= styled_text_area_tag key, Setting.repository_checkout_data[vendor]['text'],
+ <%= styled_text_area_tag key, Setting.repository_checkout_data[vendor]["text"],
placeholder: t("repositories.checkout.default_instructions.#{vendor}") %>
</div>
- <div class="form--field-instructions"><%= t('repositories.checkout.text_instructions') %></div>
+ <div class="form--field-instructions"><%= t("repositories.checkout.text_instructions") %></div>
</div>
</fieldset>
<% end %>
diff --git a/app/views/admin/settings/repositories_settings/show.html.erb b/app/views/admin/settings/repositories_settings/show.html.erb
index ceb4fb39b6f..1e5c821813e 100644
--- a/app/views/admin/settings/repositories_settings/show.html.erb
+++ b/app/views/admin/settings/repositories_settings/show.html.erb
@@ -43,32 +43,32 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= setting_check_box :autofetch_changesets %>
<div class="form--field-instructions">
- <%= simple_format t('repositories.autofetch_information') %>
+ <%= simple_format t("repositories.autofetch_information") %>
</div>
</div>
<div class="form--field">
<%= setting_text_field :repository_storage_cache_minutes,
unit: I18n.t(:label_minute_plural),
- type: 'number',
- container_class: '-xslim' %>
+ type: "number",
+ container_class: "-xslim" %>
<div class="form--field-instructions">
- <%= simple_format t('repositories.storage.update_timeout') %>
+ <%= simple_format t("repositories.storage.update_timeout") %>
</div>
</div>
<div class="form--field">
<%= setting_check_box :sys_api_enabled %>
<% csp_onclick("jQuery('#settings_sys_api_key').prop('disabled', !this.checked)",
- '#settings_sys_api_enabled',
+ "#settings_sys_api_enabled",
prevent_default: false) %>
<div class="form--field-instructions">
<%= t(:setting_sys_api_description) %>
</div>
</div>
<div class="form--field"><%= setting_text_field :sys_api_key, size: 30,
- id: 'settings_sys_api_key',
+ id: "settings_sys_api_key",
disabled: !Setting.sys_api_enabled?,
label: :setting_mail_handler_api_key,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<%
available_scms = OpenProject::SCM::Manager.registered
@@ -87,26 +87,26 @@ See COPYRIGHT and LICENSE files for more details.
<%= setting_select :repositories_automatic_managed_vendor,
[[
"--- #{t('repositories.settings.automatic_managed_repos_disabled')} ---",
- '',
+ "",
{ selected: true }
]] + manageable_scms,
label: false,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
- <div class="form--field-instructions"><%= t('repositories.settings.automatic_managed_repos_text') %></div>
+ <div class="form--field-instructions"><%= t("repositories.settings.automatic_managed_repos_text") %></div>
</div>
<div class="form--field">
- <%= setting_text_field :repositories_encodings, size: 60, container_class: '-wide' %>
+ <%= setting_text_field :repositories_encodings, size: 60, container_class: "-wide" %>
<div class="form--field-instructions"><%= t(:text_comma_separated) %></div>
</div>
- <div class="form--field"><%= setting_text_field :repository_log_display_limit, size: 6, container_class: '-xslim' %></div>
- <div class="form--field"><%= setting_text_field :repository_truncate_at, size: 6, container_class: '-xslim' %></div>
+ <div class="form--field"><%= setting_text_field :repository_log_display_limit, size: 6, container_class: "-xslim" %></div>
+ <div class="form--field"><%= setting_text_field :repository_truncate_at, size: 6, container_class: "-xslim" %></div>
</section>
- <%= render partial: 'repositories_checkout' %>
+ <%= render partial: "repositories_checkout" %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:text_work_packages_ref_in_commit_messages) %></legend>
<div class="form--field">
- <%= setting_text_field :commit_ref_keywords, size: 30, container_class: '-wide' %>
+ <%= setting_text_field :commit_ref_keywords, size: 30, container_class: "-wide" %>
<div class="form--field-instructions"><%= t(:text_comma_separated) %></div>
</div>
<div class="form--grouping" role="group" aria-labelledby="form-grouping-label-setting_commit_fix_keywords">
@@ -115,7 +115,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="form--grouping-row">
<div class="form--field -vertical">
- <%= styled_label_tag 'commit_fix_keywords', I18n.t(:label_keyword_plural) %>
+ <%= styled_label_tag "commit_fix_keywords", I18n.t(:label_keyword_plural) %>
<div class="form--field-container">
<%= setting_text_field :commit_fix_keywords, size: 30, label: false %>
</div>
@@ -124,7 +124,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -vertical">
<%= styled_label_tag :settings_commit_fix_status_id, t(:label_applied_status) %>
<div class="form--field-container">
- <%= setting_select :commit_fix_status_id, [["--- #{t(:actionview_instancetag_blank_option)} ---", '0', { disabled: true }]] + Status.all.collect{ |status| [status.name, status.id.to_s] }, label: false %>
+ <%= setting_select :commit_fix_status_id, [["--- #{t(:actionview_instancetag_blank_option)} ---", "0", { disabled: true }]] + Status.all.collect{ |status| [status.name, status.id.to_s] }, label: false %>
</div>
</div>
</div>
@@ -132,12 +132,12 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= setting_check_box :commit_logtime_enabled %>
<% csp_onclick("jQuery('#settings_commit_logtime_activity_id').prop('disabled', !this.checked)",
- '#setting_commit_logtime_enabled') %>
+ "#setting_commit_logtime_enabled") %>
</div>
<div class="form--field"><%= setting_select :commit_logtime_activity_id,
[[t(:label_default), 0]] + TimeEntryActivity.shared.map {|activity| [activity.name, activity.id.to_s]},
disabled: !Setting.commit_logtime_enabled?,
- container_class: '-middle' %></div>
+ container_class: "-middle" %></div>
</fieldset>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/show_plugin.html.erb b/app/views/admin/settings/show_plugin.html.erb
index 2f9e3c10588..2b2936ec447 100644
--- a/app/views/admin/settings/show_plugin.html.erb
+++ b/app/views/admin/settings/show_plugin.html.erb
@@ -39,8 +39,8 @@ See COPYRIGHT and LICENSE files for more details.
%>
<div id="settings">
- <%= styled_form_tag({controller: '/admin/settings', action: 'update_plugin' }) do %>
+ <%= styled_form_tag({controller: "/admin/settings", action: "update_plugin" }) do %>
<%= render partial: @partial, locals: {settings: @settings} %>
- <%= styled_submit_tag t(:button_apply), class: '-primary' %>
+ <%= styled_submit_tag t(:button_apply), class: "-primary" %>
<% end %>
</div>
diff --git a/app/views/admin/settings/users_settings/show.html.erb b/app/views/admin/settings/users_settings/show.html.erb
index 0c179a0baf4..80d0f274cf6 100644
--- a/app/views/admin/settings/users_settings/show.html.erb
+++ b/app/views/admin/settings/users_settings/show.html.erb
@@ -37,13 +37,13 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= styled_form_tag(admin_settings_users_path, method: :patch, class: 'admin-settings--form') do %>
+<%= styled_form_tag(admin_settings_users_path, method: :patch, class: "admin-settings--form") do %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:'settings.user.default_preferences') %></legend>
<div class="form--field" id="setting_default_language">
- <%= setting_select :default_language, all_lang_options_for_select, container_class: '-slim' %>
+ <%= setting_select :default_language, all_lang_options_for_select, container_class: "-slim" %>
</div>
<%= render Settings::TimeZoneSettingComponent.new(
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
) %>
<div class="form--field">
- <%= setting_check_box :default_auto_hide_popups, label: 'activerecord.attributes.user_preference.auto_hide_popups' %>
+ <%= setting_check_box :default_auto_hide_popups, label: "activerecord.attributes.user_preference.auto_hide_popups" %>
</div>
</fieldset>
@@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= t(:'settings.user.display_format') %></legend>
<div class="form--field">
- <%= setting_select :user_format, @options[:user_format], container_class: '-slim' %>
+ <%= setting_select :user_format, @options[:user_format], container_class: "-slim" %>
</div>
</fieldset>
@@ -88,27 +88,27 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= setting_block("consent_time") do %>
<span class="form--check-box-field-container -slim">
- <%= check_box_tag 'toggle_consent_time',
- '1',
+ <%= check_box_tag "toggle_consent_time",
+ "1",
!Setting.consent_time.present?,
- id: 'toggle_consent_time' %>
+ id: "toggle_consent_time" %>
</span>
<% end %>
<div class="form--field-instructions">
- <%= I18n.t('consent.text_update_consent_time') %>
+ <%= I18n.t("consent.text_update_consent_time") %>
<br>
<strong>
- <%= I18n.t('consent.update_consent_last_time',
+ <%= I18n.t("consent.update_consent_last_time",
update_time: Setting.consent_time.present? ? format_time(Setting.consent_time) : t(:label_never)) %>
</strong>
</div>
</div>
<div class="form--field">
- <%= setting_text_field :consent_decline_mail, size: 6, container_class: '-middle' %>
+ <%= setting_text_field :consent_decline_mail, size: 6, container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('consent.contact_mail_instructions') %>
+ <%= t("consent.contact_mail_instructions") %>
</span>
</div>
</fieldset>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
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 8a00da9892b..cfd24cd9e47 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
@@ -1,20 +1,20 @@
<turbo-frame id="attachments_av_subform">
<% if selected == :clamav_socket %>
<div class="form--field">
- <%= setting_text_field :antivirus_scan_target, container_class: '-wide', not_translated_label: 'ClamAV (Socket)' %>
+ <%= setting_text_field :antivirus_scan_target, container_class: "-wide", not_translated_label: "ClamAV (Socket)" %>
<div class="form--field-instructions">
- <p><%= t('settings.antivirus.modes.clamav_socket_html',
- example: content_tag(:code, '/var/run/clamav/clamd.ctl'),
+ <p><%= t("settings.antivirus.modes.clamav_socket_html",
+ example: content_tag(:code, "/var/run/clamav/clamd.ctl"),
) %>
</p>
</div>
</div>
<% elsif selected == :clamav_host %>
<div class="form--field">
- <%= setting_text_field :antivirus_scan_target, container_class: '-wide', not_translated_label: 'ClamAV (Host)' %>
+ <%= setting_text_field :antivirus_scan_target, container_class: "-wide", not_translated_label: "ClamAV (Host)" %>
<div class="form--field-instructions">
- <p><%= t('settings.antivirus.modes.clamav_host_html',
- example: content_tag(:code, 'remotehost:1024'),
+ <p><%= t("settings.antivirus.modes.clamav_host_html",
+ example: content_tag(:code, "remotehost:1024"),
) %>
</p>
</div>
@@ -24,14 +24,14 @@
<div class="form--field">
<%= setting_select :antivirus_scan_action,
[
- [t('settings.antivirus.actions.quarantine'), :quarantine],
- [t('settings.antivirus.actions.delete'), :delete],
+ [t("settings.antivirus.actions.quarantine"), :quarantine],
+ [t("settings.antivirus.actions.delete"), :delete],
],
- container_class: '-wide' %>
+ container_class: "-wide" %>
<div class="form--field-instructions">
- <p><%= t('settings.antivirus.actions.instructions_html',
- quarantine_option: t('settings.antivirus.actions.quarantine'),
- delete_option: t('settings.antivirus.actions.delete')
+ <p><%= t("settings.antivirus.actions.instructions_html",
+ quarantine_option: t("settings.antivirus.actions.quarantine"),
+ delete_option: t("settings.antivirus.actions.delete")
) %></p>
</div>
</div>
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 45d562e0f2a..5582818d21a 100644
--- a/app/views/admin/settings/virus_scanning_settings/show.html.erb
+++ b/app/views/admin/settings/virus_scanning_settings/show.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render(Admin::AttachmentsSettingsHeaderComponent.new(
- title: t('settings.antivirus.title'),
+ title: t("settings.antivirus.title"),
selected: 2
))
%>
@@ -38,31 +38,31 @@ See COPYRIGHT and LICENSE files for more details.
admin_settings_virus_scanning_path,
method: :patch,
data: {
- 'controller': 'refresh-on-form-changes',
- 'refresh-on-form-changes-target': 'form',
- 'refresh-on-form-changes-turbo-stream-url-value': url_for(action: 'av_form')
+ 'controller': "refresh-on-form-changes",
+ 'refresh-on-form-changes-target': "form",
+ 'refresh-on-form-changes-turbo-stream-url-value': url_for(action: "av_form")
}
) do %>
<div class="form--field">
<%= setting_select :antivirus_scan_mode,
[
[t(:label_disabled_uppercase), :disabled],
- ['ClamAV (Socket)', :clamav_socket],
- ['ClamAV (Host)', :clamav_host],
+ ["ClamAV (Socket)", :clamav_socket],
+ ["ClamAV (Host)", :clamav_host],
],
- container_class: '-wide',
+ container_class: "-wide",
data: {
- action: 'refresh-on-form-changes#triggerTurboStream'
+ action: "refresh-on-form-changes#triggerTurboStream"
} %>
<div class="form--field-instructions">
- <p><%= t('settings.antivirus.modes.description_html',
+ <p><%= t("settings.antivirus.modes.description_html",
disabled_option: t(:label_disabled_uppercase),
- socket_option: 'ClamAV (Socket)',
- host_option: 'ClamAV (Host)',
+ socket_option: "ClamAV (Socket)",
+ host_option: "ClamAV (Host)",
) %></p>
</div>
</div>
- <%= render partial: 'av_form', locals: { selected: Setting.antivirus_scan_mode } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "av_form", locals: { selected: Setting.antivirus_scan_mode } %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/virus_scanning_settings/upsale.html.erb b/app/views/admin/settings/virus_scanning_settings/upsale.html.erb
index 77f09925ecc..e40998cbf55 100644
--- a/app/views/admin/settings/virus_scanning_settings/upsale.html.erb
+++ b/app/views/admin/settings/virus_scanning_settings/upsale.html.erb
@@ -27,11 +27,11 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t('settings.antivirus.title') %>
+<% html_title t(:label_administration), t("settings.antivirus.title") %>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
- feature_title: t('settings.antivirus.title'),
- feature_description: t('settings.antivirus.upsale.description'),
- feature_reference: 'antivirus_scanning'
+ feature_title: t("settings.antivirus.title"),
+ feature_description: t("settings.antivirus.upsale.description"),
+ feature_reference: "antivirus_scanning"
} %>
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 0072914c652..f796bf5e9fa 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
@@ -1,7 +1,7 @@
<% unless EnterpriseToken.allows_to?(ee_feature) %>
<div class="form--field-extra-actions">
<%=
- angular_component_tag 'opce-enterprise-banner',
+ angular_component_tag "opce-enterprise-banner",
inputs: {
collapsible: true,
textMessage: explanation,
diff --git a/app/views/announcement_mailer/announce.html.erb b/app/views/announcement_mailer/announce.html.erb
index 98cd760e4a9..99e1e850f98 100644
--- a/app/views/announcement_mailer/announce.html.erb
+++ b/app/views/announcement_mailer/announce.html.erb
@@ -1,25 +1,25 @@
-<%= render layout: 'mailer/spacer_table' do %>
- <%= render partial: 'mailer/mailer_header',
+<%= render layout: "mailer/spacer_table" do %>
+ <%= render partial: "mailer/mailer_header",
locals: {
summary: header_summary,
user: user
} %>
- <%= render layout: 'mailer/border_table' do %>
+ <%= render layout: "mailer/border_table" do %>
<tr>
- <%= placeholder_cell('24px', vertical: true) %>
+ <%= placeholder_cell("24px", vertical: true) %>
<td>
<table>
<% if body_subheader %>
<tr>
- <td style="<%= placeholder_text_styles('font-weight': 'bold') %>">
+ <td style="<%= placeholder_text_styles('font-weight': "bold") %>">
<%= format_text body_subheader %>
</td>
</tr>
<% end %>
<% if body_header %>
<tr>
- <td style="<%= placeholder_text_styles(color: '#333333', 'line-height': '36px', 'font-size': '18px', 'font-weight': 'bold') %>">
+ <td style="<%= placeholder_text_styles(color: "#333333", 'line-height': "36px", 'font-size': "18px", 'font-weight': "bold") %>">
<%= format_text body_header %>
</td>
</tr>
@@ -31,20 +31,20 @@
</tr>
</table>
</td>
- <%= placeholder_cell('24px', vertical: true) %>
+ <%= placeholder_cell("24px", vertical: true) %>
</tr>
<tr>
- <%= placeholder_cell('24px', vertical: false) %>
+ <%= placeholder_cell("24px", vertical: false) %>
</tr>
<% end %>
<table>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
- <%= render partial: 'mailer/notification_settings_table',
+ <%= render partial: "mailer/notification_settings_table",
locals: {
button_url: my_reminders_url,
button_text: I18n.t(:'mail.notification.settings')
diff --git a/app/views/announcements/edit.html.erb b/app/views/announcements/edit.html.erb
index 646a6d308b5..40b0dee8027 100644
--- a/app/views/announcements/edit.html.erb
+++ b/app/views/announcements/edit.html.erb
@@ -8,7 +8,7 @@
end
%>
-<%= error_messages_for 'announcement' %>
+<%= error_messages_for "announcement" %>
<%= labelled_tabular_form_for @announcement,
:url => {:action => :update},
@@ -18,14 +18,14 @@
:cols => 80,
:rows => 5,
label: t(:label_text),
- container_class: '-xxwide',
+ container_class: "-xxwide",
with_text_formatting: true %>
</div>
<div class="form--field">
- <%= f.date_picker :show_until, label: t('announcements.show_until') %>
+ <%= f.date_picker :show_until, label: t("announcements.show_until") %>
</div>
<div class="form--field">
<%= f.check_box :active, label: t(:label_active) %>
</div>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/api_docs/index.html.erb b/app/views/api_docs/index.html.erb
index 88b0ce32bab..42fc3805f4f 100644
--- a/app/views/api_docs/index.html.erb
+++ b/app/views/api_docs/index.html.erb
@@ -1,7 +1,7 @@
<%= nonced_javascript_include_tag "openapi-explorer.min.js" %>
-<%= content_tag('openapi-explorer',
- '',
+<%= content_tag("openapi-explorer",
+ "",
'spec-url': api_v3_paths.api_spec,
'server-url': api_v3_paths.root_path,
- 'nav-bg-color': color_by_variable('main-menu-bg-color')) %>
+ 'nav-bg-color': color_by_variable("main-menu-bg-color")) %>
diff --git a/app/views/attribute_help_texts/_form.html.erb b/app/views/attribute_help_texts/_form.html.erb
index 73ecb7cae4e..81a2049746e 100644
--- a/app/views/attribute_help_texts/_form.html.erb
+++ b/app/views/attribute_help_texts/_form.html.erb
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'attribute_help_text' %>
+<%= error_messages_for "attribute_help_text" %>
<section class="form--section" id="custom_field_form">
<div class="form--field -required">
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
{},
disabled: true %>
<% else %>
- <%= f.select :attribute_name, selectable_attributes(@attribute_help_text), container_class: '-middle' %>
+ <%= f.select :attribute_name, selectable_attributes(@attribute_help_text), container_class: "-middle" %>
<% end %>
</div>
@@ -48,13 +48,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.text_area :help_text,
cols: 100,
rows: 20,
- class: 'wiki-edit',
+ class: "wiki-edit",
with_text_formatting: true,
resource: resource %>
<div class="form--field-instructions">
<p>
<strong><%= t(:note) %>:</strong>
- <%= t('attribute_help_texts.note_public') %>
+ <%= t("attribute_help_texts.note_public") %>
</p>
</div>
</div>
diff --git a/app/views/attribute_help_texts/_tab.html.erb b/app/views/attribute_help_texts/_tab.html.erb
index 7aff8830153..75efb26a5e2 100644
--- a/app/views/attribute_help_texts/_tab.html.erb
+++ b/app/views/attribute_help_texts/_tab.html.erb
@@ -42,7 +42,7 @@
edit_attribute_help_text_path(attribute_help_text) %>
</td>
<td>
- <%= angular_component_tag 'opce-attribute-help-text',
+ <%= angular_component_tag "opce-attribute-help-text",
inputs: {
helpTextId: attribute_help_text.id,
attribute: attribute_help_text.attribute_name,
@@ -52,7 +52,7 @@
</td>
<td class="buttons">
<%= link_to(
- op_icon('icon icon-delete'),
+ op_icon("icon icon-delete"),
(attribute_help_text_path(attribute_help_text)),
method: :delete,
data: { confirm: I18n.t(:text_are_you_sure) },
diff --git a/app/views/attribute_help_texts/edit.html.erb b/app/views/attribute_help_texts/edit.html.erb
index f52d2eee646..99862491e27 100644
--- a/app/views/attribute_help_texts/edit.html.erb
+++ b/app/views/attribute_help_texts/edit.html.erb
@@ -40,13 +40,13 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @attribute_help_text,
- as: 'attribute_help_text',
+ as: "attribute_help_text",
url: { action: :update },
html: {
- id: 'attribute_help_text_form',
+ id: "attribute_help_text_form",
data: { turbo: false } # reload page to update previews
} do |f| %>
- <%= render partial: 'form', locals: { f: f, editing: true } %>
- <%= hidden_field_tag 'attribute_scope', @attribute_help_text.attribute_scope %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "form", locals: { f: f, editing: true } %>
+ <%= hidden_field_tag "attribute_scope", @attribute_help_text.attribute_scope %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/attribute_help_texts/index.html.erb b/app/views/attribute_help_texts/index.html.erb
index 44fbccd6807..fc54e016ec0 100644
--- a/app/views/attribute_help_texts/index.html.erb
+++ b/app/views/attribute_help_texts/index.html.erb
@@ -29,15 +29,15 @@ See COPYRIGHT and LICENSE files for more details.
<% tabs = [
{
- name: 'WorkPackage',
- partial: 'attribute_help_texts/tab',
- path: attribute_help_texts_path(tab: 'WorkPackage'),
+ name: "WorkPackage",
+ partial: "attribute_help_texts/tab",
+ path: attribute_help_texts_path(tab: "WorkPackage"),
label: :label_work_package
},
{
- name: 'Project',
- partial: 'attribute_help_texts/tab',
- path: attribute_help_texts_path(tab: 'Project'),
+ name: "Project",
+ partial: "attribute_help_texts/tab",
+ path: attribute_help_texts_path(tab: "Project"),
label: :label_project
}
] %>
diff --git a/app/views/attribute_help_texts/new.html.erb b/app/views/attribute_help_texts/new.html.erb
index f7176e9d3c8..fe1bac6eb40 100644
--- a/app/views/attribute_help_texts/new.html.erb
+++ b/app/views/attribute_help_texts/new.html.erb
@@ -40,10 +40,10 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @attribute_help_text,
- as: 'attribute_help_text',
+ as: "attribute_help_text",
url: { action: :create },
- html: {id: 'attribute_help_text_form'} do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+ html: {id: "attribute_help_text_form"} do |f| %>
+ <%= render partial: "form", locals: { f: f } %>
<%= f.hidden_field :type, value: @attribute_help_text.type %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/categories/_form.html.erb b/app/views/categories/_form.html.erb
index fbbab6ba6de..760e9e0d6df 100644
--- a/app/views/categories/_form.html.erb
+++ b/app/views/categories/_form.html.erb
@@ -26,10 +26,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'category' %>
+<%= error_messages_for "category" %>
<div class="form--field -required">
- <%= f.text_field :name, required: true, container_class: '-middle' %>
+ <%= f.text_field :name, required: true, container_class: "-middle" %>
</div>
<div class="form--field">
@@ -39,5 +39,5 @@ See COPYRIGHT and LICENSE files for more details.
.ordered_by_name
.collect{|u| [u.name, u.id]},
include_blank: true,
- container_class: '-slim' %>
+ container_class: "-slim" %>
</div>
diff --git a/app/views/categories/create.js.erb b/app/views/categories/create.js.erb
index 4a4ce5f19d9..e21944ffa7a 100644
--- a/app/views/categories/create.js.erb
+++ b/app/views/categories/create.js.erb
@@ -27,4 +27,4 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-jQuery('#work_package_category_id').empty().append("<%= escape_javascript(options_from_collection_for_select(project.categories, 'id', 'name', category.id)) %>");
+jQuery('#work_package_category_id').empty().append("<%= escape_javascript(options_from_collection_for_select(project.categories, "id", "name", category.id)) %>");
diff --git a/app/views/categories/destroy.html.erb b/app/views/categories/destroy.html.erb
index 8b258d7a732..8537ca8cbeb 100644
--- a/app/views/categories/destroy.html.erb
+++ b/app/views/categories/destroy.html.erb
@@ -37,13 +37,13 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= form_tag({}, {method: :delete, class: 'form'}) do %>
+<%= form_tag({}, {method: :delete, class: "form"}) do %>
<p><strong><%= t(:text_work_package_category_destroy_question, count: @issue_count) %></strong></p>
<div class="form--field">
<label class="form--label" for="todo_nullify"><%= t(:text_work_package_category_destroy_assignments) %></label>
<div class="form--field-container">
- <%= styled_radio_button_tag 'todo', 'nullify', true %>
+ <%= styled_radio_button_tag "todo", "nullify", true %>
</div>
</div>
@@ -51,13 +51,13 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for="todo_reassign"><%= t(:text_work_package_category_reassign_to) %></label>
<div class="form--field-container">
- <%= styled_radio_button_tag 'todo', 'reassign', false %>
+ <%= styled_radio_button_tag "todo", "reassign", false %>
</div>
<%= label_tag "reassign_to_id", t(:description_work_package_category_reassign), class: "hidden-for-sighted" %>
- <%= styled_select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name'), container_class: '-middle' %>
+ <%= styled_select_tag "reassign_to_id", options_from_collection_for_select(@categories, "id", "name"), container_class: "-middle" %>
</div>
<% end %>
- <%= submit_tag t(:button_apply), class: 'button -primary' %>
- <%= link_to t(:button_cancel), project_settings_categories_path(@project), class: 'button' %>
+ <%= submit_tag t(:button_apply), class: "button -primary" %>
+ <%= link_to t(:button_cancel), project_settings_categories_path(@project), class: "button" %>
<% end %>
diff --git a/app/views/categories/edit.html.erb b/app/views/categories/edit.html.erb
index ea7ef00d6d3..5cadee1ad9f 100644
--- a/app/views/categories/edit.html.erb
+++ b/app/views/categories/edit.html.erb
@@ -38,6 +38,6 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @category, as: :category do |f| %>
- <%= render partial: 'categories/form', locals: { f: f } %>
- <%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
+ <%= render partial: "categories/form", locals: { f: f } %>
+ <%= f.button t(:button_save), class: "button -primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erb
index 70ea4f735d2..2bd0d3be779 100644
--- a/app/views/categories/new.html.erb
+++ b/app/views/categories/new.html.erb
@@ -39,6 +39,6 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for [@project, @category], as: :category do |f| %>
- <%= render partial: 'categories/form', locals: { f: f } %>
- <%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %>
+ <%= render partial: "categories/form", locals: { f: f } %>
+ <%= f.button t(:button_create), class: "button -primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/colors/_color_autocomplete_field.html.erb b/app/views/colors/_color_autocomplete_field.html.erb
index c4e665f5f90..792e2dc3d79 100644
--- a/app/views/colors/_color_autocomplete_field.html.erb
+++ b/app/views/colors/_color_autocomplete_field.html.erb
@@ -1,19 +1,19 @@
-<% form_field_class = form_field_class || '' %>
-<% container_class = container_class || '' %>
+<% form_field_class = form_field_class || "" %>
+<% container_class = container_class || "" %>
<% highlight_text_inline = highlight_text_inline || false %>
<div class="form--field <%= form_field_class %>"<%= %>>
<label class="form--label">
- <%= t('attributes.color') %>
+ <%= t("attributes.color") %>
</label>
<div class="form--field-container">
<%= form.hidden_field :color_id %>
- <%= content_tag('opce-colors-autocompleter',
- '',
+ <%= content_tag("opce-colors-autocompleter",
+ "",
class: "colors-autocomplete form--select-container " + "#{container_class.present? ? container_class : '-middle'}",
data: { colors: options_for_colors(object),
selected_color: selected_color(object),
highlight_text_inline: highlight_text_inline,
- update_input: type + '[color_id]'}) %>
+ update_input: type + "[color_id]"}) %>
</div>
<div class="form--field-instructions"><%= label %></div>
</div>
diff --git a/app/views/colors/_form.html.erb b/app/views/colors/_form.html.erb
index fea3be0517f..4af7f1825b7 100644
--- a/app/views/colors/_form.html.erb
+++ b/app/views/colors/_form.html.erb
@@ -27,14 +27,14 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'color' %>
+<%= error_messages_for "color" %>
<fieldset class="form--fieldset">
<div class="form--field -required">
- <%= f.text_field :name, required: true, container_class: '-slim' %>
+ <%= f.text_field :name, required: true, container_class: "-slim" %>
</div>
<div class="form--field -required">
- <label class="form--label"><%= t('activerecord.attributes.color.hexcode') %></label>
+ <label class="form--label"><%= t("activerecord.attributes.color.hexcode") %></label>
<span class="form--field-container">
<span class="form--text-field-container -xslim">
<%= text_field_tag "color_hexcode",
@@ -43,10 +43,10 @@ See COPYRIGHT and LICENSE files for more details.
name: "color[hexcode]",
maxlength: 7 %>
</span>
- <%= icon_for_color(color, class: 'color--preview', data: { target: '#color_hexcode' }) %>
+ <%= icon_for_color(color, class: "color--preview", data: { target: "#color_hexcode" }) %>
</span>
</div>
</fieldset>
-<%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
-<%= link_to t(:button_cancel), colors_path, class: 'button -with-icon icon-cancel' %>
+<%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
+<%= link_to t(:button_cancel), colors_path, class: "button -with-icon icon-cancel" %>
diff --git a/app/views/colors/confirm_destroy.html.erb b/app/views/colors/confirm_destroy.html.erb
index a8bd724e919..63502166b36 100644
--- a/app/views/colors/confirm_destroy.html.erb
+++ b/app/views/colors/confirm_destroy.html.erb
@@ -38,24 +38,24 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @color,
url: color_url(@color),
- html: {method: 'delete'},
+ html: {method: "delete"},
as: :color do |f| %>
<div class='flash warning'>
- <%= t('colors.label_really_delete_color') %>
+ <%= t("colors.label_really_delete_color") %>
<span class="close-handler" role="button" tabindex="0" aria-label="{{ ::I18n.t('js.close_popup_title') }}">
- <%= op_icon('icon-close') %>
+ <%= op_icon("icon-close") %>
</span>
</div>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= t('colors.label_properties') %></legend>
+ <legend class="form--fieldset-legend"><%= t("colors.label_properties") %></legend>
<div class="form--field">
- <%= f.text_field :hexcode, disabled: 'disabled' %>
+ <%= f.text_field :hexcode, disabled: "disabled" %>
<%= icon_for_color(@color) %>
</div>
</fieldset>
- <%= submit_tag t(:button_delete), class: 'button -primary' %>
- <%= link_to t(:button_cancel), colors_path, class: 'button' %>
+ <%= submit_tag t(:button_delete), class: "button -primary" %>
+ <%= link_to t(:button_cancel), colors_path, class: "button" %>
<% end %>
diff --git a/app/views/colors/edit.html.erb b/app/views/colors/edit.html.erb
index e47baa9915c..ea825c7c18e 100644
--- a/app/views/colors/edit.html.erb
+++ b/app/views/colors/edit.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @color,
url: color_url(@color),
- html: {method: 'put'}, as: :color do |f| %>
- <%= render partial: 'form',
+ html: {method: "put"}, as: :color do |f| %>
+ <%= render partial: "form",
locals: {f: f, color: @color} %>
<% end %>
diff --git a/app/views/colors/index.html.erb b/app/views/colors/index.html.erb
index a5f8633281b..e9e4f5235e2 100644
--- a/app/views/colors/index.html.erb
+++ b/app/views/colors/index.html.erb
@@ -53,11 +53,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="color--preview-patch-field">
<% @colors.each do |color| %>
<%= content_tag :div,
- class: 'color--preview-patch',
+ class: "color--preview-patch",
style: "background-color: #{color.hexcode}" do %>
<%= link_to color.name,
edit_color_path(color),
- class: color.bright? ? '-bright' : '-dark' %>
+ class: color.bright? ? "-bright" : "-dark" %>
<% end %>
<% end %>
</div>
diff --git a/app/views/colors/new.html.erb b/app/views/colors/new.html.erb
index dc5859eb5ea..1ef7c9b6a02 100644
--- a/app/views/colors/new.html.erb
+++ b/app/views/colors/new.html.erb
@@ -40,8 +40,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @color,
url: colors_url,
- html: {method: 'post'},
+ html: {method: "post"},
as: :color do |f| %>
- <%= render partial: 'form',
+ <%= render partial: "form",
locals: {f: f, color: @color} %>
<% end %>
diff --git a/app/views/common/_favicons.html.erb b/app/views/common/_favicons.html.erb
index 606ada14ec6..1b003b1f433 100644
--- a/app/views/common/_favicons.html.erb
+++ b/app/views/common/_favicons.html.erb
@@ -5,7 +5,7 @@
<% unless apply_custom_touch_icon? %>
<%# In the future we can add more sizes should we see 404 errors in the logs. %>
<%= favicon_link_tag OpenProject::CustomStyles::Design.apple_touch_icon_asset_path,
- rel: 'apple-touch-icon',
- type: 'image/png',
- sizes: '120x120' %>
+ rel: "apple-touch-icon",
+ type: "image/png",
+ sizes: "120x120" %>
<% end %>
diff --git a/app/views/common/_no_results.html.erb b/app/views/common/_no_results.html.erb
index 75c75f71264..59c13b87d74 100644
--- a/app/views/common/_no_results.html.erb
+++ b/app/views/common/_no_results.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="generic-table--no-results-container">
- <%= op_icon('icon-info1') %>
+ <%= op_icon("icon-info1") %>
<span class="generic-table--no-results-title">
<%= title_text %>
</span>
diff --git a/app/views/common/_tabs.html.erb b/app/views/common/_tabs.html.erb
index d451fb41ac0..d82296bc171 100644
--- a/app/views/common/_tabs.html.erb
+++ b/app/views/common/_tabs.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<opce-content-tabs></opce-content-tabs>
<% end %>
-<%= content_tag 'div',
+<%= content_tag "div",
render(partial: selected_tab[:partial], locals: { f: f, tab: selected_tab } ),
id: "tab-content-#{selected_tab[:name]}",
- class: 'tab-content' %>
+ class: "tab-content" %>
diff --git a/app/views/common/list_attachments.json.erb b/app/views/common/list_attachments.json.erb
index 2c600e32a3b..9824a8ff544 100644
--- a/app/views/common/list_attachments.json.erb
+++ b/app/views/common/list_attachments.json.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
.map { |a| { content_type: CGI::escape_html(a.content_type),
filename: CGI::escape_html(a.filename),
description: CGI::escape_html(a.description),
- url: url_for(controller: '/attachments', action: 'show', id: a, filename: a.filename),
+ url: url_for(controller: "/attachments", action: "show", id: a, filename: a.filename),
is_image: !!a.image? # doing the !! as image? for whatever reason returns null or a number
}
}.to_json.html_safe %>
diff --git a/app/views/common/upsale.html.erb b/app/views/common/upsale.html.erb
index d6b406721ae..230cbef3873 100644
--- a/app/views/common/upsale.html.erb
+++ b/app/views/common/upsale.html.erb
@@ -12,11 +12,11 @@
<h2><%= feature_title %></h2>
<% if feature_description.empty? %>
<p class="upsale--feature-reference">
- <%= t('js.admin.enterprise.upsale.benefits.description') %>
+ <%= t("js.admin.enterprise.upsale.benefits.description") %>
<br>
- <%= t('js.admin.enterprise.upsale.benefits.premium_features_text') %>
+ <%= t("js.admin.enterprise.upsale.benefits.premium_features_text") %>
<br>
- <%= t('js.admin.enterprise.upsale.benefits.professional_support_text') %>
+ <%= t("js.admin.enterprise.upsale.benefits.professional_support_text") %>
</p>
<% else %>
<p class="upsale--feature-reference">
@@ -36,25 +36,25 @@
<%= image_tag "enterprise-add-on.svg", class: "widget-box--teaser-image_default" %>
<% end %>
- <p> <%= feature_title %> <%= t('admin.enterprise.enterprise_info_html') %>
+ <p> <%= feature_title %> <%= t("admin.enterprise.enterprise_info_html") %>
<br>
- <%= t('admin.enterprise.upgrade_info') %>
+ <%= t("admin.enterprise.upgrade_info") %>
</p>
<%= link_to(OpenProject::Static::Links.links[:contact_us][:href],
- { class: 'button',
- aria: {label: t('admin.enterprise.buttons.contact')},
- target: '_blank',
- title: t('admin.enterprise.buttons.contact')}) do %>
- <span class="button--text"><%= t('admin.enterprise.buttons.contact') %></span>
+ { class: "button",
+ aria: {label: t("admin.enterprise.buttons.contact")},
+ target: "_blank",
+ title: t("admin.enterprise.buttons.contact")}) do %>
+ <span class="button--text"><%= t("admin.enterprise.buttons.contact") %></span>
<% end %>
<%= link_to(OpenProject::Static::Links.links[:pricing][:href],
- { class: 'button -primary',
- aria: {label: t('admin.enterprise.buttons.upgrade')},
- target: '_blank',
- title: t('admin.enterprise.buttons.upgrade')}) do %>
- <%= spot_icon('enterprise-addons') %>
- <span class="button--text"><%= t('admin.enterprise.buttons.upgrade') %></span>
+ { class: "button -primary",
+ aria: {label: t("admin.enterprise.buttons.upgrade")},
+ target: "_blank",
+ title: t("admin.enterprise.buttons.upgrade")}) do %>
+ <%= spot_icon("enterprise-addons") %>
+ <span class="button--text"><%= t("admin.enterprise.buttons.upgrade") %></span>
<% end %>
<opce-free-trial-button></opce-free-trial-button>
</div>
diff --git a/app/views/custom_actions/_form.html.erb b/app/views/custom_actions/_form.html.erb
index a92bd8331b9..c032531365d 100644
--- a/app/views/custom_actions/_form.html.erb
+++ b/app/views/custom_actions/_form.html.erb
@@ -2,29 +2,29 @@
@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' %>
+ <%= f.text_field :name, required: true, container_class: "-middle" %>
</div>
<div class="form--field">
- <%= f.text_area :description, container_class: '-middle' %>
+ <%= f.text_area :description, container_class: "-middle" %>
</div>
<fieldset class="form--fieldset" id="custom-actions-form--conditions">
<legend class="form--fieldset-legend">
- <%= t('custom_actions.conditions') %>
+ <%= t("custom_actions.conditions") %>
</legend>
<% @custom_action.all_conditions.each do |condition| %>
<div class="form--field">
- <%= styled_label_tag("custom_action_conditions_#{condition.key}", condition.human_name, class: '-top') %>
+ <%= styled_label_tag("custom_action_conditions_#{condition.key}", condition.human_name, class: "-top") %>
<% input_name = "custom_action[conditions][#{condition.key}]" %>
<div class="form--field-container">
<div class="form--select-container -middle">
<% if condition.key == :project %>
- <%= angular_component_tag 'opce-project-autocompleter',
+ <%= angular_component_tag "opce-project-autocompleter",
inputs: {
multiple: true,
- filters: [{ name: 'active', operator: '=', values: ['t'] }],
+ filters: [{ name: "active", operator: "=", values: ["t"] }],
resource: "projects",
inputName: input_name,
appendTo: "body",
@@ -32,7 +32,7 @@
inputValue: condition.values
} %>
<% else %>
- <%= angular_component_tag 'opce-autocompleter',
+ <%= angular_component_tag "opce-autocompleter",
inputs: {
multiple: true,
defaultData: false,
@@ -54,24 +54,24 @@
<fieldset class="form--fieldset" id="custom-actions-form--actions">
<legend class="form--fieldset-legend">
- <%= t('custom_actions.actions.name') %>
+ <%= t("custom_actions.actions.name") %>
</legend>
<div id="custom-actions-form--active-actions">
<% @custom_action.all_actions.each do |action| %>
<section class="hide-section" hidden data-section-name="<%= action.key %>">
<div class="form--field">
- <%= styled_label_tag("custom_action_actions_#{action.key}", action.human_name, class: '-top') %>
+ <%= styled_label_tag("custom_action_actions_#{action.key}", action.human_name, class: "-top") %>
<% input_name = "custom_action[actions][#{action.key}]" %>
<% if %i(associated_property boolean).include?(action.type) %>
<div class="form--field-container">
<div class="form--select-container -middle">
<% if action.key == :project %>
- <%= angular_component_tag 'opce-project-autocompleter',
+ <%= angular_component_tag "opce-project-autocompleter",
inputs: {
multiple: false,
- filters: [{ name: 'active', operator: '=', values: ['t'] }],
+ filters: [{ name: "active", operator: "=", values: ["t"] }],
resource: "projects",
inputName: input_name,
appendTo: "body",
@@ -79,7 +79,7 @@
inputValue: action.values.first
} %>
<% else %>
- <%= angular_component_tag 'opce-autocompleter',
+ <%= angular_component_tag "opce-autocompleter",
inputs: {
multiple: action.multi_value?,
defaultData: false,
@@ -97,37 +97,37 @@
<% elsif %i(date_property).include?(action.type) %>
<div class="form--field-container">
<% date = action.values.first %>
- <%= angular_component_tag 'opce-custom-date-action-admin',
+ <%= angular_component_tag "opce-custom-date-action-admin",
data: { 'field-value': date.try(:iso8601) || date, 'field-name': input_name } %>
</div>
<% elsif %i(string_property text_property).include?(action.type) %>
<div class="form--field-container">
<%= styled_text_field_tag input_name,
action.values,
- container_class: '-slim',
- step: 'any' %>
+ container_class: "-slim",
+ step: "any" %>
</div>
<% elsif %i(link_property).include?(action.type) %>
<div class="form--field-container">
<%= styled_url_field_tag input_name,
action.values,
- container_class: '-slim',
- step: 'any' %>
+ container_class: "-slim",
+ step: "any" %>
</div>
<% elsif action.type == :float_property %>
<div class="form--field-container">
<%= styled_number_field_tag input_name,
action.values,
- container_class: '-slim',
+ container_class: "-slim",
min: action.minimum,
max: action.maximum,
- step: 'any' %>
+ step: "any" %>
</div>
<% elsif action.type == :integer_property %>
<div class="form--field-container">
<%= styled_number_field_tag input_name,
action.values,
- container_class: '-slim',
+ container_class: "-slim",
min: action.minimum,
max: action.maximum,
step: 1 %>
diff --git a/app/views/custom_actions/edit.html.erb b/app/views/custom_actions/edit.html.erb
index 9005be612aa..b96cc09a72c 100644
--- a/app/views/custom_actions/edit.html.erb
+++ b/app/views/custom_actions/edit.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t('custom_actions.edit', name: @custom_action.name) %>
+<% html_title t(:label_administration), t("custom_actions.edit", name: @custom_action.name) %>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -42,6 +42,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for @custom_action %>
<%= labelled_tabular_form_for @custom_action do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/custom_actions/index.html.erb b/app/views/custom_actions/index.html.erb
index f391825bb69..2f6bd62f3e3 100644
--- a/app/views/custom_actions/index.html.erb
+++ b/app/views/custom_actions/index.html.erb
@@ -1,4 +1,4 @@
-<% html_title t(:label_administration), t('custom_actions.plural') -%>
+<% html_title t(:label_administration), t("custom_actions.plural") -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
diff --git a/app/views/custom_actions/new.html.erb b/app/views/custom_actions/new.html.erb
index 50b2cebfa62..d3a7e756a5d 100644
--- a/app/views/custom_actions/new.html.erb
+++ b/app/views/custom_actions/new.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t('custom_actions.new') %>
+<% html_title t(:label_administration), t("custom_actions.new") %>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -42,6 +42,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for @custom_action %>
<%= labelled_tabular_form_for @custom_action do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/custom_fields/_custom_options.html.erb b/app/views/custom_fields/_custom_options.html.erb
index 4f455482387..fda6c9120f1 100644
--- a/app/views/custom_fields/_custom_options.html.erb
+++ b/app/views/custom_fields/_custom_options.html.erb
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= t('activerecord.attributes.custom_value.value') %>
+ <%= t("activerecord.attributes.custom_value.value") %>
</span>
</div>
</div>
@@ -87,19 +87,19 @@ See COPYRIGHT and LICENSE files for more details.
<span class="dragula-handle icon icon-table icon-drag-handle"></span>
<%= co_f.hidden_field :id,
disabled:true,
- class: 'custom-option-id' %>
+ class: "custom-option-id" %>
<%= co_f.text_field :value,
disabled: true,
- container_class: 'custom-option-value',
+ container_class: "custom-option-value",
no_label: true %>
</td>
<td>
<%= co_f.check_box :default_value,
disabled: true,
- container_class: 'custom-option-default-value',
+ container_class: "custom-option-default-value",
data: {
- 'admin--custom-fields-target': 'customOptionDefaults',
- action: 'admin--custom-fields#uncheckOtherDefaults'
+ 'admin--custom-fields-target': "customOptionDefaults",
+ action: "admin--custom-fields#uncheckOtherDefaults"
},
no_label: true %>
</td>
@@ -111,7 +111,7 @@ See COPYRIGHT and LICENSE files for more details.
href="#"
class="sort-up-custom-option"
data-action="admin--custom-fields#moveRowToTheTop">
- <%= op_icon('icon-context icon-sort-up icon-small') %>
+ <%= op_icon("icon-context icon-sort-up icon-small") %>
</a>
<a
title="<%= t(:label_sort_higher) %>"
@@ -119,14 +119,14 @@ See COPYRIGHT and LICENSE files for more details.
href="#"
class="move-up-custom-option"
data-action="admin--custom-fields#moveRowUp">
- <%= op_icon('icon-context icon-arrow-up2 icon-small') %>
+ <%= op_icon("icon-context icon-arrow-up2 icon-small") %>
</a>
<a
title="<%= t(:label_sort_lower) %>"
rel="nofollow" href="#"
class="move-down-custom-option"
data-action="admin--custom-fields#moveRowDown">
- <%= op_icon('icon-context icon-arrow-down2 icon-small') %>
+ <%= op_icon("icon-context icon-arrow-down2 icon-small") %>
</a>
<a
title="<%= t(:label_sort_lowest) %>"
@@ -134,19 +134,19 @@ See COPYRIGHT and LICENSE files for more details.
href="#"
class="sort-down-custom-option"
data-action="admin--custom-fields#moveRowToTheBottom">
- <%= op_icon('icon-context icon-sort-down icon-small') %>
+ <%= op_icon("icon-context icon-sort-down icon-small") %>
</a>
</span>
</td>
<td>
- <%= link_to '',
+ <%= link_to "",
delete_option_of_custom_field_path(id: custom_field.id || 0, option_id: custom_option.id || 0),
method: :delete,
data: {
- action: 'admin--custom-fields#removeOption',
+ action: "admin--custom-fields#removeOption",
confirm: t(:'custom_fields.confirm_destroy_option')
},
- class: 'icon icon-delete delete-custom-option',
+ class: "icon icon-delete delete-custom-option",
title: t(:button_delete) %>
</td>
</tr>
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb
index 0dbe66aad72..2875b174942 100644
--- a/app/views/custom_fields/_form.html.erb
+++ b/app/views/custom_fields/_form.html.erb
@@ -42,18 +42,18 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -required">
<%= f.select :custom_field_section_id,
ProjectCustomFieldSection.all.collect { |s| [s.name, s.id] },
- { container_class: '-slim' },
+ { container_class: "-slim" },
required: true %>
</div>
<% end %>
<div class="form--field">
<%= f.select :field_format,
custom_field_formats_for_select(@custom_field),
- { container_class: '-slim' },
+ { container_class: "-slim" },
disabled: !@custom_field.new_record?,
data: {
- action: 'admin--custom-fields#formatChanged',
- 'admin--custom-fields-target': 'format'
+ action: "admin--custom-fields#formatChanged",
+ 'admin--custom-fields-target': "format"
} %>
<div class="form--field-extra-actions" <%= format_dependent.attributes(:enterpriseBanner) %>>
<%= angular_component_tag "opce-enterprise-banner",
@@ -75,11 +75,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--grouping-row">
<div class="form--field -wide-label">
<%= f.number_field :min_length,
- container_class: '-xslim' %>
+ container_class: "-xslim" %>
</div>
<div class="form--field -wide-label">
<%= f.number_field :max_length,
- container_class: '-xslim' %>
+ container_class: "-xslim" %>
</div>
</div>
</div>
@@ -87,7 +87,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field" <%= format_dependent.attributes(:regexp) %>>
<%= f.text_field :regexp,
size: 50,
- container_class: '-wide' %>
+ container_class: "-wide" %>
<span class="form--field-instructions">
<%= t(:text_regexp_info) %>
</span>
@@ -107,10 +107,10 @@ See COPYRIGHT and LICENSE files for more details.
<% if @custom_field.persisted? %>
<div class="form--toolbar">
<span class="form--toolbar-item">
- <%= link_to t('custom_fields.reorder_alphabetical'),
+ <%= link_to t("custom_fields.reorder_alphabetical"),
{ action: :reorder_alphabetical },
method: :post,
- data: { confirm: t('custom_fields.reorder_confirmation') } %>
+ data: { confirm: t("custom_fields.reorder_confirmation") } %>
</span>
</div>
<% end %>
@@ -137,26 +137,26 @@ See COPYRIGHT and LICENSE files for more details.
<% if @custom_field.new_record? || !%w[text bool].include?(@custom_field.field_format) %>
<div class="form--field" id="default_value_text" <%= format_dependent.attributes(:defaultText) %>>
<%= f.text_field :default_value,
- id: 'custom_fields_default_value_text',
- for: 'custom_fields_default_value_text',
- container_class: '-wide' %>
+ id: "custom_fields_default_value_text",
+ for: "custom_fields_default_value_text",
+ container_class: "-wide" %>
</div>
<% end %>
<% if @custom_field.new_record? || @custom_field.field_format == 'bool' %>
<div class="form--field" <%= format_dependent.attributes(:defaultBool) %>>
<%= f.check_box :default_value,
- id: 'custom_fields_default_value_bool',
- for: 'custom_fields_default_value_bool' %>
+ id: "custom_fields_default_value_bool",
+ for: "custom_fields_default_value_bool" %>
</div>
<% end %>
<% if @custom_field.new_record? || @custom_field.field_format == 'text' %>
<div class="form--field" <%= format_dependent.attributes(:defaultLongText) %>>
<%= f.text_area :default_value,
- id: 'custom_fields_default_value_longtext',
- for: 'custom_fields_default_value_longtext',
+ id: "custom_fields_default_value_longtext",
+ for: "custom_fields_default_value_longtext",
cols: 100,
rows: 20,
- class: 'wiki-edit',
+ class: "wiki-edit",
macros: "none",
with_text_formatting: true %>
</div>
@@ -170,25 +170,25 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= f.check_box :is_required %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.is_required') %></p>
+ <p><%= t("custom_fields.instructions.is_required") %></p>
</div>
</div>
<div class="form--field">
<%= f.check_box :is_for_all %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.is_for_all') %></p>
+ <p><%= t("custom_fields.instructions.is_for_all") %></p>
</div>
</div>
<div class="form--field">
<%= f.check_box :is_filter %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.is_filter') %></p>
+ <p><%= t("custom_fields.instructions.is_filter") %></p>
</div>
</div>
<div class="form--field" <%= format_dependent.attributes(:searchable) %>>
<%= f.check_box :searchable %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.searchable') %></p>
+ <p><%= t("custom_fields.instructions.searchable") %></p>
</div>
</div>
<div class="form--field" <%= format_dependent.attributes(:textOrientation) %>>
@@ -198,52 +198,52 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= f.check_box :is_required %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.is_required') %></p>
+ <p><%= t("custom_fields.instructions.is_required") %></p>
</div>
</div>
<div class="form--field">
<%= f.check_box :admin_only %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.admin_only') %></p>
+ <p><%= t("custom_fields.instructions.admin_only") %></p>
</div>
</div>
<div class="form--field">
<%= f.check_box :editable %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.editable') %></p>
+ <p><%= t("custom_fields.instructions.editable") %></p>
</div>
</div>
<% when "ProjectCustomField" %>
<div class="form--field">
<%= f.check_box :is_required %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.is_required_for_project') %></p>
+ <p><%= t("custom_fields.instructions.is_required_for_project") %></p>
</div>
</div>
<div class="form--field">
<%= f.check_box :admin_only %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.admin_only') %></p>
+ <p><%= t("custom_fields.instructions.admin_only") %></p>
</div>
</div>
<div class="form--field" <%= format_dependent.attributes(:searchable) %>>
<%= f.check_box :searchable %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.searchable_for_project') %></p>
+ <p><%= t("custom_fields.instructions.searchable_for_project") %></p>
</div>
</div>
<% when "TimeEntryCustomField" %>
<div class="form--field">
<%= f.check_box :is_required %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.is_required') %></p>
+ <p><%= t("custom_fields.instructions.is_required") %></p>
</div>
</div>
<% else %>
<div class="form--field">
<%= f.check_box :is_required %>
<div class="form--field-instructions">
- <p><%= t('custom_fields.instructions.is_required') %></p>
+ <p><%= t("custom_fields.instructions.is_required") %></p>
</div>
</div>
<% end %>
diff --git a/app/views/custom_fields/_tab.html.erb b/app/views/custom_fields/_tab.html.erb
index daf1cc95df3..591ee13d768 100644
--- a/app/views/custom_fields/_tab.html.erb
+++ b/app/views/custom_fields/_tab.html.erb
@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if tab[:name] == 'WorkPackageCustomField' %>
<div class="op-toast -info">
<div class="op-toast--content">
- <p><%= t('text_custom_field_hint_activate_per_project_and_type') %></p>
+ <p><%= t("text_custom_field_hint_activate_per_project_and_type") %></p>
</div>
</div>
<% end %>
@@ -103,7 +103,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= t('custom_fields.contained_in_type') %>
+ <%= t("custom_fields.contained_in_type") %>
</span>
</div>
</div>
@@ -146,15 +146,15 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to t(:label_custom_field_add_no_type), types_path %>
</span>
<% end %>
- <%= safe_join type_links, ', '.html_safe %>
+ <%= safe_join type_links, ", ".html_safe %>
</td>
<% end %>
<% unless tab[:name] == 'WorkPackageCustomField' %>
- <td><%= reorder_links('custom_field', { action: 'update', id: custom_field, back_url: custom_fields_path(tab: tab[:name]) }, method: :put) %></td>
+ <td><%= reorder_links("custom_field", { action: "update", id: custom_field, back_url: custom_fields_path(tab: tab[:name]) }, method: :put) %></td>
<% end %>
<td class="buttons">
<%= link_to(
- op_icon('icon icon-delete'),
+ op_icon("icon icon-delete"),
(custom_field_path(custom_field)),
method: :delete,
data: { confirm: I18n.t(:text_are_you_sure) },
diff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erb
index aadb0a0d261..509cbbb7c5b 100644
--- a/app/views/custom_fields/new.html.erb
+++ b/app/views/custom_fields/new.html.erb
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= error_messages_for 'custom_field' %>
+<%= error_messages_for "custom_field" %>
<% content_controller "admin--custom-fields",
dynamic: true,
@@ -48,12 +48,12 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @custom_field, as: :custom_field,
url: custom_fields_path,
- html: {id: 'custom_field_form', class: "-wide-labels"} do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= hidden_field_tag 'type', @custom_field.type %>
+ html: {id: "custom_field_form", class: "-wide-labels"} do |f| %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= hidden_field_tag "type", @custom_field.type %>
<%= styled_button_tag t(:button_save),
- class: '-primary -with-icon icon-checkmark',
+ class: "-primary -with-icon icon-checkmark",
data: {
- 'admin--custom-fields-target': 'submitButton'
+ 'admin--custom-fields-target': "submitButton"
} %>
<% end %>
diff --git a/app/views/custom_styles/_branding.html.erb b/app/views/custom_styles/_branding.html.erb
index 6225aa0e874..03c77b0ad98 100644
--- a/app/views/custom_styles/_branding.html.erb
+++ b/app/views/custom_styles/_branding.html.erb
@@ -34,11 +34,11 @@ See COPYRIGHT and LICENSE files for more details.
<% if @custom_style.id && @custom_style.logo.present? %>
<div>
<%# Don't use image_tag here due to asset host %>
- <%= tag('img', src: custom_style_logo_path(digest: @custom_style.digest, filename: @custom_style.logo_identifier), class: 'custom-logo-preview') %>
+ <%= tag("img", src: custom_style_logo_path(digest: @custom_style.digest, filename: @custom_style.logo_identifier), class: "custom-logo-preview") %>
<%= link_to t(:button_delete),
custom_style_logo_delete_path,
method: :delete,
- class: 'icon icon-delete confirm-form-submit' %>
+ class: "icon icon-delete confirm-form-submit" %>
</div>
<% end %>
<div class="grid-block">
@@ -49,7 +49,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="form--field-instructions">
- <%= t('text_custom_logo_instructions') %>
+ <%= t("text_custom_logo_instructions") %>
</div>
</div>
</div>
@@ -65,11 +65,11 @@ See COPYRIGHT and LICENSE files for more details.
<% if @custom_style.id && @custom_style.favicon.present? %>
<div>
- <%= tag('img', src: custom_style_favicon_path(digest: @custom_style.digest, filename: @custom_style.favicon_identifier), class: 'custom-favicon-preview') %>
+ <%= tag("img", src: custom_style_favicon_path(digest: @custom_style.digest, filename: @custom_style.favicon_identifier), class: "custom-favicon-preview") %>
<%= link_to t(:button_delete),
custom_style_favicon_delete_path,
method: :delete,
- class: 'icon icon-delete confirm-form-submit' %>
+ class: "icon icon-delete confirm-form-submit" %>
</div>
<% end %>
<div class="grid-block">
@@ -80,7 +80,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="form--field-instructions">
- <%= t('text_custom_favicon_instructions') %>
+ <%= t("text_custom_favicon_instructions") %>
</div>
</div>
</div>
@@ -94,11 +94,11 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= I18n.t(:label_custom_touch_icon) %></legend>
<% if @custom_style.id && @custom_style.touch_icon.present? %>
<div>
- <%= tag('img', src: custom_style_touch_icon_path(digest: @custom_style.digest, filename: @custom_style.touch_icon_identifier), class: 'custom-touch-icon-preview') %>
+ <%= tag("img", src: custom_style_touch_icon_path(digest: @custom_style.digest, filename: @custom_style.touch_icon_identifier), class: "custom-touch-icon-preview") %>
<%= link_to t(:button_delete),
custom_style_touch_icon_delete_path,
method: :delete,
- class: 'icon icon-delete confirm-form-submit' %>
+ class: "icon icon-delete confirm-form-submit" %>
</div>
<% end %>
<div class="grid-block">
@@ -109,7 +109,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="form--field-instructions">
- <%= t('text_custom_touch_icon_instructions') %>
+ <%= t("text_custom_touch_icon_instructions") %>
</div>
</div>
</div>
diff --git a/app/views/custom_styles/_interface.html.erb b/app/views/custom_styles/_interface.html.erb
index 8127363e239..73338df555a 100644
--- a/app/views/custom_styles/_interface.html.erb
+++ b/app/views/custom_styles/_interface.html.erb
@@ -2,7 +2,7 @@
<section class="form--section">
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= I18n.t(:label_interface_colors) %></legend>
- <p> <%= t('label_interface_colors_description') %> </p>
+ <p> <%= t("label_interface_colors_description") %> </p>
<% DesignColor.setables.each do |design_color| %>
<div class="form--field -required">
<label class="form--label"><%= I18n.t("admin.custom_styles.colors.#{design_color.variable}") %>:</label>
@@ -15,7 +15,7 @@
<span class="form--text-field-container">
<%= styled_text_field_tag "design_colors[]" + design_color.variable,
design_color.hexcode,
- class: 'design-color--variable-input',
+ class: "design-color--variable-input",
data: { 'variable-name': design_color.variable } %>
</span>
</span>
diff --git a/app/views/custom_styles/_pdf_export_styles.html.erb b/app/views/custom_styles/_pdf_export_styles.html.erb
index 59f6eb8065e..f2c54911aba 100644
--- a/app/views/custom_styles/_pdf_export_styles.html.erb
+++ b/app/views/custom_styles/_pdf_export_styles.html.erb
@@ -33,11 +33,11 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= I18n.t(:label_custom_export_logo) %></legend>
<% if @custom_style.id && @custom_style.export_logo.present? %>
<div>
- <%= tag('img', src: custom_style_export_logo_path(digest: @custom_style.digest, filename: @custom_style.export_logo_identifier), class: 'custom-export-logo-preview') %>
+ <%= tag("img", src: custom_style_export_logo_path(digest: @custom_style.digest, filename: @custom_style.export_logo_identifier), class: "custom-export-logo-preview") %>
<%= link_to t(:button_delete),
custom_style_export_logo_delete_path,
method: :delete,
- class: 'icon icon-delete confirm-form-submit' %>
+ class: "icon icon-delete confirm-form-submit" %>
</div>
<% end %>
<div class="grid-block">
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="form--field-instructions">
- <%= t('text_custom_export_logo_instructions') %>
+ <%= t("text_custom_export_logo_instructions") %>
</div>
</div>
</div>
@@ -65,11 +65,11 @@ See COPYRIGHT and LICENSE files for more details.
<% if @custom_style.id && @custom_style.export_cover.present? %>
<div>
- <%= tag('img', src: custom_style_export_cover_path(digest: @custom_style.digest, filename: @custom_style.export_cover_identifier), class: 'custom-export-cover-preview') %>
+ <%= tag("img", src: custom_style_export_cover_path(digest: @custom_style.digest, filename: @custom_style.export_cover_identifier), class: "custom-export-cover-preview") %>
<%= link_to t(:button_delete),
custom_style_export_cover_delete_path,
method: :delete,
- class: 'icon icon-delete confirm-form-submit' %>
+ class: "icon icon-delete confirm-form-submit" %>
</div>
<% end %>
<div class="grid-block">
@@ -80,7 +80,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="form--field-instructions">
- <%= t('text_custom_export_cover_instructions') %>
+ <%= t("text_custom_export_cover_instructions") %>
</div>
</div>
</div>
@@ -96,8 +96,8 @@ See COPYRIGHT and LICENSE files for more details.
<label class="form--label"><%= I18n.t(:label_custom_export_cover_text_color) %>:</label>
<span class="form--field-container">
<div class="form--field-affix">
- <% design_color_name = 'export_cover_text_color' %>
- <% design_color_hex = @custom_style.export_cover_text_color.present? ? @custom_style.export_cover_text_color : '' %>
+ <% design_color_name = "export_cover_text_color" %>
+ <% design_color_hex = @custom_style.export_cover_text_color.present? ? @custom_style.export_cover_text_color : "" %>
<%= icon_for_color(OpenStruct.new(variable: design_color_name,
hexcode: design_color_hex),
data: { target: "#" + design_color_name }) %>
@@ -105,7 +105,7 @@ See COPYRIGHT and LICENSE files for more details.
<span class="form--text-field-container">
<%= styled_text_field_tag design_color_name,
design_color_hex,
- placeholder: '#000' %>
+ placeholder: "#000" %>
</span>
</span>
<div class="form--field-instructions">
diff --git a/app/views/custom_styles/show.html.erb b/app/views/custom_styles/show.html.erb
index 39ea7d47c63..6f2b814d2a1 100644
--- a/app/views/custom_styles/show.html.erb
+++ b/app/views/custom_styles/show.html.erb
@@ -29,21 +29,21 @@ See COPYRIGHT and LICENSE files for more details.
<%= render(Admin::DesignHeaderComponent.new(tabs: design_tabs)) %>
-<%= error_messages_for 'custom_style' %>
+<%= error_messages_for "custom_style" %>
<%= form_tag update_design_themes_path, method: :post, class: "form" do %>
<section class="form--section">
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= I18n.t('admin.custom_styles.color_theme') %></legend>
+ <legend class="form--fieldset-legend"><%= I18n.t("admin.custom_styles.color_theme") %></legend>
<div class="form--field">
<div class="form--field-container">
- <%= styled_select_tag 'theme',
+ <%= styled_select_tag "theme",
options_for_select(@theme_options, @current_theme),
- container_class: '-slim' %>
+ container_class: "-slim" %>
</div>
</div>
<%= styled_button_tag t(:button_save),
- data: { test_selector: "color-theme-button", confirm: (t('admin.custom_styles.theme_warning') unless @current_theme.present?)} %>
+ data: { test_selector: "color-theme-button", confirm: (t("admin.custom_styles.theme_warning") unless @current_theme.present?)} %>
</fieldset>
</section>
<% end %>
diff --git a/app/views/custom_styles/upsale.html.erb b/app/views/custom_styles/upsale.html.erb
index 97d7f96c11c..474061c4038 100644
--- a/app/views/custom_styles/upsale.html.erb
+++ b/app/views/custom_styles/upsale.html.erb
@@ -29,11 +29,11 @@ See COPYRIGHT and LICENSE files for more details.
<% html_title t(:label_administration), t(:label_custom_style) %>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
feature_title: t(:label_custom_style),
- feature_description: t('admin.custom_styles.customize'),
- feature_more_info: t('admin.custom_styles.enterprise_more_info'),
- feature_reference: 'enterprise-custom-styles',
- feature_video: 'enterprise/custom-design.mp4'
+ feature_description: t("admin.custom_styles.customize"),
+ feature_more_info: t("admin.custom_styles.enterprise_more_info"),
+ feature_reference: "enterprise-custom-styles",
+ feature_video: "enterprise/custom-design.mp4"
} %>
diff --git a/app/views/customizable/_form.html.erb b/app/views/customizable/_form.html.erb
index 1a99e0dc0b7..9a44108f2fe 100644
--- a/app/views/customizable/_form.html.erb
+++ b/app/views/customizable/_form.html.erb
@@ -27,8 +27,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% input_size = local_assigns[:input_size] || '-wide' %>
-<% wide_labels = local_assigns[:wide_labels] ? '-wide-labels' : '' %>
+<% input_size = local_assigns[:input_size] || "-wide" %>
+<% wide_labels = local_assigns[:wide_labels] ? "-wide-labels" : "" %>
<% help_text = local_assigns[:help_text] %>
<% form
@@ -45,15 +45,15 @@ See COPYRIGHT and LICENSE files for more details.
<%= form.fields_for_custom_fields :custom_field_values, form.object, form_options do |cf_form| %>
<% show_required = custom_field.is_required? && !custom_field.boolean? %>
<%= content_tag :div,
- class: ['form--field',
+ class: ["form--field",
custom_field.attribute_name,
- (show_required ? '-required' : ''),
+ (show_required ? "-required" : ""),
wide_labels] do
container_class = case custom_field.field_format
- when 'text'
- '-xxwide'
- when 'date'
- '-xslim'
+ when "text"
+ "-xxwide"
+ when "date"
+ "-xslim"
else
input_size
end
diff --git a/app/views/digest_mailer/work_packages.html.erb b/app/views/digest_mailer/work_packages.html.erb
index 32965e9394d..42fc35d0001 100644
--- a/app/views/digest_mailer/work_packages.html.erb
+++ b/app/views/digest_mailer/work_packages.html.erb
@@ -1,14 +1,14 @@
<table <%= placeholder_table_styles %>>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
-<table <%= placeholder_table_styles(width: '100%', style: 'width:100%;max-width:700px;') %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px;") %>>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
- <%= render partial: 'mailer/mailer_header',
+ <%= render partial: "mailer/mailer_header",
locals: {
summary: "#{I18n.t(:'mail.digests.you_have')} #{digest_summary_text(@notification_ids.length, @mentioned_count)}",
button_href: notifications_url,
@@ -17,7 +17,7 @@
} %>
<% @aggregated_notifications.first(DigestMailer::MAX_SHOWN_WORK_PACKAGES).each do |work_package, notifications_by_work_package| %>
- <%= render layout: 'mailer/notification_row',
+ <%= render layout: "mailer/notification_row",
locals: {
work_package: work_package,
unique_reasons: unique_reasons_of_notifications(notifications_by_work_package),
@@ -40,7 +40,7 @@
<% end %>
<% end %>
- <%= render layout: 'mailer/notification_settings_table',
+ <%= render layout: "mailer/notification_settings_table",
locals: {
button_url: my_reminders_url,
button_text: I18n.t(:'mail.notification.settings')
@@ -51,11 +51,11 @@
<td>
<span style="font-size:14px;">
<% number_of_overflowing_work_packages = @aggregated_notifications.length - DigestMailer::MAX_SHOWN_WORK_PACKAGES %>
- <% count = number_of_overflowing_work_packages === 1 ? 'one' : 'other' %>
+ <% count = number_of_overflowing_work_packages === 1 ? "one" : "other" %>
<%= I18n.t(:"mail.work_packages.more_to_see.#{count}", count: number_of_overflowing_work_packages) %>
</span>
</td>
- <%= placeholder_cell('10px', vertical: true) %>
+ <%= placeholder_cell("10px", vertical: true) %>
<td>
<table <%= placeholder_table_styles %>>
<tr>
@@ -76,10 +76,10 @@
<table>
<tr>
- <%= placeholder_cell('40px', vertical: false) %>
+ <%= placeholder_cell("40px", vertical: false) %>
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
</table>
diff --git a/app/views/digest_mailer/work_packages.text.erb b/app/views/digest_mailer/work_packages.text.erb
index 8ea6769d5c8..a67417edcfc 100644
--- a/app/views/digest_mailer/work_packages.text.erb
+++ b/app/views/digest_mailer/work_packages.text.erb
@@ -4,12 +4,12 @@
<% @aggregated_notifications.first(DigestMailer::MAX_SHOWN_WORK_PACKAGES).each do | work_package, notifications_by_work_package| %>
- <%= "=" * (('# ' + work_package.id.to_s + work_package.subject).length + 4) %>
+ <%= "=" * (("# " + work_package.id.to_s + work_package.subject).length + 4) %>
= #<%= work_package.id %> <%= work_package.subject %> =
- <%= "=" * (('# ' + work_package.id.to_s + work_package.subject).length + 4) %>
+ <%= "=" * (("# " + work_package.id.to_s + work_package.subject).length + 4) %>
<% unique_reasons = unique_reasons_of_notifications(notifications_by_work_package) %>
- <% unique_reasons.each_with_index do |reason, index| %><%= I18n.t(:"mail.work_packages.reason.#{reason || :unknown}", default: '-') %><%= ', ' unless unique_reasons.size-1 == index %><% end %>: <% if notifications_by_work_package.first.date_alert? %>
+ <% unique_reasons.each_with_index do |reason, index| %><%= I18n.t(:"mail.work_packages.reason.#{reason || :unknown}", default: "-") %><%= ", " unless unique_reasons.size-1 == index %><% end %>: <% if notifications_by_work_package.first.date_alert? %>
<%= date_alerts_text(notifications_by_work_package.first, html: false) %>
<% else %>
<%= digest_notification_timestamp_text(notifications_by_work_package.first, html: false) %>
@@ -22,6 +22,6 @@
<% if @aggregated_notifications.length > DigestMailer::MAX_SHOWN_WORK_PACKAGES %>
<% number_of_overflowing_work_packages = @aggregated_notifications.length - DigestMailer::MAX_SHOWN_WORK_PACKAGES %>
-<% count = number_of_overflowing_work_packages === 1 ? 'one' : 'other' %>
+<% count = number_of_overflowing_work_packages === 1 ? "one" : "other" %>
<%= I18n.t(:"mail.work_packages.more_to_see.#{count}", count: number_of_overflowing_work_packages) %>
<% end %>
diff --git a/app/views/doorkeeper/authorizations/error.html.erb b/app/views/doorkeeper/authorizations/error.html.erb
index 4cd3adab9c5..9ef1f5e414b 100644
--- a/app/views/doorkeeper/authorizations/error.html.erb
+++ b/app/views/doorkeeper/authorizations/error.html.erb
@@ -1,7 +1,7 @@
<div class="op-toast -error">
<div class="op-toast--content">
<p>
- <strong><%= t('oauth.authorization_error') %></strong>
+ <strong><%= t("oauth.authorization_error") %></strong>
<br>
<%= @pre_auth.error_response.body[:error_description] %></pre>
</p>
diff --git a/app/views/doorkeeper/authorizations/new.html.erb b/app/views/doorkeeper/authorizations/new.html.erb
index 28775ba9925..3c689a19a73 100644
--- a/app/views/doorkeeper/authorizations/new.html.erb
+++ b/app/views/doorkeeper/authorizations/new.html.erb
@@ -2,15 +2,15 @@
<% user_login = h(current_user.login) %>
<div id="login-form" class="form -bordered">
- <h2><%= t('oauth.authorization_dialog.title', application_name: client_name) %></h2>
+ <h2><%= t("oauth.authorization_dialog.title", application_name: client_name) %></h2>
<p>
- <%= t('oauth.authorization_dialog.prompt_html', application_name: client_name, login: user_login) %>
+ <%= t("oauth.authorization_dialog.prompt_html", application_name: client_name, login: user_login) %>
</p>
<% if @pre_auth.scopes.count > 0 %>
<div id="oauth-permissions">
<p>
- <%= t('oauth.authorization_dialog.wants_to_access_html', login: h(current_user.login)) %>
+ <%= t("oauth.authorization_dialog.wants_to_access_html", login: h(current_user.login)) %>
</p>
<ul class="text-info">
@@ -34,7 +34,7 @@
<%= hidden_field_tag :scope, @pre_auth.scope %>
<%= hidden_field_tag :code_challenge, @pre_auth.code_challenge %>
<%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method %>
- <%= submit_tag t('oauth.authorization_dialog.authorize'), class: "button -primary -expand" %>
+ <%= submit_tag t("oauth.authorization_dialog.authorize"), class: "button -primary -expand" %>
<% end %>
<br>
<%= form_tag oauth_authorization_path, method: :delete, data: { turbo: false } do %>
@@ -45,7 +45,7 @@
<%= hidden_field_tag :scope, @pre_auth.scope %>
<%= hidden_field_tag :code_challenge, @pre_auth.code_challenge %>
<%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method %>
- <%= submit_tag t('oauth.authorization_dialog.cancel'), class: "button--link -expand" %>
+ <%= submit_tag t("oauth.authorization_dialog.cancel"), class: "button--link -expand" %>
<% end %>
</div>
</div>
diff --git a/app/views/doorkeeper/authorizations/show.html.erb b/app/views/doorkeeper/authorizations/show.html.erb
index f4d66101939..9a8c4f66ff9 100644
--- a/app/views/doorkeeper/authorizations/show.html.erb
+++ b/app/views/doorkeeper/authorizations/show.html.erb
@@ -1,5 +1,5 @@
<header class="page-header">
- <h1><%= t('.title') %>:</h1>
+ <h1><%= t(".title") %>:</h1>
</header>
<main role="main">
diff --git a/app/views/enterprises/_current.html.erb b/app/views/enterprises/_current.html.erb
index 765889e4669..58f0e249bc8 100644
--- a/app/views/enterprises/_current.html.erb
+++ b/app/views/enterprises/_current.html.erb
@@ -3,9 +3,9 @@
data-email="<%= @current_token.mail %>"
data-company="<%= @current_token.try(:company) %>"
data-domain="<%= @current_token.try(:domain) %>"
- data-user-count="<%= @current_token.restrictions.nil? ? t('js.admin.enterprise.upsale.unlimited') : @current_token.restrictions[:active_user_count] %>"
+ data-user-count="<%= @current_token.restrictions.nil? ? t("js.admin.enterprise.upsale.unlimited") : @current_token.restrictions[:active_user_count] %>"
data-starts-at="<%= format_date @current_token.starts_at %>"
- data-expires-at="<%= (!@current_token.will_expire?) ? t('js.admin.enterprise.upsale.unlimited') : (format_date @current_token.expires_at) %>"
+ data-expires-at="<%= (!@current_token.will_expire?) ? t("js.admin.enterprise.upsale.unlimited") : (format_date @current_token.expires_at) %>"
data-is-expired="<%= @current_token.expired?(reprieve: false) %>"
data-reprieve-days-left="<%= @current_token.reprieve_days_left %>">
</opce-enterprise-active-saved-trial>
@@ -14,13 +14,13 @@
method: :delete,
data: augmented_confirmation_dialog(
danger_zone: true,
- text: t('admin.enterprise.delete_token_modal.text'),
- title: t('admin.enterprise.delete_token_modal.title'),
+ text: t("admin.enterprise.delete_token_modal.text"),
+ title: t("admin.enterprise.delete_token_modal.title"),
button_continue: t(:button_delete),
- icon_continue: 'delete'
+ icon_continue: "delete"
)
) do %>
<%= styled_button_tag t(:button_delete),
method: :delete,
- class: '-with-icon icon-delete' %>
+ class: "-with-icon icon-delete" %>
<% end %>
diff --git a/app/views/enterprises/_info.html.erb b/app/views/enterprises/_info.html.erb
index c4462c30a8c..28e409b7e46 100644
--- a/app/views/enterprises/_info.html.erb
+++ b/app/views/enterprises/_info.html.erb
@@ -41,31 +41,31 @@ See COPYRIGHT and LICENSE files for more details.
class="button -highlight-inverted"
data-cb-type="checkout"
data-cb-plan-id="<%= OpenProject::Configuration.enterprise_plan %>">
- <%= t('admin.enterprise.book_now') %>
+ <%= t("admin.enterprise.book_now") %>
</a>
<% quote_link = OpenProject::Static::Links.links.fetch :upsale_get_quote %>
<%= link_to t(quote_link[:label]),
quote_link[:href],
- target: '_blank',
- class: 'button -highlight-inverted' %>
+ target: "_blank",
+ class: "button -highlight-inverted" %>
</div>
<%= static_link_to :contact %>
</div>
<div class="info-boxes upsale-benefits">
- <h3 class="info-boxes--title -no-border"><%= t('js.admin.enterprise.upsale.benefits.description') %></h3>
+ <h3 class="info-boxes--title -no-border"><%= t("js.admin.enterprise.upsale.benefits.description") %></h3>
<div class="info-boxes--container">
<div class="info-boxes--item">
<%= image_tag "installation_alerts.svg",
class: "info-boxes--teaser-image",
- title: t('js.admin.enterprise.upsale.benefits.installation'),
- alt: t('js.admin.enterprise.upsale.benefits.installation') %>
- <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.installation') %></h4>
+ title: t("js.admin.enterprise.upsale.benefits.installation"),
+ alt: t("js.admin.enterprise.upsale.benefits.installation") %>
+ <h4 class="info-boxes--item-title"><%= t("js.admin.enterprise.upsale.benefits.installation") %></h4>
<div class="info-boxes--item-content">
- <p><%= t('js.admin.enterprise.upsale.benefits.installation_text') %></p>
+ <p><%= t("js.admin.enterprise.upsale.benefits.installation_text") %></p>
<ul class="widget-box--arrow-links">
<li>
<%= static_link_to :upsale_benefits_installation %>
@@ -76,11 +76,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="info-boxes--item">
<%= image_tag "professional_support.svg",
class: "info-boxes--teaser-image",
- title: t('js.admin.enterprise.upsale.benefits.professional_support'),
- alt: t('js.admin.enterprise.upsale.benefits.professional_support') %>
- <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.professional_support') %></h4>
+ title: t("js.admin.enterprise.upsale.benefits.professional_support"),
+ alt: t("js.admin.enterprise.upsale.benefits.professional_support") %>
+ <h4 class="info-boxes--item-title"><%= t("js.admin.enterprise.upsale.benefits.professional_support") %></h4>
<div class="info-boxes--item-content">
- <p><%= t('js.admin.enterprise.upsale.benefits.professional_support_text') %></p>
+ <p><%= t("js.admin.enterprise.upsale.benefits.professional_support_text") %></p>
<ul class="widget-box--arrow-links">
<li>
<%= static_link_to :upsale_benefits_support %>
@@ -91,11 +91,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="info-boxes--item">
<%= image_tag "enterprise-add-on.svg",
class: "info-boxes--teaser-image",
- title: t('js.admin.enterprise.upsale.benefits.premium_features'),
- alt: t('js.admin.enterprise.upsale.benefits.premium_features') %>
- <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.premium_features') %></h4>
+ title: t("js.admin.enterprise.upsale.benefits.premium_features"),
+ alt: t("js.admin.enterprise.upsale.benefits.premium_features") %>
+ <h4 class="info-boxes--item-title"><%= t("js.admin.enterprise.upsale.benefits.premium_features") %></h4>
<div class="info-boxes--item-content">
- <p><%= t('js.admin.enterprise.upsale.benefits.premium_features_text') %></p>
+ <p><%= t("js.admin.enterprise.upsale.benefits.premium_features_text") %></p>
<ul class="widget-box--arrow-links">
<li>
<%= static_link_to :upsale_benefits_features %>
@@ -106,11 +106,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="info-boxes--item">
<%= image_tag "security_alerts.svg",
class: "info-boxes--teaser-image",
- title: t('js.admin.enterprise.upsale.benefits.high_security'),
- alt: t('js.admin.enterprise.upsale.benefits.high_security') %>
- <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.high_security') %></h4>
+ title: t("js.admin.enterprise.upsale.benefits.high_security"),
+ alt: t("js.admin.enterprise.upsale.benefits.high_security") %>
+ <h4 class="info-boxes--item-title"><%= t("js.admin.enterprise.upsale.benefits.high_security") %></h4>
<div class="info-boxes--item-content">
- <p><%= t('js.admin.enterprise.upsale.benefits.high_security_text') %></p>
+ <p><%= t("js.admin.enterprise.upsale.benefits.high_security_text") %></p>
<ul class="widget-box--arrow-links">
<li>
<%= static_link_to :upsale_benefits_security %>
diff --git a/app/views/enterprises/show.html.erb b/app/views/enterprises/show.html.erb
index 646c9a1e3fc..4df8b725325 100644
--- a/app/views/enterprises/show.html.erb
+++ b/app/views/enterprises/show.html.erb
@@ -8,7 +8,7 @@
end
%>
-<%= error_messages_for 'token' %>
+<%= error_messages_for "token" %>
<% if @current_token.present? %>
<%= render partial: "current" %>
diff --git a/app/views/enumerations/_form.html.erb b/app/views/enumerations/_form.html.erb
index 2db450fb0af..c655c6e9008 100644
--- a/app/views/enumerations/_form.html.erb
+++ b/app/views/enumerations/_form.html.erb
@@ -34,20 +34,20 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for :enumeration %>
<section class="form--section">
- <%= f.hidden_field 'type' %>
- <div class="form--field -required"><%= f.text_field 'name', required: true, container_class: '-middle' %></div>
- <div class="form--field"><%= f.check_box 'active' %></div>
+ <%= f.hidden_field "type" %>
+ <div class="form--field -required"><%= f.text_field "name", required: true, container_class: "-middle" %></div>
+ <div class="form--field"><%= f.check_box "active" %></div>
<% if @enumeration.class.can_have_default_value? %>
- <div class="form--field"><%= f.check_box 'is_default' %></div>
+ <div class="form--field"><%= f.check_box "is_default" %></div>
<% end %>
<% if @enumeration.class.colored? %>
- <%= render partial: '/colors/color_autocomplete_field',
+ <%= render partial: "/colors/color_autocomplete_field",
locals: {
form: f,
object: @enumeration,
- type: 'enumeration',
+ type: "enumeration",
label: @enumeration.color_label
} %>
<% end %>
diff --git a/app/views/enumerations/destroy.html.erb b/app/views/enumerations/destroy.html.erb
index b70413b1721..989f9a8db3f 100644
--- a/app/views/enumerations/destroy.html.erb
+++ b/app/views/enumerations/destroy.html.erb
@@ -31,13 +31,13 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<p><strong><%= t(:text_enumeration_destroy_question, count: @enumeration.objects_count) %></strong></p>
<div class="form--field">
- <%= styled_label_tag 'reassign_to_id', t(:text_enumeration_category_reassign_to) %>
+ <%= styled_label_tag "reassign_to_id", t(:text_enumeration_category_reassign_to) %>
<div class="form--field-container">
- <%= styled_select_tag 'reassign_to_id', options_from_collection_for_select(@enumerations, 'id', 'name') %>
+ <%= styled_select_tag "reassign_to_id", options_from_collection_for_select(@enumerations, "id", "name") %>
</div>
</div>
</section>
- <%= styled_submit_tag t(:button_apply), class: '-primary' %>
- <%= link_to t(:button_cancel), { controller: '/enumerations', action: 'index' },
- class: 'button' %>
+ <%= styled_submit_tag t(:button_apply), class: "-primary" %>
+ <%= link_to t(:button_cancel), { controller: "/enumerations", action: "index" },
+ class: "button" %>
<% end %>
diff --git a/app/views/enumerations/edit.html.erb b/app/views/enumerations/edit.html.erb
index 341e498fa31..1ccbc16c211 100644
--- a/app/views/enumerations/edit.html.erb
+++ b/app/views/enumerations/edit.html.erb
@@ -44,8 +44,8 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @enumeration do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
<%= styled_form_tag(enumeration_path(@enumeration), method: :delete) do %>
diff --git a/app/views/enumerations/new.html.erb b/app/views/enumerations/new.html.erb
index 599df6f2c6e..ba33d9c1c5c 100644
--- a/app/views/enumerations/new.html.erb
+++ b/app/views/enumerations/new.html.erb
@@ -43,6 +43,6 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @enumeration do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/filters/_boolean.html.erb b/app/views/filters/_boolean.html.erb
index ef4a18c05f9..4fe5e8f0af9 100644
--- a/app/views/filters/_boolean.html.erb
+++ b/app/views/filters/_boolean.html.erb
@@ -1,11 +1,11 @@
<label class="advanced-filters--filter-value"
data-filter--filters-form-target="filterValueContainer"
data-filter-name="<%= filter.name %>">
- <%= angular_component_tag 'opce-spot-switch',
+ <%= angular_component_tag "opce-spot-switch",
inputs: {
name: "v-" + filter.class.key.to_s,
- checked: filter.values.first != 'f',
- filterName: 'boolean',
+ checked: filter.values.first != "f",
+ filterName: "boolean",
id: "#{filter.name}_value"
} %>
</label>
diff --git a/app/views/filters/_text.html.erb b/app/views/filters/_text.html.erb
index be61aa56822..fa49989a177 100644
--- a/app/views/filters/_text.html.erb
+++ b/app/views/filters/_text.html.erb
@@ -5,9 +5,9 @@
<div>
<%= text_field_tag :value,
filter.values.first,
- class: 'advanced-filters--text-field -slim',
+ class: "advanced-filters--text-field -slim",
data: {
- 'filter--filters-form-target': 'simpleValue',
+ 'filter--filters-form-target': "simpleValue",
'filter-name': filter.name
} %>
</div>
@@ -15,9 +15,9 @@
<div>
<%= text_field_tag :value,
filter.values.first,
- class: 'advanced-filters--text-field -slim',
+ class: "advanced-filters--text-field -slim",
data: {
- 'filter--filters-form-target': 'simpleValue',
+ 'filter--filters-form-target': "simpleValue",
'filter-name': filter.name
} %>
</div>
@@ -25,10 +25,10 @@
<div>
<%= number_field_tag :value,
filter.values.first,
- class: 'advanced-filters--text-field -slim',
- step: 'any',
+ class: "advanced-filters--text-field -slim",
+ step: "any",
data: {
- 'filter--filters-form-target': 'simpleValue',
+ 'filter--filters-form-target': "simpleValue",
'filter-name': filter.name
} %>
</div>
@@ -36,10 +36,10 @@
<div>
<%= number_field_tag :value,
filter.values.first,
- class: 'advanced-filters--text-field -slim',
- step: 'any',
+ class: "advanced-filters--text-field -slim",
+ step: "any",
data: {
- 'filter--filters-form-target': 'simpleValue',
+ 'filter--filters-form-target': "simpleValue",
'filter-name': filter.name
} %>
</div>
diff --git a/app/views/filters/date/_between_dates.html.erb b/app/views/filters/date/_between_dates.html.erb
index 3ce19d116ca..014f8e6129b 100644
--- a/app/views/filters/date/_between_dates.html.erb
+++ b/app/views/filters/date/_between_dates.html.erb
@@ -1,13 +1,13 @@
<div class="between-dates">
<span><%= t(:label_date_from) %>:</span>
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
value: from_value,
id: "between-dates-from-value-#{filter.name}",
name: "from_value"
} %>
<span><%= t(:label_date_to) %>:</span>
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
value: to_value,
id: "between-dates-to-value-#{filter.name}",
diff --git a/app/views/filters/date/_days.html.erb b/app/views/filters/date/_days.html.erb
index 7eb556b45e0..3d505ac19d0 100644
--- a/app/views/filters/date/_days.html.erb
+++ b/app/views/filters/date/_days.html.erb
@@ -5,8 +5,8 @@
<%= number_field_tag :value,
value,
id: "#{filter.name}_value",
- class: 'advanced-filters--text-field -slim',
- 'data-filter--filters-form-target': 'days',
+ class: "advanced-filters--text-field -slim",
+ 'data-filter--filters-form-target': "days",
'data-filter-name': filter.name %>
<label for="<%= "#{filter.name}_value" %>" class="form-label -transparent">days</label>
</span>
diff --git a/app/views/filters/date/_input_options.html.erb b/app/views/filters/date/_input_options.html.erb
index b40bd3dbc2c..df23dbf436c 100644
--- a/app/views/filters/date/_input_options.html.erb
+++ b/app/views/filters/date/_input_options.html.erb
@@ -1,24 +1,24 @@
<%
- value_format = ''
- if ['>t-', '<t-', 't-', '<t+', '>t+', 't+'].include? selected_operator
- value_format = 'days'
- elsif selected_operator == '=d'
- value_format = 'on-date'
- elsif selected_operator == '<>d'
- value_format = 'between-dates'
+ value_format = ""
+ if [">t-", "<t-", "t-", "<t+", ">t+", "t+"].include? selected_operator
+ value_format = "days"
+ elsif selected_operator == "=d"
+ value_format = "on-date"
+ elsif selected_operator == "<>d"
+ value_format = "between-dates"
end
%>
<div class="advanced-filters--filter-value <%= value_visibility %> <%= value_format %>"
data-filter--filters-form-target="filterValueContainer"
data-filter-name="<%= filter.name %>">
- <%= render partial: 'filters/date/days',
+ <%= render partial: "filters/date/days",
locals: { filter: filter,
- value: value_format == 'days' ? filter.values.first : '' } %>
- <%= render partial: 'filters/date/on_date',
+ value: value_format == "days" ? filter.values.first : "" } %>
+ <%= render partial: "filters/date/on_date",
locals: { filter: filter,
- value: value_format == 'on-date' ? filter.values.first : '' } %>
- <%= render partial: 'filters/date/between_dates',
+ value: value_format == "on-date" ? filter.values.first : "" } %>
+ <%= render partial: "filters/date/between_dates",
locals: { filter: filter,
- from_value: value_format == 'between-dates' ? filter.values.first : '',
- to_value: value_format == 'between-dates' ? filter.values.second : ''} %>
+ from_value: value_format == "between-dates" ? filter.values.first : "",
+ to_value: value_format == "between-dates" ? filter.values.second : ""} %>
</div>
diff --git a/app/views/filters/date/_on_date.html.erb b/app/views/filters/date/_on_date.html.erb
index 6e8e3332fb8..a6b8706de10 100644
--- a/app/views/filters/date/_on_date.html.erb
+++ b/app/views/filters/date/_on_date.html.erb
@@ -1,6 +1,6 @@
<div class="on-date">
<div class="form--field-container -visible-overflow">
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
value: value,
id: "on-date-value-#{filter.name}",
diff --git a/app/views/filters/list/_input_options.html.erb b/app/views/filters/list/_input_options.html.erb
index 650267ac0a1..2035de12277 100644
--- a/app/views/filters/list/_input_options.html.erb
+++ b/app/views/filters/list/_input_options.html.erb
@@ -1,8 +1,8 @@
<% filter_values = filter.values || [] %>
-<div class="advanced-filters--filter-value <%= value_visibility %> <%= filter_values.size > 1 ? 'multi-value' : '' %>"
+<div class="advanced-filters--filter-value <%= value_visibility %> <%= filter_values.size > 1 ? "multi-value" : "" %>"
data-filter--filters-form-target="filterValueContainer"
data-filter-name="<%= filter.name %>">
- <%= render partial: 'filters/list/select', locals: { filter: filter, selected_values: filter_values.first, multi_value: false } %>
- <%= render partial: 'filters/list/select', locals: { filter: filter, selected_values: filter_values, multi_value: true } %>
+ <%= render partial: "filters/list/select", locals: { filter: filter, selected_values: filter_values.first, multi_value: false } %>
+ <%= render partial: "filters/list/select", locals: { filter: filter, selected_values: filter_values, multi_value: true } %>
</div>
diff --git a/app/views/filters/list/_select.html.erb b/app/views/filters/list/_select.html.erb
index 0257656f29a..f2d6987a202 100644
--- a/app/views/filters/list/_select.html.erb
+++ b/app/views/filters/list/_select.html.erb
@@ -1,4 +1,4 @@
-<div class="<%= multi_value ? 'multi-select' : 'single-select' %>">
+<div class="<%= multi_value ? "multi-select" : "single-select" %>">
<span class="inline-label">
<% select_options = [ :value,
options_from_collection_for_select(
@@ -7,8 +7,8 @@
:first,
selected_values),
{
- class: 'form--select -slim',
- 'data-filter--filters-form-target': 'filterValueSelect',
+ class: "form--select -slim",
+ 'data-filter--filters-form-target': "filterValueSelect",
'data-filter-name': filter.name,
id: "#{filter.name}_value"
}]
@@ -21,7 +21,7 @@
tabindex="0"
data-action="click->filter--filters-form#toggleMultiSelect"
data-filter--filters-form-filter-name-param="<%= filter.name %>">
- <span class="icon-context icon-button <%= multi_value ? 'icon-minus2' : 'icon-add' %> icon4" title="<%= t(:label_enable_multi_select) %>">
+ <span class="icon-context icon-button <%= multi_value ? "icon-minus2" : "icon-add" %> icon4" title="<%= t(:label_enable_multi_select) %>">
<span class="hidden-for-sighted"><%= t(:label_enable_multi_select) %></span>
</span>
</a>
diff --git a/app/views/forums/_form.html.erb b/app/views/forums/_form.html.erb
index 0781757f28e..64f4cb54b58 100644
--- a/app/views/forums/_form.html.erb
+++ b/app/views/forums/_form.html.erb
@@ -26,12 +26,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'forum' %>
+<%= error_messages_for "forum" %>
<!--[form:forum]-->
<div class="form--field -required">
- <%= f.text_field :name, required: true, container_class: '-wide' %>
+ <%= f.text_field :name, required: true, container_class: "-wide" %>
</div>
<div class="form--field -required">
- <%= f.text_field :description, required: true, container_class: '-wide' %>
+ <%= f.text_field :description, required: true, container_class: "-wide" %>
</div>
<!--[eoform:forum]-->
diff --git a/app/views/forums/edit.html.erb b/app/views/forums/edit.html.erb
index 175b15ef00c..8e498a469e1 100644
--- a/app/views/forums/edit.html.erb
+++ b/app/views/forums/edit.html.erb
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for [@project, @forum] do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), project_forums_path(@project), class: 'button -with-icon icon-cancel' %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= f.button t(:button_save), class: "button -primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), project_forums_path(@project), class: "button -with-icon icon-cancel" %>
<% end %>
diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb
index 39d4c591c2a..2e006729985 100644
--- a/app/views/forums/index.html.erb
+++ b/app/views/forums/index.html.erb
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
tag: :a,
href: new_project_forum_path(@project)) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.forum')
+ t("activerecord.models.forum")
end
end
%>
@@ -122,7 +122,7 @@ See COPYRIGHT and LICENSE files for more details.
<% for forum in @forums %>
<tr>
<td class="-no-ellipsis">
- <%= link_to h(forum.name), { action: 'show', id: forum }, class: "forum" %><br>
+ <%= link_to h(forum.name), { action: "show", id: forum }, class: "forum" %><br>
<%= format_text(forum.description) %>
</td>
<td><%= forum.topics_count %></td>
@@ -137,22 +137,22 @@ See COPYRIGHT and LICENSE files for more details.
<% if User.current.allowed_in_project?(:manage_forums, @project) %>
<td class="small-icons">
<% if authorize_for 'forums', 'edit' %>
- <%= reorder_links 'forum', controller: '/forums',
- action: 'move',
+ <%= reorder_links "forum", controller: "/forums",
+ action: "move",
project_id: @project,
id: forum %>
<% end %>
</td>
<td class="buttons">
- <%= link_to_if_authorized '',
- { controller: '/forums', action: 'edit', project_id: @project, id: forum },
- class: 'icon icon-edit',
+ <%= link_to_if_authorized "",
+ { controller: "/forums", action: "edit", project_id: @project, id: forum },
+ class: "icon icon-edit",
title: t(:button_edit) %>
- <%= link_to_if_authorized '',
- { controller: '/forums', action: 'destroy', project_id: @project, id: forum },
+ <%= link_to_if_authorized "",
+ { controller: "/forums", action: "destroy", project_id: @project, id: forum },
data: { confirm: t(:text_are_you_sure) },
method: :delete,
- class: 'icon icon-delete',
+ class: "icon icon-delete",
title: t(:button_delete) %>
</td>
<% end %>
@@ -165,9 +165,9 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end %>
<%= other_formats_links do |f| %>
- <%= f.link_to 'Atom', url: { controller: '/activities', action: 'index', id: @project, show_messages: 1, key: User.current.rss_key } %>
+ <%= f.link_to "Atom", url: { controller: "/activities", action: "index", id: @project, show_messages: 1, key: User.current.rss_key } %>
<% end %>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, { controller: '/activities', action: 'index', id: @project, format: 'atom', show_messages: 1, key: User.current.rss_key }) %>
+ <%= auto_discovery_link_tag(:atom, { controller: "/activities", action: "index", id: @project, format: "atom", show_messages: 1, key: User.current.rss_key }) %>
<% end %>
diff --git a/app/views/forums/new.html.erb b/app/views/forums/new.html.erb
index af34d8f3aa5..bff2b83e666 100644
--- a/app/views/forums/new.html.erb
+++ b/app/views/forums/new.html.erb
@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
<%= labelled_tabular_form_for [@project, @forum] do |f| %>
- <%= render partial: 'form', locals: {f: f} %>
- <%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), project_forums_path(@project), class: 'button -with-icon icon-cancel' %>
+ <%= render partial: "form", locals: {f: f} %>
+ <%= f.button t(:button_create), class: "button -primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), project_forums_path(@project), class: "button -with-icon icon-cancel" %>
<% end %>
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb
index 9a1c12e822b..5fe9e04cc62 100644
--- a/app/views/forums/show.html.erb
+++ b/app/views/forums/show.html.erb
@@ -34,16 +34,16 @@ See COPYRIGHT and LICENSE files for more details.
url: forum_topics_path(@forum),
html: {
multipart: true,
- id: 'message-form',
- class: 'form',
+ id: "message-form",
+ class: "form",
data: { turbo: false }
} do |f| %>
- <%= render partial: 'messages/form', locals: { f: f } %>
+ <%= render partial: "messages/form", locals: { f: f } %>
<hr class="form--separator">
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), '', class: 'cancel-add-message-button button -with-icon icon-cancel' %>
- <% csp_onclick('jQuery("#add-message").hide();', '.cancel-add-message-button') %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), "", class: "cancel-add-message-button button -with-icon icon-cancel" %>
+ <% csp_onclick('jQuery("#add-message").hide();', ".cancel-add-message-button") %>
<% end %>
<div id="preview"></div>
<% end %>
@@ -68,8 +68,8 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_message_new) },
title: t(:label_message_new),
tag: :a,
- class: 'add-message-button',
- href: url_for({ controller: '/messages', action: 'new', forum_id: @forum })) do |button|
+ class: "add-message-button",
+ href: url_for({ controller: "/messages", action: "new", forum_id: @forum })) do |button|
button.with_leading_visual_icon(icon: :plus)
t(:label_message)
end
@@ -119,10 +119,10 @@ See COPYRIGHT and LICENSE files for more details.
<tr>
<td class="subject">
<% if message.sticky? %>
- <%= op_icon('icon-wiki', title: I18n.t('js.label_board_sticky')) %>
+ <%= op_icon("icon-wiki", title: I18n.t("js.label_board_sticky")) %>
<% end %>
<% if message.locked? %>
- <%= op_icon('icon-locked', title: I18n.t('js.label_board_locked')) %>
+ <%= op_icon("icon-locked", title: I18n.t("js.label_board_locked")) %>
<% end %>
<%= link_to message.subject, topic_path(message) %>
</td>
@@ -154,9 +154,9 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<%= other_formats_links do |f| %>
- <%= f.link_to 'Atom', url: { key: User.current.rss_key } %>
+ <%= f.link_to "Atom", url: { key: User.current.rss_key } %>
<% end %>
<% html_title h(@forum.name) %>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, { format: 'atom', key: User.current.rss_key }, title: "#{@project}: #{@forum}") %>
+ <%= auto_discovery_link_tag(:atom, { format: "atom", key: User.current.rss_key }, title: "#{@project}: #{@forum}") %>
<% end %>
diff --git a/app/views/groups/_form.html.erb b/app/views/groups/_form.html.erb
index c94768193a8..416c8efb177 100644
--- a/app/views/groups/_form.html.erb
+++ b/app/views/groups/_form.html.erb
@@ -39,10 +39,10 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.text_field :lastname,
label: Group.human_attribute_name(:name),
required: true,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
- <%= render partial: 'customizable/form', locals: { form: f,
+ <%= render partial: "customizable/form", locals: { form: f,
all_fields: true,
only_required: false } %>
</section>
diff --git a/app/views/groups/_general.html.erb b/app/views/groups/_general.html.erb
index a8c529337dc..8662f409fcb 100644
--- a/app/views/groups/_general.html.erb
+++ b/app/views/groups/_general.html.erb
@@ -28,6 +28,6 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= labelled_tabular_form_for @group, url: group_path(@group), html: {method: :put}, as: :group do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb
index e47806abd6a..bebade6f9bd 100644
--- a/app/views/groups/_users.html.erb
+++ b/app/views/groups/_users.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @group.users.any? %>
<div class="generic-table--container">
<div id="group_users_table" class="generic-table--results-container">
- <%= render partial: 'groups/users_table' %>
+ <%= render partial: "groups/users_table" %>
</div>
</div>
<% else %>
@@ -52,9 +52,9 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= t(:label_user_new) %></legend>
<div class="form--field -vertical">
<%=
- angular_component_tag 'opce-user-autocompleter',
+ angular_component_tag "opce-user-autocompleter",
inputs: {
- inputName: 'user_ids',
+ inputName: "user_ids",
filters: autocompleter_filters(@group),
},
class: "new-group-members--autocomplete"
@@ -62,7 +62,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div>
<%= styled_button_tag t(:button_add),
- class: '-primary -with-icon icon-checkmark' %>
+ class: "-primary -with-icon icon-checkmark" %>
</div>
</fieldset>
<% end %>
diff --git a/app/views/groups/_users_table.html.erb b/app/views/groups/_users_table.html.erb
index 3cf29cddc2c..ff15f39817d 100644
--- a/app/views/groups/_users_table.html.erb
+++ b/app/views/groups/_users_table.html.erb
@@ -50,9 +50,9 @@ See COPYRIGHT and LICENSE files for more details.
<tr id="user-<%= user.id %>">
<td class="user"><%= link_to_user user %></td>
<td class="buttons">
- <%= link_to '', member_of_group_path(@group, user),
+ <%= link_to "", member_of_group_path(@group, user),
method: :delete,
- class: 'icon icon-remove',
+ class: "icon icon-remove",
title: t(:button_remove) %>
</td>
</tr>
diff --git a/app/views/groups/autocomplete_for_user.html.erb b/app/views/groups/autocomplete_for_user.html.erb
index cb4b4e1f883..ab6735aa579 100644
--- a/app/views/groups/autocomplete_for_user.html.erb
+++ b/app/views/groups/autocomplete_for_user.html.erb
@@ -27,4 +27,4 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= principals_check_box_tags 'user_ids[]', @users %>
+<%= principals_check_box_tags "user_ids[]", @users %>
diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erb
index dd54f032854..0d984e2b0dd 100644
--- a/app/views/groups/index.html.erb
+++ b/app/views/groups/index.html.erb
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
tag: :a,
href: new_group_path) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.group')
+ t("activerecord.models.group")
end
end
%>
@@ -86,13 +86,13 @@ See COPYRIGHT and LICENSE files for more details.
<tbody>
<% @groups.each do |group| %>
<tr>
- <td><%= link_to h(group), action: 'edit', id: group %></td>
+ <td><%= link_to h(group), action: "edit", id: group %></td>
<td><%= group.users.size %></td>
<td class="buttons">
- <%= link_to '', group,
+ <%= link_to "", group,
data: { confirm: t(:text_are_you_sure) },
method: :delete,
- class: 'icon icon-delete',
+ class: "icon icon-delete",
title: t(:button_delete) %>
</td>
</tr>
diff --git a/app/views/groups/new.html.erb b/app/views/groups/new.html.erb
index 02da1f76c5e..ecdd7a32f89 100644
--- a/app/views/groups/new.html.erb
+++ b/app/views/groups/new.html.erb
@@ -40,6 +40,6 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for(@group) do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <div><%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %></div>
+ <%= render partial: "form", locals: { f: f } %>
+ <div><%= f.button t(:button_create), class: "button -primary -with-icon icon-checkmark" %></div>
<% end %>
diff --git a/app/views/highlighting/styles.css.erb b/app/views/highlighting/styles.css.erb
index 8f981cd72f6..468fe82d0e4 100644
--- a/app/views/highlighting/styles.css.erb
+++ b/app/views/highlighting/styles.css.erb
@@ -1,9 +1,9 @@
<%# Highlightable resources %>
-<%= resource_color_css('status', ::Status) %>
-<%= resource_color_css('priority', ::IssuePriority) %>
-<%= resource_color_css('type', ::Type, inline_foreground: true) %>
+<%= resource_color_css("status", ::Status) %>
+<%= resource_color_css("priority", ::IssuePriority) %>
+<%= resource_color_css("type", ::Type, inline_foreground: true) %>
<%# Color coded icons %>
-<%= resource_color_css('life_cycle_step_definition', Project::LifeCycleStepDefinition, inline_foreground: true) %>
+<%= resource_color_css("life_cycle_step_definition", Project::LifeCycleStepDefinition, inline_foreground: true) %>
<%= color_css() %>
diff --git a/app/views/homescreen/blocks/_administration.html.erb b/app/views/homescreen/blocks/_administration.html.erb
index b2baf6e1e27..bdb8a29e7c9 100644
--- a/app/views/homescreen/blocks/_administration.html.erb
+++ b/app/views/homescreen/blocks/_administration.html.erb
@@ -1,4 +1,4 @@
-<%= render 'homescreen/blocks/header', title: t(:label_administration) %>
+<%= render "homescreen/blocks/header", title: t(:label_administration) %>
<ul class="widget-box--arrow-links">
<li>
@@ -32,8 +32,8 @@
</li>
<li>
- <%= link_to t('attributes.custom_values'), custom_fields_path,
- title: t('attributes.custom_values') %>
+ <%= link_to t("attributes.custom_values"), custom_fields_path,
+ title: t("attributes.custom_values") %>
</li>
<li>
@@ -47,11 +47,11 @@
<%= call_hook(:homescreen_administration_links) %>
</ul>
-<%= content_tag :div, class: 'security-badge--container' do %>
+<%= content_tag :div, class: "security-badge--container" do %>
<%= content_tag :object, nil, data: security_badge_url, type: "image/svg+xml" %>
- <%= link_to '',
+ <%= link_to "",
::OpenProject::Static::Links[:security_badge_documentation][:href],
title: t(:label_what_is_this),
- class: 'security-badge--help-icon icon-context icon-help1',
- target: '_blank' %>
+ class: "security-badge--help-icon icon-context icon-help1",
+ target: "_blank" %>
<% end if display_security_badge_graphic? %>
diff --git a/app/views/homescreen/blocks/_community.html.erb b/app/views/homescreen/blocks/_community.html.erb
index 05cdcda2de9..79eb088f72e 100644
--- a/app/views/homescreen/blocks/_community.html.erb
+++ b/app/views/homescreen/blocks/_community.html.erb
@@ -1,4 +1,4 @@
-<%= render 'homescreen/blocks/header', title: t('homescreen.blocks.community') %>
+<%= render "homescreen/blocks/header", title: t("homescreen.blocks.community") %>
<ul class="widget-box--arrow-links">
<li>
@@ -13,16 +13,16 @@
<%= static_link_to (EnterpriseToken.active? ? :enterprise_support : :enterprise_support_as_community) %>
</li>
<li>
- <%= link_to(t('label_openproject_website'), "#{OpenProject::Static::Links.links[:website][:href]}/?utm_source=unknown&utm_medium=op-instance&utm_campaign=website-home-screen",
- { aria: {label: t('label_openproject_website')},
- target: '_blank',
- title: t('label_openproject_website')}) %>
+ <%= link_to(t("label_openproject_website"), "#{OpenProject::Static::Links.links[:website][:href]}/?utm_source=unknown&utm_medium=op-instance&utm_campaign=website-home-screen",
+ { aria: {label: t("label_openproject_website")},
+ target: "_blank",
+ title: t("label_openproject_website")}) %>
</li>
<li>
- <%= link_to(t('homescreen.links.newsletter'), "#{OpenProject::Static::Links.links[:newsletter][:href]}/?utm_source=unknown&utm_medium=op-instance&utm_campaign=newsletter-home-screen",
- { aria: {label: t('homescreen.links.newsletter')},
- target: '_blank',
- title: t('homescreen.links.newsletter')}) %>
+ <%= link_to(t("homescreen.links.newsletter"), "#{OpenProject::Static::Links.links[:newsletter][:href]}/?utm_source=unknown&utm_medium=op-instance&utm_campaign=newsletter-home-screen",
+ { aria: {label: t("homescreen.links.newsletter")},
+ target: "_blank",
+ title: t("homescreen.links.newsletter")}) %>
</li>
<li>
<%= static_link_to :blog %>
diff --git a/app/views/homescreen/blocks/_my_account.html.erb b/app/views/homescreen/blocks/_my_account.html.erb
index 3ce52441dec..5d808e9e772 100644
--- a/app/views/homescreen/blocks/_my_account.html.erb
+++ b/app/views/homescreen/blocks/_my_account.html.erb
@@ -1,4 +1,4 @@
-<%= render 'homescreen/blocks/header', title: t('label_my_account') %>
+<%= render "homescreen/blocks/header", title: t("label_my_account") %>
<ul class="widget-box--arrow-links">
<li>
diff --git a/app/views/homescreen/blocks/_new_features.html.erb b/app/views/homescreen/blocks/_new_features.html.erb
index d005bbc7e57..29dffc9873d 100644
--- a/app/views/homescreen/blocks/_new_features.html.erb
+++ b/app/views/homescreen/blocks/_new_features.html.erb
@@ -1,3 +1,3 @@
-<%= render 'homescreen/blocks/header', title: t(:label_new_features) %>
+<%= render "homescreen/blocks/header", title: t(:label_new_features) %>
<opce-homescreen-new-features-block></opce-homescreen-new-features-block>
diff --git a/app/views/homescreen/blocks/_news.html.erb b/app/views/homescreen/blocks/_news.html.erb
index d3f54bc1362..2d14f9d6b47 100644
--- a/app/views/homescreen/blocks/_news.html.erb
+++ b/app/views/homescreen/blocks/_news.html.erb
@@ -1,11 +1,11 @@
-<%= render 'homescreen/blocks/header', title: t(:label_news_latest) %>
+<%= render "homescreen/blocks/header", title: t(:label_news_latest) %>
<% unless @news.empty? %>
<ul class="widget-box--arrow-links">
<% @news.each do |news| %>
<li class="widget-box--arrow-multiline">
- <%= avatar(news.author, class: 'widget-box--avatar news-author-avatar hidden-for-mobile') %>
+ <%= avatar(news.author, class: "widget-box--avatar news-author-avatar hidden-for-mobile") %>
<div class="widget-box--project">
- <%= link_to_project(news.project) + ': ' %>
+ <%= link_to_project(news.project) + ": " %>
<%= link_to h(news.title), news_path(news) %>
</div>
<div class="widget-box--author news-author"><%= authoring_at format_date(news.created_at), news.author %></div>
diff --git a/app/views/homescreen/blocks/_projects.html.erb b/app/views/homescreen/blocks/_projects.html.erb
index 60e0e223209..992e63a0290 100644
--- a/app/views/homescreen/blocks/_projects.html.erb
+++ b/app/views/homescreen/blocks/_projects.html.erb
@@ -1,7 +1,7 @@
-<%= render 'homescreen/blocks/header', title: t(:label_project_plural) %>
+<%= render "homescreen/blocks/header", title: t(:label_project_plural) %>
<% if @favorite_projects.any? %>
- <p class="widget-box--additional-info"><%= t('projects.lists.favored') %></p>
+ <p class="widget-box--additional-info"><%= t("projects.lists.favored") %></p>
<ul class="widget-box--arrow-links">
<% @favorite_projects.each do |project| %>
<li>
@@ -20,10 +20,10 @@
<% if @newest_projects.empty? %>
<p class="widget-box--additional-info">
- <%= t('homescreen.additional.no_visible_projects') %>
+ <%= t("homescreen.additional.no_visible_projects") %>
</p>
<% else %>
- <p class="widget-box--additional-info"><%= t('homescreen.additional.projects') %></p>
+ <p class="widget-box--additional-info"><%= t("homescreen.additional.projects") %></p>
<ul class="widget-box--arrow-links">
<% @newest_projects.each do |project| %>
<li>
@@ -37,10 +37,10 @@
<div class="widget-box--blocks--buttons">
<% if User.current.allowed_globally?(:add_project) %>
<%= link_to new_project_path,
- { class: 'button -primary',
+ { class: "button -primary",
aria: {label: t(:label_project_new)},
title: t(:label_project_new)} do %>
- <%= op_icon('button--icon icon-add') %>
+ <%= op_icon("button--icon icon-add") %>
<span class="button--text"><%= Project.model_name.human %></span>
<% end %>
<% end %>
@@ -48,7 +48,7 @@
<%# If any project exists %>
<% unless @newest_projects.empty? %>
<%= link_to t(:label_project_view_all), projects_path,
- class: 'button -highlight-inverted',
+ class: "button -highlight-inverted",
title: t(:label_project_view_all) %>
<% end %>
</div>
diff --git a/app/views/homescreen/blocks/_upsale.html.erb b/app/views/homescreen/blocks/_upsale.html.erb
index 5acad4a2b83..21cc6d32e63 100644
--- a/app/views/homescreen/blocks/_upsale.html.erb
+++ b/app/views/homescreen/blocks/_upsale.html.erb
@@ -2,42 +2,42 @@
<%= image_tag "enterprise-add-on.svg", role: "presentation", class: "widget-box--blocks--upsale-image" %>
<div class="widget-box--blocks--upsale-text">
<div class="widget-box--blocks--upsale-title">
- <%= spot_icon('enterprise-addons') %>
- <span><%= t('homescreen.blocks.upsale.title') %></span>
+ <%= spot_icon("enterprise-addons") %>
+ <span><%= t("homescreen.blocks.upsale.title") %></span>
</div>
<p class="widget-box--blocks--upsale-description">
- <%= t('js.admin.enterprise.upsale.text') %>
+ <%= t("js.admin.enterprise.upsale.text") %>
</p>
<p>
- <b><%= t('js.admin.enterprise.upsale.become_hero') %></b> <%= t('js.admin.enterprise.upsale.you_contribute') %>
+ <b><%= t("js.admin.enterprise.upsale.become_hero") %></b> <%= t("js.admin.enterprise.upsale.you_contribute") %>
</p>
<p>
- <b><%= t('js.admin.enterprise.upsale.confidence') %></b>
+ <b><%= t("js.admin.enterprise.upsale.confidence") %></b>
</p>
</div>
</div>
<div class="widget-box--blocks--upsale-buttons">
<%= link_to "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=home-screen",
- class: 'button--link widget-box--blocks--upsale-info-button',
- target: '_blank',
- rel: 'noopener' do %>
- <%= spot_icon('external-link') %>
- <span class="button--text"><%= t('homescreen.blocks.upsale.more_info') %></span>
+ class: "button--link widget-box--blocks--upsale-info-button",
+ target: "_blank",
+ rel: "noopener" do %>
+ <%= spot_icon("external-link") %>
+ <span class="button--text"><%= t("homescreen.blocks.upsale.more_info") %></span>
<% end %>
<%= link_to(OpenProject::Static::Links.links[:pricing][:href],
- class: 'button -primary',
- target: '_blank',
- rel: 'noopener') do %>
- <%= spot_icon('enterprise-addons') %>
- <span class="button--text"><%= t('admin.enterprise.buttons.upgrade') %></span>
+ class: "button -primary",
+ target: "_blank",
+ rel: "noopener") do %>
+ <%= spot_icon("enterprise-addons") %>
+ <span class="button--text"><%= t("admin.enterprise.buttons.upgrade") %></span>
<% end %>
<% if current_user.admin? %>
- <%= link_to t('js.admin.enterprise.upsale.button_start_trial'), enterprise_path, class: 'button -primary' %>
+ <%= link_to t("js.admin.enterprise.upsale.button_start_trial"), enterprise_path, class: "button -primary" %>
<% end %>
</div>
diff --git a/app/views/homescreen/blocks/_users.html.erb b/app/views/homescreen/blocks/_users.html.erb
index 45584c6973e..2d5a9915cec 100644
--- a/app/views/homescreen/blocks/_users.html.erb
+++ b/app/views/homescreen/blocks/_users.html.erb
@@ -1,6 +1,6 @@
-<%= render 'homescreen/blocks/header', title: t(:label_user_plural) %>
+<%= render "homescreen/blocks/header", title: t(:label_user_plural) %>
-<p class="widget-box--additional-info"><%= t('homescreen.additional.users') %></p>
+<p class="widget-box--additional-info"><%= t("homescreen.additional.users") %></p>
<% unless @newest_users.empty? %>
<ul class="widget-box--arrow-links">
@@ -15,8 +15,8 @@
<div class="widget-box--buttons">
<% if User.current.admin? %>
- <%= link_to new_user_path, class: 'button -primary' do %>
- <%= op_icon('button--icon icon-add') %>
+ <%= link_to new_user_path, class: "button -primary" do %>
+ <%= op_icon("button--icon icon-add") %>
<span class="button--text"><%= t(:label_invite_user) %></span>
<% end %>
<% end %>
diff --git a/app/views/homescreen/blocks/_welcome.html.erb b/app/views/homescreen/blocks/_welcome.html.erb
index 17d6223cc60..0353ca3b503 100644
--- a/app/views/homescreen/blocks/_welcome.html.erb
+++ b/app/views/homescreen/blocks/_welcome.html.erb
@@ -1,4 +1,4 @@
-<%= render 'homescreen/blocks/header', title: Setting.welcome_title.presence || organization_name %>
+<%= render "homescreen/blocks/header", title: Setting.welcome_title.presence || organization_name %>
<div class="wiki op-uc-container">
<%= format_text(Setting.welcome_text, headings: false) %>
diff --git a/app/views/homescreen/index.html.erb b/app/views/homescreen/index.html.erb
index 83f8a84873b..97f05b6c010 100644
--- a/app/views/homescreen/index.html.erb
+++ b/app/views/homescreen/index.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= render partial: 'announcements/show' %>
+<%= render partial: "announcements/show" %>
<% if @homescreen[:blocks].any? %>
<section class="widget-boxes -flex">
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
<section class="homescreen--links">
<% @homescreen[:links].each do |link| %>
- <% title = I18n.t(link[:label], scope: 'homescreen.links') %>
+ <% title = I18n.t(link[:label], scope: "homescreen.links") %>
<a class="homescreen--links--item" href="<%= link[:url] %>" target="_blank" title="<%= title %>">
<%= op_icon(link[:icon]) %>
<%= title %>
diff --git a/app/views/hooks/login/_auth_provider.html.erb b/app/views/hooks/login/_auth_provider.html.erb
index 90c2f7f664b..1332083e5f8 100644
--- a/app/views/hooks/login/_auth_provider.html.erb
+++ b/app/views/hooks/login/_auth_provider.html.erb
@@ -31,8 +31,8 @@ See COPYRIGHT and LICENSE files for more details.
<%
opts = { script_name: OpenProject::Configuration.rails_relative_url_root }
- if params['back_url']
- opts[:origin] = params['back_url']
+ if params["back_url"]
+ opts[:origin] = params["back_url"]
end
%>
<a href="<%= omni_auth_start_path(:developer, opts) %>" class="auth-provider auth-provider-developer button">
diff --git a/app/views/journals/diff.html.erb b/app/views/journals/diff.html.erb
index 025248320b8..2be6013b585 100644
--- a/app/views/journals/diff.html.erb
+++ b/app/views/journals/diff.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<p><%= authoring @journal.created_at, @journal.user, label: :label_updated_time_by %></p>
-<%= render partial: 'diff',
+<%= render partial: "diff",
locals: { diff: @diff } %>
<% if @activity_page -%>
diff --git a/app/views/layouts/_common_head.html.erb b/app/views/layouts/_common_head.html.erb
index e7a1a44af69..57d37e7add5 100644
--- a/app/views/layouts/_common_head.html.erb
+++ b/app/views/layouts/_common_head.html.erb
@@ -3,7 +3,7 @@
<%= output_title_and_meta_tags %>
<%= appsignal_frontend_tag %>
-<% relative_url_root = OpenProject::Configuration['rails_relative_url_root'] || '' %>
+<% relative_url_root = OpenProject::Configuration["rails_relative_url_root"] || "" %>
<meta name="app_title" content="<%= page_title(*html_title_parts) %>">
<meta name="app_base_path" content="<%= relative_url_root %>">
<base href="<%= relative_url_root %>/">
@@ -28,7 +28,7 @@
<!-- global meta hooks before any scripts are loaded-->
<%= call_hook :view_layouts_base_html_meta %>
-<%= render 'common/favicons' %>
+<%= render "common/favicons" %>
<%# Allow gon output when necessary %>
<%= include_gon(nonce: content_security_policy_script_nonce) %>
@@ -43,7 +43,7 @@
<%# Custom styles %>
<%= render partial: "custom_styles/inline_css_logo" %>
-<%= render partial: 'custom_styles/primer_color_mapping' %>
+<%= render partial: "custom_styles/primer_color_mapping" %>
<% if apply_custom_styles? %>
<% cache(CustomStyle.current) do %>
<%= render partial: "custom_styles/inline_css" %>
diff --git a/app/views/layouts/angular/angular.html.erb b/app/views/layouts/angular/angular.html.erb
index a5a24efa3ab..31a27e4b7f4 100644
--- a/app/views/layouts/angular/angular.html.erb
+++ b/app/views/layouts/angular/angular.html.erb
@@ -46,4 +46,4 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end -%>
-<%= render template: 'layouts/base', locals: local_assigns.merge({ no_layout_yield: true }) %>
+<%= render template: "layouts/base", locals: local_assigns.merge({ no_layout_yield: true }) %>
diff --git a/app/views/layouts/component_preview.html.erb b/app/views/layouts/component_preview.html.erb
index 0bb01309f26..50a47569bc6 100644
--- a/app/views/layouts/component_preview.html.erb
+++ b/app/views/layouts/component_preview.html.erb
@@ -32,12 +32,12 @@ See COPYRIGHT and LICENSE files for more details.
</head>
<%
styles = []
- min_height = params.dig('lookbook', 'display', 'min_height')
+ min_height = params.dig("lookbook", "display", "min_height")
styles << "min-height: #{min_height}" if min_height.present?
%>
<%= content_tag :body,
- class: 'viewcomponent-preview',
+ class: "viewcomponent-preview",
data: {
controller: "application",
"color-mode": "auto",
diff --git a/app/views/layouts/only_logo.html.erb b/app/views/layouts/only_logo.html.erb
index c54ee2c4a14..d386ca25d59 100644
--- a/app/views/layouts/only_logo.html.erb
+++ b/app/views/layouts/only_logo.html.erb
@@ -30,17 +30,17 @@ See COPYRIGHT and LICENSE files for more details.
<html xmlns="http://www.w3.org/1999/xhtml"
lang="<%= I18n.locale.to_s %>"
xml:lang="<%= I18n.locale.to_s %>"
- class="<%= 'in_modal' unless show_decoration %>">
+ class="<%= "in_modal" unless show_decoration %>">
<head>
- <%= render partial: 'layouts/common_head' %>
+ <%= render partial: "layouts/common_head" %>
</head>
<body
class="<%= body_css_classes %>"
<%= user_theme_data_attributes %>>
<div id="wrapper">
- <header class="op-app-header<%= ' op-app-header_development' if OpenProject::Configuration.development_highlight_enabled? %>">
+ <header class="op-app-header<%= " op-app-header_development" if OpenProject::Configuration.development_highlight_enabled? %>">
<div class="op-app-header--center op-logo">
- <%= link_to(I18n.t('label_home'), home_url, class: 'op-logo--link') %>
+ <%= link_to(I18n.t("label_home"), home_url, class: "op-logo--link") %>
</div>
</header>
<main id="content-wrapper">
diff --git a/app/views/ldap_auth_sources/_form.html.erb b/app/views/ldap_auth_sources/_form.html.erb
index dd06349b105..1e1b2143c09 100644
--- a/app/views/ldap_auth_sources/_form.html.erb
+++ b/app/views/ldap_auth_sources/_form.html.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="op-toast -info">
<a title="close" class="op-toast--close icon-context icon-close"></a>
<div class="op-toast--content">
- <%= t('ldap_auth_sources.technical_warning_html') %>
+ <%= t("ldap_auth_sources.technical_warning_html") %>
</div>
</div>
<% end %>
@@ -48,69 +48,69 @@ See COPYRIGHT and LICENSE files for more details.
<div class="op-toast--content">
<%= t(:label_seeded_from_env_warning) %>
<br>
- <%= link_to t('ldap_auth_sources.back_to_index'), { action: :index } %>
+ <%= link_to t("ldap_auth_sources.back_to_index"), { action: :index } %>
</div>
</div>
<% end %>
-<%= content_tag :fieldset, class: 'form--fieldset', disabled: @ldap_auth_source.seeded_from_env? do %>
+<%= content_tag :fieldset, class: "form--fieldset", disabled: @ldap_auth_source.seeded_from_env? do %>
<div class="form--field -required">
- <%= f.text_field 'name', required: true, container_class: '-middle' %>
+ <%= f.text_field "name", required: true, container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.name') %>
+ <%= t("ldap_auth_sources.attribute_texts.name") %>
</span>
</div>
<div class="form--field -required">
- <%= f.text_field 'host', required: true, container_class: '-middle' %>
+ <%= f.text_field "host", required: true, container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.host') %>
+ <%= t("ldap_auth_sources.attribute_texts.host") %>
</span>
</div>
- <div class="form--field -required"><%= f.text_field 'port', required: true, size: 6, container_class: '-xslim' %></div>
+ <div class="form--field -required"><%= f.text_field "port", required: true, size: 6, container_class: "-xslim" %></div>
<% end %>
-<%= content_tag :fieldset, class: 'form--fieldset', disabled: @ldap_auth_source.seeded_from_env? do %>
- <legend class="form--fieldset-legend"><%= t('ldap_auth_sources.connection_encryption') %></legend>
+<%= content_tag :fieldset, class: "form--fieldset", disabled: @ldap_auth_source.seeded_from_env? do %>
+ <legend class="form--fieldset-legend"><%= t("ldap_auth_sources.connection_encryption") %></legend>
<p>
- <%= t 'ldap_auth_sources.tls_mode.section_more_info_link_html',
+ <%= t "ldap_auth_sources.tls_mode.section_more_info_link_html",
link: OpenProject::Static::Links[:ldap_encryption_documentation][:href] %>
</p>
<div class="form--field">
<%= f.radio_button :tls_mode,
- 'start_tls',
- label: t('ldap_auth_sources.tls_mode.start_tls'),
- container_class: '-wide' %>
+ "start_tls",
+ label: t("ldap_auth_sources.tls_mode.start_tls"),
+ container_class: "-wide" %>
<p class="form--field-instructions">
- <%= t('ldap_auth_sources.tls_mode.start_tls_description') %>
+ <%= t("ldap_auth_sources.tls_mode.start_tls_description") %>
</p>
</div>
<div class="form--field">
<%= f.radio_button :tls_mode,
- 'simple_tls',
- label: t('ldap_auth_sources.tls_mode.simple_tls'),
- container_class: '-wide' %>
+ "simple_tls",
+ label: t("ldap_auth_sources.tls_mode.simple_tls"),
+ container_class: "-wide" %>
<p class="form--field-instructions">
- <%= t('ldap_auth_sources.tls_mode.simple_tls_description') %>
+ <%= t("ldap_auth_sources.tls_mode.simple_tls_description") %>
</p>
</div>
<div class="form--field">
<%= f.radio_button :tls_mode,
- 'plain_ldap',
- label: t('ldap_auth_sources.tls_mode.plain'),
- container_class: '-wide' %>
+ "plain_ldap",
+ label: t("ldap_auth_sources.tls_mode.plain"),
+ container_class: "-wide" %>
<p class="form--field-instructions">
- <%= t('ldap_auth_sources.tls_mode.plain_description') %>
+ <%= t("ldap_auth_sources.tls_mode.plain_description") %>
</p>
</div>
<% end %>
-<%= content_tag :fieldset, class: 'form--fieldset', disabled: @ldap_auth_source.seeded_from_env? do %>
- <legend class="form--fieldset-legend"><%= t('ldap_auth_sources.connection_encryption') %></legend>
+<%= content_tag :fieldset, class: "form--fieldset", disabled: @ldap_auth_source.seeded_from_env? do %>
+ <legend class="form--fieldset-legend"><%= t("ldap_auth_sources.connection_encryption") %></legend>
<div class="form--field">
<%= f.check_box :verify_peer,
- label: t('ldap_auth_sources.tls_options.verify_peer'),
- container_class: '-wide' %>
+ label: t("ldap_auth_sources.tls_options.verify_peer"),
+ container_class: "-wide" %>
<p class="form--field-instructions">
- <%= t('ldap_auth_sources.tls_options.verify_peer_description_html') %>
+ <%= t("ldap_auth_sources.tls_options.verify_peer_description_html") %>
</p>
</div>
<div class="form--field">
@@ -118,109 +118,109 @@ See COPYRIGHT and LICENSE files for more details.
label: LdapAuthSource.human_attribute_name(:tls_certificate_string),
placeholder: "-----BEGIN CERTIFICATE-----\n ..... \n-----END CERTIFICATE-----",
rows: 10,
- container_class: '-wide' %>
+ container_class: "-wide" %>
<div class="form--field-instructions">
- <p><%= t('ldap_auth_sources.tls_options.tls_certificate_description') %></p>
+ <p><%= t("ldap_auth_sources.tls_options.tls_certificate_description") %></p>
</div>
</div>
<% end %>
-<%= content_tag :fieldset, class: 'form--fieldset', disabled: @ldap_auth_source.seeded_from_env? do %>
- <legend class="form--fieldset-legend"><%= t('ldap_auth_sources.system_account') %></legend>
- <p><%= t 'ldap_auth_sources.system_account_legend' %></p>
+<%= content_tag :fieldset, class: "form--fieldset", disabled: @ldap_auth_source.seeded_from_env? do %>
+ <legend class="form--fieldset-legend"><%= t("ldap_auth_sources.system_account") %></legend>
+ <p><%= t "ldap_auth_sources.system_account_legend" %></p>
<div class="form--field">
- <%= f.text_field 'account', container_class: '-middle' %>
+ <%= f.text_field "account", container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.system_user_dn_html') %>
+ <%= t("ldap_auth_sources.attribute_texts.system_user_dn_html") %>
</span>
</div>
<div class="form--field">
- <%= f.password_field 'account_password',
+ <%= f.password_field "account_password",
label: LdapAuthSource.human_attribute_name(:password),
- placeholder: ((@ldap_auth_source.new_record? || @ldap_auth_source.account_password.blank?) ? '' : ('●' * 15)),
- autocomplete: 'off',
- container_class: '-middle' %>
+ placeholder: ((@ldap_auth_source.new_record? || @ldap_auth_source.account_password.blank?) ? "" : ("●" * 15)),
+ autocomplete: "off",
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.system_user_password') %>
+ <%= t("ldap_auth_sources.attribute_texts.system_user_password") %>
</span>
</div>
<% end %>
-<%= content_tag :fieldset, class: 'form--fieldset', disabled: @ldap_auth_source.seeded_from_env? do %>
- <legend class="form--fieldset-legend"><%= t('ldap_auth_sources.ldap_details') %></legend>
+<%= content_tag :fieldset, class: "form--fieldset", disabled: @ldap_auth_source.seeded_from_env? do %>
+ <legend class="form--fieldset-legend"><%= t("ldap_auth_sources.ldap_details") %></legend>
<div class="form--field">
- <%= f.text_field :base_dn, size: 60, container_class: '-wide' %>
+ <%= f.text_field :base_dn, size: 60, container_class: "-wide" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.base_dn') %>
+ <%= t("ldap_auth_sources.attribute_texts.base_dn") %>
</span>
</div>
<div class="form--field">
<%= f.text_area :filter_string,
rows: 10,
placeholder: "#{t(:label_default)}: (objectClass=*)",
- container_class: '-wide' %>
+ container_class: "-wide" %>
<div class="form--field-instructions">
- <p><%= t('ldap_auth_sources.attribute_texts.filter_string') %></p>
- <p><%= t('ldap_auth_sources.attribute_texts.filter_string_concat') %></p>
+ <p><%= t("ldap_auth_sources.attribute_texts.filter_string") %></p>
+ <p><%= t("ldap_auth_sources.attribute_texts.filter_string_concat") %></p>
</div>
</div>
<div class="form--field">
- <%= f.check_box 'onthefly_register', label: LdapAuthSource.human_attribute_name(:onthefly) %>
+ <%= f.check_box "onthefly_register", label: LdapAuthSource.human_attribute_name(:onthefly) %>
<div class="form--field-instructions">
- <p><%= t('ldap_auth_sources.attribute_texts.onthefly_register') %></p>
+ <p><%= t("ldap_auth_sources.attribute_texts.onthefly_register") %></p>
</div>
</div>
<% end %>
-<%= content_tag :fieldset, class: 'form--fieldset', disabled: @ldap_auth_source.seeded_from_env? do %>
- <legend class="form--fieldset-legend"><%= t('ldap_auth_sources.user_settings') %></legend>
- <p><%= t 'ldap_auth_sources.user_settings_legend' %></p>
+<%= content_tag :fieldset, class: "form--fieldset", disabled: @ldap_auth_source.seeded_from_env? do %>
+ <legend class="form--fieldset-legend"><%= t("ldap_auth_sources.user_settings") %></legend>
+ <p><%= t "ldap_auth_sources.user_settings_legend" %></p>
<div class="form--field -required">
- <%= f.text_field 'attr_login',
+ <%= f.text_field "attr_login",
label: LdapAuthSource.human_attribute_name(:login),
required: true,
size: 20,
- placeholder: 'uid',
- container_class: '-middle' %>
+ placeholder: "uid",
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.login_map') %>
+ <%= t("ldap_auth_sources.attribute_texts.login_map") %>
</span>
</div>
<div class="form--field">
- <%= f.text_field 'attr_firstname',
+ <%= f.text_field "attr_firstname",
label: LdapAuthSource.human_attribute_name(:firstname),
size: 20,
- placeholder: 'givenName',
- container_class: '-middle' %>
+ placeholder: "givenName",
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.generic_map', attribute: LdapAuthSource.human_attribute_name(:firstname)) %>
+ <%= t("ldap_auth_sources.attribute_texts.generic_map", attribute: LdapAuthSource.human_attribute_name(:firstname)) %>
</span>
</div>
<div class="form--field">
- <%= f.text_field 'attr_lastname',
+ <%= f.text_field "attr_lastname",
label: LdapAuthSource.human_attribute_name(:lastname),
size: 20,
- placeholder: 'sn',
- container_class: '-middle' %>
+ placeholder: "sn",
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.generic_map', attribute: LdapAuthSource.human_attribute_name(:lastname)) %>
+ <%= t("ldap_auth_sources.attribute_texts.generic_map", attribute: LdapAuthSource.human_attribute_name(:lastname)) %>
</span>
</div>
<div class="form--field">
- <%= f.text_field 'attr_mail',
+ <%= f.text_field "attr_mail",
label: LdapAuthSource.human_attribute_name(:mail),
size: 20,
- placeholder: 'mail',
- container_class: '-middle' %>
+ placeholder: "mail",
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.generic_map', attribute: LdapAuthSource.human_attribute_name(:mail)) %>
+ <%= t("ldap_auth_sources.attribute_texts.generic_map", attribute: LdapAuthSource.human_attribute_name(:mail)) %>
</span>
</div>
<div class="form--field">
- <%= f.text_field 'attr_admin', label: LdapAuthSource.human_attribute_name(:admin), size: 20, container_class: '-middle' %>
+ <%= f.text_field "attr_admin", label: LdapAuthSource.human_attribute_name(:admin), size: 20, container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.admin_map_html') %>
+ <%= t("ldap_auth_sources.attribute_texts.admin_map_html") %>
</span>
</div>
<% end %>
diff --git a/app/views/ldap_auth_sources/edit.html.erb b/app/views/ldap_auth_sources/edit.html.erb
index 93647c9bb62..72cf1050f38 100644
--- a/app/views/ldap_auth_sources/edit.html.erb
+++ b/app/views/ldap_auth_sources/edit.html.erb
@@ -40,8 +40,8 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @ldap_auth_source do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<% unless @ldap_auth_source.seeded_from_env? %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
<% end %>
diff --git a/app/views/ldap_auth_sources/new.html.erb b/app/views/ldap_auth_sources/new.html.erb
index e31037644ef..f2c995b462e 100644
--- a/app/views/ldap_auth_sources/new.html.erb
+++ b/app/views/ldap_auth_sources/new.html.erb
@@ -40,6 +40,6 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @ldap_auth_source, as: :ldap_auth_source do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/mailer/_border_table.html.erb b/app/views/mailer/_border_table.html.erb
index 3da9ec802c8..dc93bafd3ce 100644
--- a/app/views/mailer/_border_table.html.erb
+++ b/app/views/mailer/_border_table.html.erb
@@ -1,15 +1,15 @@
-<table <%= placeholder_table_styles(width: '100%', style: "width:100%;border-width:1px;border-color:#E0E0E0;border-style:solid;border-radius:10px") %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;border-width:1px;border-color:#E0E0E0;border-style:solid;border-radius:10px") %>>
<tr>
- <%= placeholder_cell('12px', vertical: false) %>
+ <%= placeholder_cell("12px", vertical: false) %>
</tr>
<tr>
<td>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;font-size:14px;') %>>
+ <table <%= placeholder_table_styles(width: "100%", style: "width:100%;font-size:14px;") %>>
<%= yield %>
</table>
</td>
</tr>
<tr>
- <%= placeholder_cell('12px', vertical: false) %>
+ <%= placeholder_cell("12px", vertical: false) %>
</tr>
</table>
diff --git a/app/views/mailer/_mailer_button.html.erb b/app/views/mailer/_mailer_button.html.erb
index 42db2321b68..7e700917573 100644
--- a/app/views/mailer/_mailer_button.html.erb
+++ b/app/views/mailer/_mailer_button.html.erb
@@ -1,14 +1,14 @@
-<table <%= placeholder_table_styles(style: 'font-size:14px;') %>>
+<table <%= placeholder_table_styles(style: "font-size:14px;") %>>
<tr>
<td>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;') %>>
+ <table <%= placeholder_table_styles(width: "100%", style: "width:100%;") %>>
<tr>
<td>
</td>
</tr>
</table>
</td>
- <%= placeholder_cell('10px', vertical: true) %>
+ <%= placeholder_cell("10px", vertical: true) %>
<td>
<table <%= placeholder_table_styles %>>
<tr>
diff --git a/app/views/mailer/_mailer_header.html.erb b/app/views/mailer/_mailer_header.html.erb
index e1ca6e830d1..443e138f786 100644
--- a/app/views/mailer/_mailer_header.html.erb
+++ b/app/views/mailer/_mailer_header.html.erb
@@ -1,10 +1,10 @@
-<table <%= placeholder_table_styles(width:'100%',style: "width:100%;min-width:100%") %>>
+<table <%= placeholder_table_styles(width:"100%",style: "width:100%;min-width:100%") %>>
<tr>
<td>
<table <%= placeholder_table_styles %>>
<tr>
<td>
- <table <%= placeholder_table_styles(width:'100%',style: "width:100%") %>>
+ <table <%= placeholder_table_styles(width:"100%",style: "width:100%") %>>
<tr>
<td>
<span style="font-size: 24px; color: #333333;">
@@ -13,7 +13,7 @@
</td>
</tr>
<tr>
- <%= placeholder_cell('8px', vertical: false) %>
+ <%= placeholder_cell("8px", vertical: false) %>
</tr>
<% if local_assigns[:summary] %>
<tr>
@@ -25,7 +25,7 @@
</tr>
<% end %>
<tr>
- <%= placeholder_cell('24px', vertical: false) %>
+ <%= placeholder_cell("24px", vertical: false) %>
</tr>
<% if defined?(button_href) && defined?(button_text) %>
<tr>
@@ -46,12 +46,12 @@
<% end %>
<% if local_assigns[:bottom_spacing] != false %>
<tr>
- <%= placeholder_cell('16px', vertical: false) %>
+ <%= placeholder_cell("16px", vertical: false) %>
</tr>
<% end %>
</table>
</td>
- <%= placeholder_cell('16px', vertical: true) %>
+ <%= placeholder_cell("16px", vertical: true) %>
</tr>
</table>
</td>
diff --git a/app/views/mailer/_notification_row.html.erb b/app/views/mailer/_notification_row.html.erb
index 484ac31d4bf..a6b599b8c11 100644
--- a/app/views/mailer/_notification_row.html.erb
+++ b/app/views/mailer/_notification_row.html.erb
@@ -1,12 +1,12 @@
<a style="text-decoration: none;display: block;"
href="<%= local_assigns[:notification_url] || details_notifications_url(work_package.id, tab: :activity) %>"
target="_blank">
- <%= render layout: 'mailer/border_table' do %>
+ <%= render layout: "mailer/border_table" do %>
<tr>
<td>
- <table <%= placeholder_table_styles(width:'100%',style: 'width:100%;font-size:14px;') %>>
+ <table <%= placeholder_table_styles(width:"100%",style: "width:100%;font-size:14px;") %>>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
<table <%= placeholder_table_styles %>>
<tr>
@@ -25,14 +25,14 @@
</tr>
</table>
</td>
- <%= placeholder_cell('8px', vertical: true) %>
+ <%= placeholder_cell("8px", vertical: true) %>
<td width="100%" style="color: #878787;">
#<%= work_package.id %> - <%= work_package.project %>
- <%= ' - ' unless unique_reasons.length === 1 && unique_reasons.first.nil? %>
+ <%= " - " unless unique_reasons.length === 1 && unique_reasons.first.nil? %>
<% unique_reasons.each_with_index do |reason, index| %>
<%= I18n.t(
:"mail.work_packages.reason.#{reason || :unknown}",
- default: '') %><%= ', ' unless unique_reasons.size-1 == index %>
+ default: "") %><%= ", " unless unique_reasons.size-1 == index %>
<% end %>
</td>
<td>
@@ -55,20 +55,20 @@
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
- <%= placeholder_cell('16px', vertical: false) %>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
+ <%= placeholder_cell("16px", vertical: false) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
- <table <%= placeholder_table_styles(style: 'font-size:16px;font-weight:bold') %>>
+ <table <%= placeholder_table_styles(style: "font-size:16px;font-weight:bold") %>>
<tr>
<td width="100%" style="color: #333333;">
- <span style="color: <%= type_color(work_package.type, '#333333') %>;white-space: nowrap;">
+ <span style="color: <%= type_color(work_package.type, "#333333") %>;white-space: nowrap;">
<%= work_package.type.to_s.upcase %>
</span>
<%= work_package.subject %>
@@ -76,30 +76,30 @@
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
- <%= placeholder_cell('12px', vertical: false) %>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
+ <%= placeholder_cell("12px", vertical: false) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td><%= yield %></td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
</table>
</td>
</tr>
<tr>
- <%= placeholder_cell('12px', vertical: false) %>
+ <%= placeholder_cell("12px", vertical: false) %>
</tr>
<% end %>
</a>
<table>
<tr>
- <%= placeholder_cell('0px', vertical: false) %>
+ <%= placeholder_cell("0px", vertical: false) %>
</tr>
</table>
@@ -107,11 +107,11 @@
href="<%= defined?(open_in_browser_path) ? open_in_browser_path : details_notifications_url(work_package.id, tab: :activity) %>"
target="_blank"
rel="noopener noreferrer">
- <%= I18n.t('mail.work_packages.open_in_browser') %>
+ <%= I18n.t("mail.work_packages.open_in_browser") %>
</a>
<table>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
diff --git a/app/views/mailer/_notification_settings_table.html.erb b/app/views/mailer/_notification_settings_table.html.erb
index 1df5ab15a2c..80631068fc6 100644
--- a/app/views/mailer/_notification_settings_table.html.erb
+++ b/app/views/mailer/_notification_settings_table.html.erb
@@ -1,7 +1,7 @@
-<table <%= placeholder_table_styles(style: 'font-size:14px;') %>>
+<table <%= placeholder_table_styles(style: "font-size:14px;") %>>
<tr>
<td>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;') %>>
+ <table <%= placeholder_table_styles(width: "100%", style: "width:100%;") %>>
<tr>
<td>
<%= yield %>
@@ -9,9 +9,9 @@
</tr>
</table>
</td>
- <%= placeholder_cell('10px', vertical: true) %>
+ <%= placeholder_cell("10px", vertical: true) %>
<td>
- <%= render partial: 'mailer/notification_settings_button', locals: {
+ <%= render partial: "mailer/notification_settings_button", locals: {
url: button_url,
text: button_text
} %>
diff --git a/app/views/mailer/_spacer_table.html.erb b/app/views/mailer/_spacer_table.html.erb
index 93e4ffc076f..265429b18ea 100644
--- a/app/views/mailer/_spacer_table.html.erb
+++ b/app/views/mailer/_spacer_table.html.erb
@@ -1,21 +1,21 @@
<table <%= placeholder_table_styles %>>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
-<table <%= placeholder_table_styles(width:'100%',style: 'width:100%;max-width:700px;') %>>
+<table <%= placeholder_table_styles(width:"100%",style: "width:100%;max-width:700px;") %>>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
<%= yield %>
<table>
<tr>
- <%= placeholder_cell('40px', vertical: false) %>
+ <%= placeholder_cell("40px", vertical: false) %>
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
</table>
diff --git a/app/views/members/_autocomplete_for_member.html.erb b/app/views/members/_autocomplete_for_member.html.erb
index c476d329245..974d7b89f45 100644
--- a/app/views/members/_autocomplete_for_member.html.erb
+++ b/app/views/members/_autocomplete_for_member.html.erb
@@ -32,25 +32,25 @@ See COPYRIGHT and LICENSE files for more details.
<fieldset class="form--fieldset principals medium-11">
<legend class="form--fieldset-legend"><%= "#{t(:label_user_plural)}/#{t(:label_group_plural)}" %></legend>
<% if principals.empty? %>
- <%= t('notice_no_principals_found') %>
+ <%= t("notice_no_principals_found") %>
<% else %>
<% if principals.size > 20 %>
- <%= t('notice_to_many_principals_to_display') %>
+ <%= t("notice_to_many_principals_to_display") %>
<% else %>
- <%= principals_check_box_tags 'member[user_ids][]', principals %>
+ <%= principals_check_box_tags "member[user_ids][]", principals %>
<% end %>
<% end %>
</fieldset>
<div class="hidden-for-sighted" aria-live="polite">
<% if principals.empty? %>
- <label aria-role="alert"><%= t('notice_no_principals_found') %></label>
+ <label aria-role="alert"><%= t("notice_no_principals_found") %></label>
<% else %>
<% if principals.size > 20 %>
- <label><%= t('notice_to_many_principals_to_display') %></label>
+ <label><%= t("notice_to_many_principals_to_display") %></label>
<% elsif principals.size == 1 %>
- <label><%= t('notice_principals_found_single') %></label>
+ <label><%= t("notice_principals_found_single") %></label>
<% else %>
- <label><%= t('notice_principals_found_multiple', number: principals.size) %></label>
+ <label><%= t("notice_principals_found_multiple", number: principals.size) %></label>
<% end %>
<% end %>
</div>
@@ -58,12 +58,12 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-block medium-4 roles">
<fieldset class="form--fieldset medium-11">
<legend class="form--fieldset-legend"><%= t(:label_role_plural) %></legend>
- <%= labeled_check_box_tags 'member[role_ids][]', roles %>
+ <%= labeled_check_box_tags "member[role_ids][]", roles %>
</fieldset>
</div>
</div>
<%= styled_button_tag t(:button_add),
- id: 'member-add-submit',
- class: 'button -primary -with-icon icon-checkmark',
+ id: "member-add-submit",
+ class: "button -primary -with-icon icon-checkmark",
style: roles.any? && (principals.any? && principals.size <= 20) ? "": "display:none" %>
-<%= link_to I18n.t('button_cancel'), '', class: 'button -with-icon icon-cancel hide-member-form-button', role: 'button' %>
+<%= link_to I18n.t("button_cancel"), "", class: "button -with-icon icon-cancel hide-member-form-button", role: "button" %>
diff --git a/app/views/members/_common_notice.html.erb b/app/views/members/_common_notice.html.erb
index 5a4e13abc31..9399323b60f 100644
--- a/app/views/members/_common_notice.html.erb
+++ b/app/views/members/_common_notice.html.erb
@@ -27,10 +27,10 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<div class="flash notice icon icon-yes <%= User.current.pref.auto_hide_popups? ? 'autohide-toaster' : '' %>"
+<div class="flash notice icon icon-yes <%= User.current.pref.auto_hide_popups? ? "autohide-toaster" : "" %>"
role="alert">
<%= h message %>
<span class="close-handler" role="button" tabindex="0" aria-label="{{ ::I18n.t('js.close_popup_title') }}">
- <%= op_icon('icon-close') %>
+ <%= op_icon("icon-close") %>
</span>
</div>
diff --git a/app/views/members/_member_form.html.erb b/app/views/members/_member_form.html.erb
index 8679c438dde..b461e15908d 100644
--- a/app/views/members/_member_form.html.erb
+++ b/app/views/members/_member_form.html.erb
@@ -32,13 +32,13 @@ See COPYRIGHT and LICENSE files for more details.
html: { id: "members_add_form",
class: "form -vertical -bordered -medium-compressed"},
data: {
- 'members-form-target': 'addMemberForm',
+ 'members-form-target': "addMemberForm",
controller: "user-limit",
'user-limit-open-seats-value': OpenProject::Enterprise.open_seats_count,
'user-limit-member-autocompleter-value': true,
'application-target': "dynamic",
}) do |f| %>
- <a title="<%= t('js.close_form_title') %>"
+ <a title="<%= t("js.close_form_title") %>"
class="hide-member-form-button form--close icon-context icon-close"
data-action="members-form#hideAddMemberForm"></a>
<div id="new-member-message"></div>
@@ -56,11 +56,11 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= styled_label_tag :member_user_ids, user_id_title %>
- <%= angular_component_tag 'opce-members-autocompleter',
+ <%= angular_component_tag "opce-members-autocompleter",
inputs: {
inputName: "member[user_ids]",
inputBindValue: "id",
- url: autocomplete_for_member_project_members_path + '.json',
+ url: autocomplete_for_member_project_members_path + ".json",
appendTo: "body",
multiple: true
} %>
@@ -70,29 +70,29 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :member_role_ids do %>
<%= content_tag :span, t(:label_role_search) %>
- <%= angular_component_tag 'opce-attribute-help-text',
+ <%= angular_component_tag "opce-attribute-help-text",
inputs: {
- attribute: 'members',
- attributeScope: 'Project'
+ attribute: "members",
+ attributeScope: "Project"
} %>
<% end %>
<div class="form--field-container">
<div class="form--select-container -auto">
<% options = roles.collect { |obj| [obj.name, obj.id] } %>
- <%= select_tag 'member[role_ids][]', options_for_select(options),
+ <%= select_tag "member[role_ids][]", options_for_select(options),
multiple: false,
no_label: true,
title: t(:label_role_search),
tabIndex: 0,
- class: 'form--select',
- id: 'member_role_ids' %>
+ class: "form--select",
+ id: "member_role_ids" %>
</div>
</div>
</div>
<div id="member-add-submit-button--container">
<%= f.button t(:button_add),
- class: 'button -primary -with-icon icon-checkmark',
- id: 'add-member--submit-button' %>
+ class: "button -primary -with-icon icon-checkmark",
+ id: "add-member--submit-button" %>
</div>
</div>
</div>
diff --git a/app/views/members/index.html.erb b/app/views/members/index.html.erb
index 87305b630a3..1542e8aac94 100644
--- a/app/views/members/index.html.erb
+++ b/app/views/members/index.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render ::Members::IndexPageHeaderComponent.new(project: @project) %>
<%= render ::Members::IndexSubHeaderComponent.new(project: @project, filter_options: @members_filter_options) %>
- <%= error_messages_for 'member' %>
+ <%= error_messages_for "member" %>
<div>
<% if @roles.any? %>
@@ -42,9 +42,9 @@ See COPYRIGHT and LICENSE files for more details.
locals: { project: @project, roles: @roles } %>
<% else %>
<p>
- <%= I18n.t('text_no_roles_defined') %>
+ <%= I18n.t("text_no_roles_defined") %>
</p>
- <%= link_to I18n.t('button_back'), :back, class: 'button' %>
+ <%= link_to I18n.t("button_back"), :back, class: "button" %>
<% end %>
</div>
<% end %>
diff --git a/app/views/members/menus/_menu.html.erb b/app/views/members/menus/_menu.html.erb
index 5fd49c220ca..7d0a2053561 100644
--- a/app/views/members/menus/_menu.html.erb
+++ b/app/views/members/menus/_menu.html.erb
@@ -1,5 +1,5 @@
<%= turbo_frame_tag "members_menu",
src: project_members_menu_path(@project, params.permit(*Members::UserFilterComponent.filter_param_keys)),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb
index 55ee1461fff..f033b67a299 100644
--- a/app/views/messages/_form.html.erb
+++ b/app/views/messages/_form.html.erb
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'message' %>
+<%= error_messages_for "message" %>
<% replying ||= false %>
<% representer_object = f.object %>
<% resource = message_attachment_representer(representer_object) %>
@@ -34,30 +34,30 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -required">
<%= f.text_field :subject,
required: true,
- container_class: '-wide',
+ container_class: "-wide",
autofocus: true,
- data: { 'forum-messages-target': 'subject' } %>
+ data: { 'forum-messages-target': "subject" } %>
</div>
<% unless replying %>
<div class="form--field">
- <%= f.check_box :sticky, label: I18n.t('js.label_board_sticky') %>
+ <%= f.check_box :sticky, label: I18n.t("js.label_board_sticky") %>
</div>
<div class="form--field">
- <%= f.check_box :locked, label: I18n.t('js.label_board_locked') %>
+ <%= f.check_box :locked, label: I18n.t("js.label_board_locked") %>
</div>
<% end %>
<% if !replying && [email protected]_record? && User.current.allowed_in_project?(:edit_messages, @project) %>
<div class="form--field">
- <%= f.select :forum_id, @project.forums.collect {|b| [b.name, b.id]}, label: Forum.model_name.human, container_class: '-wide' %>
+ <%= f.select :forum_id, @project.forums.collect {|b| [b.name, b.id]}, label: Forum.model_name.human, container_class: "-wide" %>
</div>
<% end %>
<div class="form--field -required -visible-overflow">
<%= f.text_area :content,
label: t(:description_message_content),
- class: 'wiki-edit',
- container_class: '-xxwide',
- label_options: { class: '-top' },
+ class: "wiki-edit",
+ container_class: "-xxwide",
+ label_options: { class: "-top" },
with_text_formatting: true,
resource: resource,
preview_context: preview_context(representer_object) %>
diff --git a/app/views/messages/edit.html.erb b/app/views/messages/edit.html.erb
index 593dd0edb3f..926d188e4db 100644
--- a/app/views/messages/edit.html.erb
+++ b/app/views/messages/edit.html.erb
@@ -42,15 +42,15 @@ See COPYRIGHT and LICENSE files for more details.
method: :put,
html: {
multipart: true,
- id: 'message-form',
- class: 'form',
+ id: "message-form",
+ class: "form",
data: { turbo: false }
} do |f| %>
- <%= render partial: 'form', locals: { f: f, replying: [email protected]? } %>
+ <%= render partial: "form", locals: { f: f, replying: [email protected]? } %>
<hr class="form--separator">
- <%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), topic_path(@message), class: 'button -with-icon icon-cancel' %>
+ <%= f.button t(:button_save), class: "button -primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), topic_path(@message), class: "button -with-icon icon-cancel" %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb
index 4410ace0951..44e87bc5fd5 100644
--- a/app/views/messages/new.html.erb
+++ b/app/views/messages/new.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
header.with_title { t(:label_message_new) }
header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },
{ href: project_forums_path(@project), text: t(:label_forum_plural) },
- { href: url_for(controller: '/forums', action: 'show', project_id: @project, id: @forum), text: @forum.name },
+ { href: url_for(controller: "/forums", action: "show", project_id: @project, id: @forum), text: @forum.name },
t(:label_message_new)])
end
%>
@@ -40,16 +40,16 @@ See COPYRIGHT and LICENSE files for more details.
url: forum_topics_path(@forum),
html: {
multipart: true,
- id: 'message-form',
- class: 'form',
+ id: "message-form",
+ class: "form",
data: { turbo: false }
} do |f| %>
- <%= render partial: 'messages/form', locals: { f: f } %>
+ <%= render partial: "messages/form", locals: { f: f } %>
<hr class="form--separator">
- <%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), project_forum_path(@project, @forum), class: 'button -with-icon icon-cancel' %>
+ <%= f.button t(:button_create), class: "button -primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), project_forum_path(@project, @forum), class: "button -with-icon icon-cancel" %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/my/_password_form_fields.html.erb b/app/views/my/_password_form_fields.html.erb
index f63f61509f7..e2b8b832dcc 100644
--- a/app/views/my/_password_form_fields.html.erb
+++ b/app/views/my/_password_form_fields.html.erb
@@ -38,26 +38,26 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<div class="form--field -required">
- <%= styled_label_tag 'password', User.human_attribute_name(:current_password) %>
+ <%= styled_label_tag "password", User.human_attribute_name(:current_password) %>
<div class="form--field-container">
- <%= styled_password_field_tag 'password',
+ <%= styled_password_field_tag "password",
nil,
size: 25,
required: true,
- container_class: (defined? input_size) ? "-#{input_size}" : '' %>
+ container_class: (defined? input_size) ? "-#{input_size}" : "" %>
</div>
</div>
<div class="form--field -required" style="padding-top: 1em">
- <%= styled_label_tag 'new_password', User.human_attribute_name(:new_password) %>
+ <%= styled_label_tag "new_password", User.human_attribute_name(:new_password) %>
<div class="form--field-container">
- <%= styled_password_field_tag 'new_password',
+ <%= styled_password_field_tag "new_password",
nil,
size: 25,
- 'aria-describedby' => 'new_password_tooltip',
+ "aria-describedby" => "new_password_tooltip",
required: true,
- class: 'advanced-tooltip-trigger',
- container_class: (defined? input_size) ? "-#{input_size}" : '' %>
+ class: "advanced-tooltip-trigger",
+ container_class: (defined? input_size) ? "-#{input_size}" : "" %>
</div>
<div class="form--field-instructions">
<%= render_password_complexity_hint %>
@@ -65,16 +65,16 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="form--field -required">
- <%= styled_label_tag 'new_password_confirmation',
+ <%= styled_label_tag "new_password_confirmation",
User.human_attribute_name(:password_confirmation) %>
<div class="form--field-container">
- <%= styled_password_field_tag 'new_password_confirmation',
+ <%= styled_password_field_tag "new_password_confirmation",
nil,
required: true,
- 'aria-describedby' => 'confirm_password_tooltip',
+ "aria-describedby" => "confirm_password_tooltip",
size: 25,
- class: 'advanced-tooltip-trigger',
- container_class: (defined? input_size) ? "-#{input_size}" : '' %>
+ class: "advanced-tooltip-trigger",
+ container_class: (defined? input_size) ? "-#{input_size}" : "" %>
</div>
<div class="form--field-instructions">
<%= I18n.t(:confirm,
diff --git a/app/views/my/access_token.html.erb b/app/views/my/access_token.html.erb
index d34b9152c74..a72a14f6212 100644
--- a/app/views/my/access_token.html.erb
+++ b/app/views/my/access_token.html.erb
@@ -27,24 +27,24 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title(t(:label_my_account), I18n.t('my_account.access_tokens.access_tokens')) -%>
+<% html_title(t(:label_my_account), I18n.t("my_account.access_tokens.access_tokens")) -%>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { I18n.t('my_account.access_tokens.access_tokens') }
+ header.with_title { I18n.t("my_account.access_tokens.access_tokens") }
header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },
- I18n.t('my_account.access_tokens.access_tokens')])
+ I18n.t("my_account.access_tokens.access_tokens")])
end
%>
<%= render ::My::AccessToken::APITokensSectionComponent.new(api_tokens: @user.api_tokens) %>
-<%= render partial: 'my/access_token_partials/icalendar_tokens_section',
+<%= render partial: "my/access_token_partials/icalendar_tokens_section",
locals: { ical_tokens_grouped_by_query: @ical_tokens_grouped_by_query } %>
-<%= render partial: 'my/access_token_partials/oauth_tokens_section',
+<%= render partial: "my/access_token_partials/oauth_tokens_section",
locals: { granted_applications: granted_applications } %>
-<%= render partial: 'my/access_token_partials/rss_tokens_section',
+<%= render partial: "my/access_token_partials/rss_tokens_section",
locals: { rss_token: @user.rss_token } %>
-<%= render partial: 'my/access_token_partials/storage_tokens_section',
+<%= render partial: "my/access_token_partials/storage_tokens_section",
locals: { storage_tokens: @storage_tokens } %>
<div class="generic-table--container">
<div class="generic-table--results-container">
diff --git a/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb b/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
index a761ca59ef3..271176027bd 100644
--- a/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
@@ -44,11 +44,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "my/access_token_partials/token_table_header",
locals: {
column_headers: [
- t('attributes.name'),
+ t("attributes.name"),
WorkPackage.human_attribute_name(:calendar),
WorkPackage.human_attribute_name(:project),
User.human_attribute_name(:created_at),
- t('my_account.access_tokens.headers.expiration')
+ t("my_account.access_tokens.headers.expiration")
]
} %>
<tbody>
@@ -71,13 +71,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= format_time(token.created_at.to_s) %>
</span>
</td>
- <td><%= t('my_account.access_tokens.indefinite_expiration') %></td>
+ <td><%= t("my_account.access_tokens.indefinite_expiration") %></td>
<td class="buttons">
<%= link_to "",
- { action: 'revoke_ical_token', id: token.id },
- data: { confirm: t('my_account.access_tokens.simple_revoke_confirmation'), test_selector: "ical-token-row-#{token.id}-revoke" },
+ { action: "revoke_ical_token", id: token.id },
+ data: { confirm: t("my_account.access_tokens.simple_revoke_confirmation"), test_selector: "ical-token-row-#{token.id}-revoke" },
method: :delete,
- class: 'icon icon-delete' %>
+ class: "icon icon-delete" %>
</td>
</tr>
<% end %>
@@ -88,13 +88,13 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% else %>
<span class="spot-icon spot-icon_inline spot-icon_info1"></span>
- <i><%= t('my_account.access_tokens.ical.empty_text_hint') %></i>
+ <i><%= t("my_account.access_tokens.ical.empty_text_hint") %></i>
<% end %>
<% else %>
<div tabindex="0" class="-info op-toast">
<div role="alert" aria-atomic="true" class="op-toast--content">
<p>
- <span><%= t('my_account.access_tokens.ical.disabled_text') %></span>
+ <span><%= t("my_account.access_tokens.ical.disabled_text") %></span>
</p>
</div>
</div>
diff --git a/app/views/my/access_token_partials/_oauth_tokens_section.html.erb b/app/views/my/access_token_partials/_oauth_tokens_section.html.erb
index 7514a3ddc5b..c83399e1892 100644
--- a/app/views/my/access_token_partials/_oauth_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_oauth_tokens_section.html.erb
@@ -43,9 +43,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "my/access_token_partials/token_table_header",
locals: {
column_headers: [
- t('attributes.name'),
+ t("attributes.name"),
User.human_attribute_name(:created_at),
- t('my_account.access_tokens.headers.expiration')
+ t("my_account.access_tokens.headers.expiration")
]
} %>
<tbody>
@@ -53,9 +53,9 @@ See COPYRIGHT and LICENSE files for more details.
<% latest = tokens.sort_by(&:created_at).last %>
<tr id="oauth-application-grant-<%= application.id %>">
<td class="-w-rel-60" data-test-selector="oauth-token-row-<%= application.id %>-name">
- <%= t('oauth.application.named', name: application.name) %>
+ <%= t("oauth.application.named", name: application.name) %>
&nbsp;
- (<%= t('oauth.x_active_tokens', count: tokens.count) %>)
+ (<%= t("oauth.x_active_tokens", count: tokens.count) %>)
</td>
<td>
<span><%= format_time(latest.created_at) %></span>
@@ -66,11 +66,11 @@ See COPYRIGHT and LICENSE files for more details.
<td class="buttons">
<%= link_to "",
revoke_my_oauth_application_path(application_id: application.id),
- data: { confirm: t('oauth.revoke_my_application_confirmation',
- token_count: t('oauth.x_active_tokens', count: tokens.count)),
+ data: { confirm: t("oauth.revoke_my_application_confirmation",
+ token_count: t("oauth.x_active_tokens", count: tokens.count)),
test_selector: "oauth-token-row-#{application.id}-revoke" },
method: :post,
- class: 'icon icon-delete' %>
+ class: "icon icon-delete" %>
</td>
</tr>
<% end %>
@@ -80,7 +80,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% else %>
<span class="spot-icon spot-icon_inline spot-icon_info1"></span>
- <i><%= t('my_account.access_tokens.oauth.empty_text_hint') %></i>
+ <i><%= t("my_account.access_tokens.oauth.empty_text_hint") %></i>
<% end %>
</div>
</div>
diff --git a/app/views/my/access_token_partials/_rss_tokens_section.html.erb b/app/views/my/access_token_partials/_rss_tokens_section.html.erb
index b6cf8549834..552d59c6837 100644
--- a/app/views/my/access_token_partials/_rss_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_rss_tokens_section.html.erb
@@ -44,9 +44,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "my/access_token_partials/token_table_header",
locals: {
column_headers: [
- t('attributes.name'),
+ t("attributes.name"),
User.human_attribute_name(:created_at),
- t('my_account.access_tokens.headers.expiration')
+ t("my_account.access_tokens.headers.expiration")
]
} %>
<tbody>
@@ -57,13 +57,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= format_time(rss_token.created_at.to_s) %>
</span>
</td>
- <td><%= t('my_account.access_tokens.indefinite_expiration') %></td>
+ <td><%= t("my_account.access_tokens.indefinite_expiration") %></td>
<td class="buttons">
<%= link_to "",
- { action: 'revoke_rss_key' },
+ { action: "revoke_rss_key" },
method: :delete,
- data: { confirm: t('my_account.access_tokens.simple_revoke_confirmation'), test_selector: 'rss-token-revoke' },
- class: 'icon icon-delete' %>
+ data: { confirm: t("my_account.access_tokens.simple_revoke_confirmation"), test_selector: "rss-token-revoke" },
+ class: "icon icon-delete" %>
</td>
</tr>
</tbody>
@@ -71,16 +71,16 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<% else %>
- <%= link_to({ action: 'generate_rss_key' }, method: :post, class: 'spot-link', data: { test_selector: 'rss-token-add' }) do %>
+ <%= link_to({ action: "generate_rss_key" }, method: :post, class: "spot-link", data: { test_selector: "rss-token-add" }) do %>
<span class="spot-icon spot-icon_add"></span>
- <span><%= t('my_account.access_tokens.rss.static_token_name') %></span>
+ <span><%= t("my_account.access_tokens.rss.static_token_name") %></span>
<% end %>
<% end %>
<% else %>
<div tabindex="0" class="-info op-toast">
<div role="alert" aria-atomic="true" class="op-toast--content">
<p>
- <span><%= t('my_account.access_tokens.rss.disabled_text') %></span>
+ <span><%= t("my_account.access_tokens.rss.disabled_text") %></span>
</p>
</div>
</div>
diff --git a/app/views/my/access_token_partials/_storage_tokens_section.html.erb b/app/views/my/access_token_partials/_storage_tokens_section.html.erb
index b6b2bd33e98..9672938489d 100644
--- a/app/views/my/access_token_partials/_storage_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_storage_tokens_section.html.erb
@@ -43,9 +43,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "my/access_token_partials/token_table_header",
locals: {
column_headers: [
- t('attributes.name'),
+ t("attributes.name"),
User.human_attribute_name(:created_at),
- t('my_account.access_tokens.headers.expiration')
+ t("my_account.access_tokens.headers.expiration")
]
} %>
<tbody>
@@ -63,10 +63,10 @@ See COPYRIGHT and LICENSE files for more details.
<td class="buttons">
<%= link_to "",
storage_token_delete_path(token.id),
- data: { confirm: t('my_account.access_tokens.storages.revoke_token', storage: token.oauth_client.integration.name),
+ data: { confirm: t("my_account.access_tokens.storages.revoke_token", storage: token.oauth_client.integration.name),
test_selector: "storages-token-row-#{token.id}-revoke" },
method: :delete,
- class: 'icon icon-delete' %>
+ class: "icon icon-delete" %>
</td>
</tr>
<% end %>
@@ -76,7 +76,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% else %>
<span class="spot-icon spot-icon_inline spot-icon_info1"></span>
- <i><%= t('my_account.access_tokens.storages.empty_text_hint') %></i>
+ <i><%= t("my_account.access_tokens.storages.empty_text_hint") %></i>
<% end %>
</div>
</div>
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index f804866228e..f16a7b95b75 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -37,14 +37,14 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= error_messages_for 'user' %>
+<%= error_messages_for "user" %>
<%= password_confirmation_form_for @user,
as: :user,
- url: { action: 'update_account' },
+ url: { action: "update_account" },
builder: ::TabularFormBuilder,
lang: current_language,
- html: { id: 'my_account_form', class: '-wide-labels' } do |f| %>
+ html: { id: "my_account_form", class: "-wide-labels" } do |f| %>
<section class="form--section">
<div class="form--field">
<label class="form--label" for="username">
@@ -57,33 +57,33 @@ See COPYRIGHT and LICENSE files for more details.
<% login_via_provider = [email protected]_url %>
<% login_via_ldap = [email protected]_auth_source_id %>
<div class="form--field -required">
- <%= f.text_field :firstname, required: true, container_class: '-middle', disabled: login_via_provider || login_via_ldap %>
+ <%= f.text_field :firstname, required: true, container_class: "-middle", disabled: login_via_provider || login_via_ldap %>
<% if login_via_provider %>
- <span class="form--field-instructions"><%= t('user.text_change_disabled_for_provider_login') %></span>
+ <span class="form--field-instructions"><%= t("user.text_change_disabled_for_provider_login") %></span>
<% elsif login_via_ldap %>
- <span class="form--field-instructions"><%= t('user.text_change_disabled_for_ldap_login') %></span>
+ <span class="form--field-instructions"><%= t("user.text_change_disabled_for_ldap_login") %></span>
<% end %>
</div>
<div class="form--field -required">
- <%= f.text_field :lastname, required: true, container_class: '-middle', disabled: login_via_provider || login_via_ldap %>
+ <%= f.text_field :lastname, required: true, container_class: "-middle", disabled: login_via_provider || login_via_ldap %>
<% if login_via_provider %>
- <span class="form--field-instructions"><%= t('user.text_change_disabled_for_provider_login') %></span>
+ <span class="form--field-instructions"><%= t("user.text_change_disabled_for_provider_login") %></span>
<% elsif login_via_ldap %>
- <span class="form--field-instructions"><%= t('user.text_change_disabled_for_ldap_login') %></span>
+ <span class="form--field-instructions"><%= t("user.text_change_disabled_for_ldap_login") %></span>
<% end %>
</div>
<div class="form--field -required">
- <%= f.text_field :mail, required: true, container_class: '-middle', disabled: login_via_ldap %>
+ <%= f.text_field :mail, required: true, container_class: "-middle", disabled: login_via_ldap %>
<% if login_via_ldap %>
- <span class="form--field-instructions"><%= t('user.text_change_disabled_for_ldap_login') %></span>
+ <span class="form--field-instructions"><%= t("user.text_change_disabled_for_ldap_login") %></span>
<% end %>
</div>
<%= call_hook(:view_my_account, user: @user, form: f) %>
<%= render partial: "customizable/form",
- locals: { form: f, all_fields: true, only_required: false, input_size: '-middle' } %>
+ locals: { form: f, all_fields: true, only_required: false, input_size: "-middle" } %>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/my/password.html.erb b/app/views/my/password.html.erb
index 81be4364a82..aa195c6c039 100644
--- a/app/views/my/password.html.erb
+++ b/app/views/my/password.html.erb
@@ -36,15 +36,15 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= error_messages_for 'user' %>
+<%= error_messages_for "user" %>
<%= styled_form_tag({ action: :change_password },
- { autocomplete: 'off', class: 'form -wide-labels' }) do %>
+ { autocomplete: "off", class: "form -wide-labels" }) do %>
<%= back_url_hidden_field_tag %>
<%= hidden_field_tag :password_change_user_id, @user.id %>
<section class="form--section">
- <%= render partial: 'my/password_form_fields',
+ <%= render partial: "my/password_form_fields",
locals: { show_user_name: !!(defined? show_user_name) ? show_user_name : nil,
input_size: :middle } %>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/my/sessions/index.html.erb b/app/views/my/sessions/index.html.erb
index 518cd763d4c..b227a15be4a 100644
--- a/app/views/my/sessions/index.html.erb
+++ b/app/views/my/sessions/index.html.erb
@@ -26,23 +26,23 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title(t('users.sessions.title')) -%>
+<% html_title(t("users.sessions.title")) -%>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('users.sessions.title') }
+ header.with_title { t("users.sessions.title") }
header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },
- t('users.sessions.title')])
+ t("users.sessions.title")])
end
%>
-<p><%= t('users.sessions.instructions') %></p>
+<p><%= t("users.sessions.instructions") %></p>
<%= render ::Users::Sessions::TableComponent.new(rows: @sessions, current_session: session) %>
<% if Setting::Autologin.enabled? && @autologin_tokens.any? %>
- <h3><%= t('users.sessions.remembered_devices') %></h3>
- <p><%= t('users.sessions.remembered_devices_caption') %></p>
+ <h3><%= t("users.sessions.remembered_devices") %></h3>
+ <p><%= t("users.sessions.remembered_devices_caption") %></p>
<%= render ::Users::AutoLoginTokens::TableComponent.new(rows: @autologin_tokens, current_token: @current_token) %>
<% end %>
diff --git a/app/views/my/settings.html.erb b/app/views/my/settings.html.erb
index 63f528d92f2..9b12045db7c 100644
--- a/app/views/my/settings.html.erb
+++ b/app/views/my/settings.html.erb
@@ -37,14 +37,14 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= error_messages_for 'user' %>
-<%= labelled_tabular_form_for @user, as: :user, url: { action: 'update_settings' },
+<%= error_messages_for "user" %>
+<%= labelled_tabular_form_for @user, as: :user, url: { action: "update_settings" },
lang: current_language,
- html: { id: 'my_account_form', class: 'form -wide-labels' } do |f| %>
+ html: { id: "my_account_form", class: "form -wide-labels" } do |f| %>
<fieldset class="form--fieldset">
- <div class="form--field"><%= f.select :language, lang_options_for_select, container_class: '-middle' %></div>
- <%= render partial: 'users/preferences', locals: { input_size: :middle } %>
+ <div class="form--field"><%= f.select :language, lang_options_for_select, container_class: "-middle" %></div>
+ <%= render partial: "users/preferences", locals: { input_size: :middle } %>
</fieldset>
<%= call_hook(:view_my_settings, user: @user, form: f) %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/news/_form.html.erb b/app/views/news/_form.html.erb
index d98e2de02b7..24619c8075f 100644
--- a/app/views/news/_form.html.erb
+++ b/app/views/news/_form.html.erb
@@ -26,20 +26,20 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'news' %>
+<%= error_messages_for "news" %>
<div class="form--field -required">
- <%= f.text_field :title, required: true, size: 60, container_class: '-xxwide' %>
+ <%= f.text_field :title, required: true, size: 60, container_class: "-xxwide" %>
</div>
<div class="form--field">
<%= f.text_area :summary,
cols: 60,
rows: 4,
- class: 'wiki-edit wiki-toolbar -small',
- container_class: '-xxwide' %>
+ class: "wiki-edit wiki-toolbar -small",
+ container_class: "-xxwide" %>
</div>
<div class="form--field -visible-overflow">
<%= f.text_area :description,
- class: 'wiki-edit wiki-toolbar',
- container_class: '-xxwide',
+ class: "wiki-edit wiki-toolbar",
+ container_class: "-xxwide",
with_text_formatting: true %>
</div>
diff --git a/app/views/news/_news.html.erb b/app/views/news/_news.html.erb
index aac0c968b85..a20fb3c6d35 100644
--- a/app/views/news/_news.html.erb
+++ b/app/views/news/_news.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="news">
- <%= link_to_project(news.project) + ': ' unless @project %>
+ <%= link_to_project(news.project) + ": " unless @project %>
<h4 class='overview'><%= link_to h(news.title), news_path(news) %></h4>
<p class="author additional-information"><%= authoring news.created_at, news.author %></p>
<div class="comment">
diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erb
index aa81b13f496..1822f6982ef 100644
--- a/app/views/news/edit.html.erb
+++ b/app/views/news/edit.html.erb
@@ -38,10 +38,10 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+<%= labelled_tabular_form_for @news, html: { id: "news-form" } do |f| %>
+ <%= render partial: "form", locals: { f: f } %>
<hr class="form--separator">
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), news_path(@news), class: 'button -with-icon icon-cancel' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), news_path(@news), class: "button -with-icon icon-cancel" %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb
index 8391f4d4a9d..53b32f69763 100644
--- a/app/views/news/index.html.erb
+++ b/app/views/news/index.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_news_new)},
title: I18n.t(:label_work_package_status_new),
tag: :a,
- id: 'new_news_link',
+ id: "new_news_link",
data: { "test-selector": "add-news-button"},
href: new_project_news_path(@project)) do |button|
button.with_leading_visual_icon(icon: :plus)
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @newss.any? %>
<% @newss.each do |news| %>
<div class="news">
- <h3 class="news--header"><%= avatar(news.author) %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
+ <h3 class="news--header"><%= avatar(news.author) %><%= link_to_project(news.project) + ": " unless news.project == @project %>
<%= link_to h(news.title), news_path(news) %>
<%= "(#{t(:label_x_comments, count: news.comments_count)})" if news.comments_count > 0 %></h3>
<p class="author additional-information"><%= authoring news.created_at, news.author %></p>
@@ -82,9 +82,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= pagination_links_full @newss %>
<%= other_formats_links do |f| %>
- <%= f.link_to 'Atom', url: {project_id: @project, key: User.current.rss_key} %>
+ <%= f.link_to "Atom", url: {project_id: @project, key: User.current.rss_key} %>
<% end %>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, params.merge({format: 'atom', page: nil, key: User.current.rss_key})) %>
+ <%= auto_discovery_link_tag(:atom, params.merge({format: "atom", page: nil, key: User.current.rss_key})) %>
<% end %>
diff --git a/app/views/news/new.html.erb b/app/views/news/new.html.erb
index 383750570f3..3fae29245be 100644
--- a/app/views/news/new.html.erb
+++ b/app/views/news/new.html.erb
@@ -37,9 +37,9 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= labelled_tabular_form_for [@project, @news], html: { id: 'news-form' } do |f| %>
- <%= render partial: 'news/form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), project_news_index_path(@project), class: 'button -with-icon icon-cancel' %>
+<%= labelled_tabular_form_for [@project, @news], html: { id: "news-form" } do |f| %>
+ <%= render partial: "news/form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), project_news_index_path(@project), class: "button -with-icon icon-cancel" %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index aeb4a846c27..0e3db7c376e 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -42,7 +42,7 @@ See COPYRIGHT and LICENSE files for more details.
href: edit_news_path(@news),
aria: { label: I18n.t(:button_edit) },
title: I18n.t(:button_edit)) do |button|
- csp_onclick('jQuery("#edit-news").show()', '.edit-news-button')
+ csp_onclick('jQuery("#edit-news").show()', ".edit-news-button")
button.with_leading_visual_icon(icon: :pencil)
t(:button_edit)
end
@@ -68,10 +68,10 @@ See COPYRIGHT and LICENSE files for more details.
<% if authorize_for('news', 'edit') %>
<div id="edit-news" style="display:none;">
- <%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to_function t(:button_cancel), 'jQuery("#edit-news").hide()', class: 'button -with-icon icon-cancel' %>
+ <%= labelled_tabular_form_for @news, html: { id: "news-form" } do |f| %>
+ <%= render partial: "form", locals: { f: f } %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to_function t(:button_cancel), 'jQuery("#edit-news").hide()', class: "button -with-icon icon-cancel" %>
<% end %>
</div>
<% end %>
@@ -91,11 +91,11 @@ See COPYRIGHT and LICENSE files for more details.
<% next if comment.new_record? %>
<div class="comment">
<div class="contextual">
- <%= link_to_if_authorized icon_wrapper('icon-context icon-delete', t(:button_delete)),
- {controller: '/news/comments', action: 'destroy', id: comment},
+ <%= link_to_if_authorized icon_wrapper("icon-context icon-delete", t(:button_delete)),
+ {controller: "/news/comments", action: "destroy", id: comment},
data: { confirm: t(:text_are_you_sure) },
method: :delete,
- class: 'no-decoration-on-hover',
+ class: "no-decoration-on-hover",
title: t(:button_delete),
alt: t(:button_delete) %>
</div>
@@ -107,14 +107,14 @@ See COPYRIGHT and LICENSE files for more details.
<% if authorize_for 'news/comments', 'create' %>
<%= form_for([@news, Comment.new], html: { id: "add_comment_form" }) do %>
<div>
- <%= label_tag 'comment_comments', Journal.human_attribute_name(:notes), class: 'hidden-for-sighted' %>
- <%= text_area 'comment',
- 'comments',
- class: 'wiki-edit' %>
- <%= wikitoolbar_for 'comment_comments', preview_context: preview_context(@news) %>
+ <%= label_tag "comment_comments", Journal.human_attribute_name(:notes), class: "hidden-for-sighted" %>
+ <%= text_area "comment",
+ "comments",
+ class: "wiki-edit" %>
+ <%= wikitoolbar_for "comment_comments", preview_context: preview_context(@news) %>
</div>
<p>
- <%= submit_tag t(:button_add_comment), class: 'button -primary' %>
+ <%= submit_tag t(:button_add_comment), class: "button -primary" %>
</p>
<% end %>
<% end %>
diff --git a/app/views/notifications/menus/_menu.html.erb b/app/views/notifications/menus/_menu.html.erb
index 9033251ad41..233af31fac3 100644
--- a/app/views/notifications/menus/_menu.html.erb
+++ b/app/views/notifications/menus/_menu.html.erb
@@ -1,5 +1,5 @@
<%= turbo_frame_tag "notifications_sidemenu",
src: notifications_menu_path(**params.slice(:filter, :name).permit!),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
diff --git a/app/views/oauth/applications/_form.html.erb b/app/views/oauth/applications/_form.html.erb
index 4aa04e8696e..56eda0fbdb1 100644
--- a/app/views/oauth/applications/_form.html.erb
+++ b/app/views/oauth/applications/_form.html.erb
@@ -31,22 +31,22 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<div class="form--field">
- <%= f.check_box :enabled, container_class: '-middle' %>
+ <%= f.check_box :enabled, container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('oauth.application.instructions.enabled') %>
+ <%= t("oauth.application.instructions.enabled") %>
</span>
</div>
<div class="form--field -required">
- <%= f.text_field :name, required: true, size: 25, container_class: '-middle' %>
+ <%= f.text_field :name, required: true, size: 25, container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('oauth.application.instructions.name') %>
+ <%= t("oauth.application.instructions.name") %>
</span>
</div>
<div class="form--field -required">
- <%= f.text_area :redirect_uri, required: true, container_class: '-middle' %>
+ <%= f.text_area :redirect_uri, required: true, container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('oauth.application.instructions.redirect_uri_html') %>
+ <%= t("oauth.application.instructions.redirect_uri_html") %>
<br>
<code><%= ::Doorkeeper.configuration.native_redirect_uri %></code>
</span>
@@ -59,14 +59,14 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container -vertical">
<label class="form--label-with-check-box">
<div class="form--check-box-container">
- <%= styled_check_box_tag 'application[scopes][]', scope, f.object.scopes.include?(scope) %>
+ <%= styled_check_box_tag "application[scopes][]", scope, f.object.scopes.include?(scope) %>
</div>
<%= scope %>
</label>
</div>
<% end %>
<span class="form--field-instructions">
- <%= t('oauth.application.instructions.scopes') %>
+ <%= t("oauth.application.instructions.scopes") %>
</span>
</div>
<% end %>
@@ -74,42 +74,42 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= f.check_box :confidential %>
<span class="form--field-instructions">
- <%= t('oauth.application.instructions.confidential') %>
+ <%= t("oauth.application.instructions.confidential") %>
</span>
</div>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t("oauth.application.client_credentials") %></legend>
<p>
- <%= t('oauth.client_credentials_impersonation_html',
+ <%= t("oauth.client_credentials_impersonation_html",
client_credentials_flow_link: static_link_to(:client_credentials_code_flow),
authorization_code_flow_link: static_link_to(:oauth_authorization_code_flow)) %>
</p>
<div class="form--field -visible-overflow">
- <label class="form--label"> <%= t('activerecord.attributes.doorkeeper/application.client_credentials_user_id') %>
+ <label class="form--label"> <%= t("activerecord.attributes.doorkeeper/application.client_credentials_user_id") %>
</label>
<div class="form--field-container">
<div class="form--text-field-container -middle">
<%= f.hidden_field :client_credentials_user_id, value: @application.client_credentials_user_id %>
<%=
- angular_component_tag 'opce-user-autocompleter',
+ angular_component_tag "opce-user-autocompleter",
inputs: {
allowEmpty: true,
- inputName: 'application[client_credentials_user_id]'
+ inputName: "application[client_credentials_user_id]"
},
class: "new-group-members--autocomplete"
%>
</div>
</div>
<p class="form--field-instructions">
- <%= t('oauth.application.instructions.client_credential_user_id') %>
+ <%= t("oauth.application.instructions.client_credential_user_id") %>
<br>
- <strong><%= t('oauth.client_credentials_impersonation_warning') %></strong>
+ <strong><%= t("oauth.client_credentials_impersonation_warning") %></strong>
</p>
<% if @application.client_credentials_user_id %>
<p class="form--field-instructions">
<% user = User.find(@application.client_credentials_user_id) %>
- <span><%= t('oauth.client_credentials_impersonation_set_to') %></span>
+ <span><%= t("oauth.client_credentials_impersonation_set_to") %></span>
<%= link_to_user user %>
</p>
<% end %>
diff --git a/app/views/oauth/applications/edit.html.erb b/app/views/oauth/applications/edit.html.erb
index b532b6723ed..f853f707b88 100644
--- a/app/views/oauth/applications/edit.html.erb
+++ b/app/views/oauth/applications/edit.html.erb
@@ -42,11 +42,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @application,
url: { action: "update" },
- html: { class: nil, autocomplete: 'off' },
+ html: { class: nil, autocomplete: "off" },
as: :application do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
</p>
<% end %>
diff --git a/app/views/oauth/applications/new.html.erb b/app/views/oauth/applications/new.html.erb
index fa3f91b2177..130233f23b8 100644
--- a/app/views/oauth/applications/new.html.erb
+++ b/app/views/oauth/applications/new.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t('oauth.application.new') %>
+<% html_title t(:label_administration), t("oauth.application.new") %>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -41,15 +41,15 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @application,
url: { action: "create" },
- html: { class: nil, autocomplete: 'off' },
+ html: { class: nil, autocomplete: "off" },
as: :application do |f| %>
<p>
- <%= t('oauth.application.instructions.register_intro') %>
+ <%= t("oauth.application.instructions.register_intro") %>
</p>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
</p>
<% end %>
diff --git a/app/views/oauth/applications/show.html.erb b/app/views/oauth/applications/show.html.erb
index ff9467abb32..e82c37f8f2d 100644
--- a/app/views/oauth/applications/show.html.erb
+++ b/app/views/oauth/applications/show.html.erb
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t('oauth.application.singular'), h(@application.name) -%>
+<% html_title t(:label_administration), t("oauth.application.singular"), h(@application.name) -%>
<% local_assigns[:additional_breadcrumb] = h(@application.name) %>
<%= render OAuth::ShowPageHeaderComponent.new(application: @application) %>
@@ -46,18 +46,18 @@ See COPYRIGHT and LICENSE files for more details.
<p>
<code><%= flash[:_application_secret] %></code>
<br>
- <strong><%= t 'oauth.client_secret_notice' %></strong>
+ <strong><%= t "oauth.client_secret_notice" %></strong>
</p>
<% end %>
<% end %>
<% if user_id = @application.client_credentials_user_id %>
<% component.with_attribute(
- key: t('oauth.client_credentials_impersonation_set_to')
+ key: t("oauth.client_credentials_impersonation_set_to")
) do %>
<%= link_to_user User.find_by(id: user_id) %>
<br>
- <strong><%= t('oauth.client_credentials_impersonation_warning') %></strong>
+ <strong><%= t("oauth.client_credentials_impersonation_warning") %></strong>
<% end %>
<% end %>
diff --git a/app/views/onboarding/_configuration_modal.html.erb b/app/views/onboarding/_configuration_modal.html.erb
index 0aa5172fac8..dccdee84e34 100644
--- a/app/views/onboarding/_configuration_modal.html.erb
+++ b/app/views/onboarding/_configuration_modal.html.erb
@@ -28,18 +28,18 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="modal-delivery-element">
- <%= labelled_tabular_form_for current_user, url: { action: 'user_settings', controller: 'onboarding' }, html: { id: 'user-form' } do |f| %>
+ <%= labelled_tabular_form_for current_user, url: { action: "user_settings", controller: "onboarding" }, html: { id: "user-form" } do |f| %>
<div id="spotModalTitle" class="spot-modal--header">
- <%= I18n.t('onboarding.welcome', app_title: Setting.app_title) %>, <%= current_user.name %>
+ <%= I18n.t("onboarding.welcome", app_title: Setting.app_title) %>, <%= current_user.name %>
</div>
<div class="spot-divider"></div>
<div class="onboarding--main spot-modal--body spot-container">
- <b><%= I18n.t('onboarding.select_language') %></b>
+ <b><%= I18n.t("onboarding.select_language") %></b>
<fieldset class="form--fieldset">
<div class="form--field">
- <%= f.select :language, lang_options_for_select, container_class: '-slim' %>
+ <%= f.select :language, lang_options_for_select, container_class: "-slim" %>
</div>
</fieldset>
</div>
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
data-tour-selector="modal-close-button"
dynamic-content-modal-close-button
title=<%= t(:button_close) %>><%= t(:button_close) %></button>
- <%= styled_button_tag t(:button_save), class: 'button_no-margin -primary -with-icon icon-checkmark spot-action-bar--action' %>
+ <%= styled_button_tag t(:button_save), class: "button_no-margin -primary -with-icon icon-checkmark spot-action-bar--action" %>
</div>
</div>
<% end %>
diff --git a/app/views/onboarding/_menu_item.html.erb b/app/views/onboarding/_menu_item.html.erb
index c749acbe3b4..c479d074765 100644
--- a/app/views/onboarding/_menu_item.html.erb
+++ b/app/views/onboarding/_menu_item.html.erb
@@ -33,8 +33,8 @@ See COPYRIGHT and LICENSE files for more details.
data-modal-iframe-url="<%= OpenProject::Configuration.onboarding_video_url %>"
data-modal-class-name="onboarding-modal">
<%= link_to t(:label_introduction_video),
- '',
+ "",
title: t(:label_introduction_video),
- class: 'op-menu--item-action onboarding-modal--activation-link' %>
- <%= render partial: '/onboarding/onboarding_video_modal' %>
+ class: "op-menu--item-action onboarding-modal--activation-link" %>
+ <%= render partial: "/onboarding/onboarding_video_modal" %>
</li>
diff --git a/app/views/onboarding/_onboarding_video_modal.html.erb b/app/views/onboarding/_onboarding_video_modal.html.erb
index 93a5c356c69..13786211e7d 100644
--- a/app/views/onboarding/_onboarding_video_modal.html.erb
+++ b/app/views/onboarding/_onboarding_video_modal.html.erb
@@ -30,13 +30,13 @@ See COPYRIGHT and LICENSE files for more details.
<div class="modal-delivery-element">
<div class="spot-modal--header">
<span class="spot-icon spot-icon_user"></span>
- <span id="spotModalTitle"><%= I18n.t('onboarding.welcome', app_title: Setting.app_title) %></span>
+ <span id="spotModalTitle"><%= I18n.t("onboarding.welcome", app_title: Setting.app_title) %></span>
</div>
<div class="spot-divider"></div>
<div class="onboarding--main spot-modal--body spot-container">
<div class="onboarding--video-block">
<div class="onboarding--video-text">
- <span><%= I18n.t('onboarding.text_getting_started_description') %></span>
+ <span><%= I18n.t("onboarding.text_getting_started_description") %></span>
</div>
<div class="onboarding--video iframe-target-wrapper">
</div>
diff --git a/app/views/placeholder_users/_form.html.erb b/app/views/placeholder_users/_form.html.erb
index 4fe191575a4..f2366f0bc3c 100644
--- a/app/views/placeholder_users/_form.html.erb
+++ b/app/views/placeholder_users/_form.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<!--[form:placeholder_user]-->
<section class="form--section">
- <div class="form--field -required"><%= f.text_field :name, label: t('label_name'), required: true, container_class: '-middle' %></div>
+ <div class="form--field -required"><%= f.text_field :name, label: t("label_name"), required: true, container_class: "-middle" %></div>
<%= call_hook(:view_placeholder_users_form, placeholder_user: @placeholder_user, form: f) %>
</section>
diff --git a/app/views/placeholder_users/_general.html.erb b/app/views/placeholder_users/_general.html.erb
index 9c11d9316a5..40a9eb17aa5 100644
--- a/app/views/placeholder_users/_general.html.erb
+++ b/app/views/placeholder_users/_general.html.erb
@@ -28,13 +28,13 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= labelled_tabular_form_for @placeholder_user,
- url: { controller: '/placeholder_users',
+ url: { controller: "/placeholder_users",
action: "update",
tab: nil },
html: { method: :put,
- autocomplete: 'off' },
+ autocomplete: "off" },
as: :placeholder_user do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/placeholder_users/deletion_info.html.erb b/app/views/placeholder_users/deletion_info.html.erb
index 4708ae236e1..fda143805bf 100644
--- a/app/views/placeholder_users/deletion_info.html.erb
+++ b/app/views/placeholder_users/deletion_info.html.erb
@@ -34,12 +34,12 @@ 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'>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('placeholder_users.deletion_info.heading',
+ <%= t("placeholder_users.deletion_info.heading",
name: content_tag(:em, name))
.html_safe %>
</h3>
@@ -58,9 +58,9 @@ See COPYRIGHT and LICENSE files for more details.
</p>
<div class="danger-zone--verification">
<input type="text" name="name_verification">
- <%= styled_button_tag '', class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag "", class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
</div>
</section>
diff --git a/app/views/placeholder_users/index.html.erb b/app/views/placeholder_users/index.html.erb
index 4c64fb1e206..92082bce194 100644
--- a/app/views/placeholder_users/index.html.erb
+++ b/app/views/placeholder_users/index.html.erb
@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
tag: :a,
href: new_placeholder_user_path) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.placeholder_user')
+ t("activerecord.models.placeholder_user")
end
subheader.with_bottom_pane_component do
@@ -58,11 +58,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= render PlaceholderUsers::TableComponent.new(rows: @placeholder_users) %>
<% else %>
- <%= render template: 'common/upsale',
+ <%= render template: "common/upsale",
locals: {
- feature_title: I18n.t('placeholder_users.upsale.title'),
- feature_description: I18n.t('placeholder_users.upsale.description'),
- feature_reference: 'placeholder_users',
- feature_video: 'enterprise/placeholder_users.mp4'
+ feature_title: I18n.t("placeholder_users.upsale.title"),
+ feature_description: I18n.t("placeholder_users.upsale.description"),
+ feature_reference: "placeholder_users",
+ feature_video: "enterprise/placeholder_users.mp4"
} %>
<% end %>
diff --git a/app/views/placeholder_users/new.html.erb b/app/views/placeholder_users/new.html.erb
index 30eeecc3261..ee85b49f80e 100644
--- a/app/views/placeholder_users/new.html.erb
+++ b/app/views/placeholder_users/new.html.erb
@@ -33,12 +33,12 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @placeholder_user,
url: { action: "create" },
- html: { class: nil, autocomplete: 'off' },
+ html: { class: nil, autocomplete: "off" },
as: :placeholder_user do |f| %>
- <%= render partial: 'form', locals: { f: f, placeholder_user: @placeholder_user } %>
+ <%= render partial: "form", locals: { f: f, placeholder_user: @placeholder_user } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
- <%= styled_button_tag t(:button_create_and_continue), name: 'continue', class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
+ <%= styled_button_tag t(:button_create_and_continue), name: "continue", class: "-primary -with-icon icon-checkmark" %>
</p>
<% end %>
diff --git a/app/views/placeholder_users/show.html.erb b/app/views/placeholder_users/show.html.erb
index 0b597972912..f56e1011e18 100644
--- a/app/views/placeholder_users/show.html.erb
+++ b/app/views/placeholder_users/show.html.erb
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
<% for membership in @memberships %>
<li>
<%= link_to_project(membership.project) %>
- (<%= h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_at) %>)
+ (<%= h membership.roles.sort.collect(&:to_s).join(", ") %>, <%= format_date(membership.created_at) %>)
</li>
<% end %>
</ul>
diff --git a/app/views/principals/_available_global_role.html.erb b/app/views/principals/_available_global_role.html.erb
index 605487b8b25..6cfdfa9f645 100644
--- a/app/views/principals/_available_global_role.html.erb
+++ b/app/views/principals/_available_global_role.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="principal_role_option form--field" id="principal_role_option_<%= h(role.id) %>">
<label class="form--label-with-check-box" for="principal_role_role_ids_<%= role.id %>">
- <%= check_box_tag 'membership[role_ids][]',
+ <%= check_box_tag "membership[role_ids][]",
role.id,
false,
id: "principal_role_role_ids_#{role.id}" %>
diff --git a/app/views/principals/_available_global_roles.html.erb b/app/views/principals/_available_global_roles.html.erb
index 0ff10ddd3c9..9524f8fe660 100644
--- a/app/views/principals/_available_global_roles.html.erb
+++ b/app/views/principals/_available_global_roles.html.erb
@@ -40,17 +40,17 @@ See COPYRIGHT and LICENSE files for more details.
<span id="additional_principal_roles">
<%= global_role_membership_form_for(principal, global_member) do %>
<% if global_member %>
- <%= hidden_field_tag('membership[id]', global_member.id ) %>
+ <%= hidden_field_tag("membership[id]", global_member.id ) %>
<% global_member.roles.each do |role| %>
- <%= hidden_field_tag('membership[role_ids][]', role.id ) %>
+ <%= hidden_field_tag("membership[role_ids][]", role.id ) %>
<% end %>
<% end %>
<% available_roles.each do |role| %>
- <%= render partial: 'principals/available_global_role', locals: {role: role} %>
+ <%= render partial: "principals/available_global_role", locals: {role: role} %>
<% end %>
- <p><br><%= styled_button_tag t(:button_add), class: '-with-icon icon-checkmark' %></p>
+ <p><br><%= styled_button_tag t(:button_add), class: "-with-icon icon-checkmark" %></p>
<% end %>
</span>
<% end %>
diff --git a/app/views/principals/_global_roles.html.erb b/app/views/principals/_global_roles.html.erb
index cfed1b097d0..f5a88e19504 100644
--- a/app/views/principals/_global_roles.html.erb
+++ b/app/views/principals/_global_roles.html.erb
@@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
</thead>
<tbody id="table_principal_roles_body">
<% global_member.roles.each do |role| %>
- <%= render partial: 'principals/assigned_global_role', locals: { role: role, member: global_member } %>
+ <%= render partial: "principals/assigned_global_role", locals: { role: role, member: global_member } %>
<% end %>
</tbody>
</table>
@@ -70,5 +70,5 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
</div>
- <%= render partial: 'principals/available_global_roles', locals: { principal: principal, global_member: global_member } %>
+ <%= render partial: "principals/available_global_roles", locals: { principal: principal, global_member: global_member } %>
</div>
diff --git a/app/views/project_mailer/copy_project_failed.html.erb b/app/views/project_mailer/copy_project_failed.html.erb
index 6aa6a8a13da..a47494ba1fe 100644
--- a/app/views/project_mailer/copy_project_failed.html.erb
+++ b/app/views/project_mailer/copy_project_failed.html.erb
@@ -29,6 +29,6 @@ See COPYRIGHT and LICENSE files for more details.
<h1><%= link_to @source_project.name, project_url(@source_project) %></h1>
-<p><%= t('copy_project.text.failed', source_project_name: @source_project.name, target_project_name: @target_project_name) %></p>
+<p><%= t("copy_project.text.failed", source_project_name: @source_project.name, target_project_name: @target_project_name) %></p>
<%= @errors.join("<br/>".html_safe) %>
diff --git a/app/views/project_mailer/copy_project_failed.text.erb b/app/views/project_mailer/copy_project_failed.text.erb
index 53b2f537064..a5dd19bb99e 100644
--- a/app/views/project_mailer/copy_project_failed.text.erb
+++ b/app/views/project_mailer/copy_project_failed.text.erb
@@ -30,6 +30,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= @source_project.name %>
<%= project_url(@source_project) %>
-<%= t('copy_project.text.failed', source_project_name: @source_project.name, target_project_name: @target_project_name) %>
+<%= t("copy_project.text.failed", source_project_name: @source_project.name, target_project_name: @target_project_name) %>
<%= @errors.join("\n") %>
diff --git a/app/views/project_mailer/copy_project_succeeded.html.erb b/app/views/project_mailer/copy_project_succeeded.html.erb
index d777c67853a..8184ad1834a 100644
--- a/app/views/project_mailer/copy_project_succeeded.html.erb
+++ b/app/views/project_mailer/copy_project_succeeded.html.erb
@@ -29,9 +29,9 @@ See COPYRIGHT and LICENSE files for more details.
<h1><%= link_to @target_project.name, project_url(@target_project) %></h1>
-<p><%= t('copy_project.text.succeeded', source_project_name: @source_project.name, target_project_name: @target_project.name) %></p>
+<p><%= t("copy_project.text.succeeded", source_project_name: @source_project.name, target_project_name: @target_project.name) %></p>
<% unless @errors.empty? %>
<hr>
- <%= render partial: 'user_mailer/errors', locals: { errors: @errors } %>
+ <%= render partial: "user_mailer/errors", locals: { errors: @errors } %>
<% end %>
diff --git a/app/views/project_mailer/copy_project_succeeded.text.erb b/app/views/project_mailer/copy_project_succeeded.text.erb
index 2b1521e2a5c..e3d82819a21 100644
--- a/app/views/project_mailer/copy_project_succeeded.text.erb
+++ b/app/views/project_mailer/copy_project_succeeded.text.erb
@@ -28,8 +28,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= @target_project.name %>
<%= project_url(@target_project) %>
-<%= t('copy_project.text.succeeded', source_project_name: @source_project.name, target_project_name: @target_project.name) %>
+<%= t("copy_project.text.succeeded", source_project_name: @source_project.name, target_project_name: @target_project.name) %>
<% unless @errors.empty? %>
----------------------------------------
- <%= render partial: 'user_mailer/errors', locals: { errors: @errors } %>
+ <%= render partial: "user_mailer/errors", locals: { errors: @errors } %>
<% end %>
diff --git a/app/views/project_mailer/delete_project_completed.html.erb b/app/views/project_mailer/delete_project_completed.html.erb
index 681e922d64e..d7c2e1196d2 100644
--- a/app/views/project_mailer/delete_project_completed.html.erb
+++ b/app/views/project_mailer/delete_project_completed.html.erb
@@ -30,10 +30,10 @@ See COPYRIGHT and LICENSE files for more details.
<h1><%= @project.name %></h1>
<p>
- <%= t('projects.delete.completed_text', name: @project.name) %>
+ <%= t("projects.delete.completed_text", name: @project.name) %>
<% if @dependent_projects.any? %>
<br>
- <%= t('projects.delete.completed_text_children') %>
+ <%= t("projects.delete.completed_text_children") %>
<ul>
<% @dependent_projects.each do |subproject| %>
<li><%= subproject.name %></li>
diff --git a/app/views/project_mailer/delete_project_completed.text.erb b/app/views/project_mailer/delete_project_completed.text.erb
index c2b28f473f9..3c0fac4317f 100644
--- a/app/views/project_mailer/delete_project_completed.text.erb
+++ b/app/views/project_mailer/delete_project_completed.text.erb
@@ -30,10 +30,10 @@ See COPYRIGHT and LICENSE files for more details.
<%= @project.name %>
<%= project_url(@project) %>
-<%= t('projects.delete.completed_text', name: @project.name) %>
+<%= t("projects.delete.completed_text", name: @project.name) %>
<% if @dependent_projects.any? %>
- <%= t('projects.delete.completed_text_children') %>
+ <%= t("projects.delete.completed_text_children") %>
<% @dependent_projects.each do |subproject| %>
- <%= subproject.name %>
diff --git a/app/views/project_mailer/delete_project_failed.html.erb b/app/views/project_mailer/delete_project_failed.html.erb
index 3bf5fe6b6d4..69f9b8d0ea5 100644
--- a/app/views/project_mailer/delete_project_failed.html.erb
+++ b/app/views/project_mailer/delete_project_failed.html.erb
@@ -29,4 +29,4 @@ See COPYRIGHT and LICENSE files for more details.
<h1><%= link_to @project.name, project_url(@project) %></h1>
-<p><%= t('projects.delete.failed_text', name: @project.name) %></p>
+<p><%= t("projects.delete.failed_text", name: @project.name) %></p>
diff --git a/app/views/project_mailer/delete_project_failed.text.erb b/app/views/project_mailer/delete_project_failed.text.erb
index 2111c054cfc..9ff86f742e1 100644
--- a/app/views/project_mailer/delete_project_failed.text.erb
+++ b/app/views/project_mailer/delete_project_failed.text.erb
@@ -30,4 +30,4 @@ See COPYRIGHT and LICENSE files for more details.
<%= @project.name %>
<%= project_url(@project) %>
-<%= t('projects.delete.failed_text', name: @project.name) %>
+<%= t("projects.delete.failed_text", name: @project.name) %>
diff --git a/app/views/projects/destroy_info.html.erb b/app/views/projects/destroy_info.html.erb
index 5d3673c778f..ad6ed8fbe7a 100644
--- a/app/views/projects/destroy_info.html.erb
+++ b/app/views/projects/destroy_info.html.erb
@@ -28,50 +28,50 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('project.destroy.title', name: @project_to_destroy) }
+ header.with_title { t("project.destroy.title", name: @project_to_destroy) }
header.with_breadcrumbs([{ href: project_overview_path(@project_to_destroy.id), text: @project_to_destroy.name },
{ href: project_settings_general_path(@project_to_destroy.id), text: I18n.t("label_project_settings") },
- t('project.destroy.title', name: @project_to_destroy)]) end
+ t("project.destroy.title", name: @project_to_destroy)]) end
%>
<%= styled_form_tag(project_path(@project_to_destroy),
- class: 'danger-zone',
+ class: "danger-zone",
data: { turbo: false },
method: :delete) do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('project.destroy.title', name: "<em>#{h(@project_to_destroy)}</em>").html_safe %>
+ <%= t("project.destroy.title", name: "<em>#{h(@project_to_destroy)}</em>").html_safe %>
</h3>
<p>
- <%= t('project.destroy.confirmation', identifier: @project_to_destroy.identifier) %>
+ <%= t("project.destroy.confirmation", identifier: @project_to_destroy.identifier) %>
<% if @project_to_destroy.descendants.any? %>
<br>
- <% descendants = h(@project_to_destroy.descendants.collect { |p| p.to_s }.join(', ')) %>
- <%= t('project.destroy.subprojects_confirmation', value: "<strong>#{h(descendants)}</strong>").html_safe %>
+ <% descendants = h(@project_to_destroy.descendants.collect { |p| p.to_s }.join(", ")) %>
+ <%= t("project.destroy.subprojects_confirmation", value: "<strong>#{h(descendants)}</strong>").html_safe %>
<% end %>
</p>
<ul class="mb-3">
- <li> <%= t('project.destroy.project_delete_result_1') %> </li>
+ <li> <%= t("project.destroy.project_delete_result_1") %> </li>
<% if has_managed_project_folders?(@project_to_destroy) %>
- <li> <%= t('project.destroy.project_delete_result_2') %> </li>
+ <li> <%= t("project.destroy.project_delete_result_2") %> </li>
<% end %>
</ul>
<p class="danger-zone--warning">
<span class="icon icon-error"></span>
- <span><%= t('project.destroy.info') %></span>
+ <span><%= t("project.destroy.info") %></span>
</p>
<p>
- <%= t('project.destroy.project_verification', name: "<em class=\"danger-zone--expected-value\">#{h(@project_to_destroy)}</em>").html_safe %>
+ <%= t("project.destroy.project_verification", name: "<em class=\"danger-zone--expected-value\">#{h(@project_to_destroy)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<input type="text">
- <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to projects_path,
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' do %>
+ class: "button -with-icon icon-cancel" do %>
<%= t(:button_cancel) %>
<% end %>
</div>
diff --git a/app/views/projects/identifier/show.html.erb b/app/views/projects/identifier/show.html.erb
index 3720e66d1f6..c7e31e15b25 100644
--- a/app/views/projects/identifier/show.html.erb
+++ b/app/views/projects/identifier/show.html.erb
@@ -29,39 +29,39 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('project.identifier.title') }
+ header.with_title { t("project.identifier.title") }
header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },
{ href: project_settings_general_path(@project.id), text: I18n.t("label_project_settings") },
- t('project.identifier.title')]) end
+ t("project.identifier.title")]) end
%>
<%= error_messages_for @project %>
<%= form_for @project,
url: project_identifier_path(@project),
- html: { class: 'danger-zone form -vertical' } do |f| %>
+ html: { class: "danger-zone form -vertical" } do |f| %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('project.identifier.title') %>
+ <%= t("project.identifier.title") %>
</h3>
<p class="danger-zone--warning">
<span class="icon icon-error"></span>
- <span><%= t('project.identifier.warning_one').html_safe %></span>
+ <span><%= t("project.identifier.warning_one").html_safe %></span>
<br>
<span class="icon icon-error"></span>
- <span><%= t('project.identifier.warning_two').html_safe %></span>
+ <span><%= t("project.identifier.warning_two").html_safe %></span>
</p>
- <%= styled_label_tag 'identifier', Project.human_attribute_name(:identifier), class: '-required' %>
+ <%= styled_label_tag "identifier", Project.human_attribute_name(:identifier), class: "-required" %>
<div class="danger-zone--verification">
<%= f.text_field :identifier %>
<span>
- <%= f.submit t(:button_update), class: 'button -primary -with-icon icon-checkmark' %>
+ <%= f.submit t(:button_update), class: "button -primary -with-icon icon-checkmark" %>
</span>
<span>
- <%= link_to project_settings_general_path(@project), class: 'button' do %>
- <%= op_icon('button--icon icon-cancel') %>
+ <%= link_to project_settings_general_path(@project), class: "button" do %>
+ <%= op_icon("button--icon icon-cancel") %>
<span class="button--text"><%= t(:button_cancel) %></span>
<% end %>
</span>
diff --git a/app/views/projects/menus/_menu.html.erb b/app/views/projects/menus/_menu.html.erb
index 56256b5e2ac..e89400776d9 100644
--- a/app/views/projects/menus/_menu.html.erb
+++ b/app/views/projects/menus/_menu.html.erb
@@ -3,6 +3,6 @@
controller_path:,
**params.permit(:filters, :columns, :sortBy, :id, :query_id)
),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
diff --git a/app/views/projects/settings/categories/show.html.erb b/app/views/projects/settings/categories/show.html.erb
index e0f5ba69e25..30d21e5ca8c 100644
--- a/app/views/projects/settings/categories/show.html.erb
+++ b/app/views/projects/settings/categories/show.html.erb
@@ -43,9 +43,9 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_work_package_category_new) },
title: t(:label_work_package_category_new),
tag: :a,
- href: url_for({ controller: '/categories', action: 'new', project_id: @project })) do |button|
+ href: url_for({ controller: "/categories", action: "new", project_id: @project })) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.category')
+ t("activerecord.models.category")
end
end
%>
@@ -90,15 +90,15 @@ See COPYRIGHT and LICENSE files for more details.
<td><%= h(category.name) %></td>
<td><%= h(category.assigned_to.name) if category.assigned_to %></td>
<td class="buttons">
- <%= link_to_if_authorized '',
- { controller: '/categories', action: 'edit', id: category },
- class: 'icon icon-edit',
+ <%= link_to_if_authorized "",
+ { controller: "/categories", action: "edit", id: category },
+ class: "icon icon-edit",
title: t(:button_edit) %>
- <%= link_to_if_authorized '',
- { controller: '/categories', action: 'destroy', id: category },
+ <%= link_to_if_authorized "",
+ { controller: "/categories", action: "destroy", id: category },
data: { confirm: t(:text_are_you_sure) },
method: :delete,
- class: 'icon icon-delete',
+ class: "icon icon-delete",
title: t(:button_delete) %>
</td>
</tr>
@@ -111,7 +111,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% else %>
<%= no_results_box action_url: new_project_category_path(@project),
- display_action: authorize_for('categories', 'new'),
- custom_title: t('projects.settings.categories.no_results_title_text'),
- custom_action_text: t('projects.settings.categories.no_results_content_text') %>
+ display_action: authorize_for("categories", "new"),
+ custom_title: t("projects.settings.categories.no_results_title_text"),
+ custom_action_text: t("projects.settings.categories.no_results_content_text") %>
<% end %>
diff --git a/app/views/projects/settings/custom_fields/_form.html.erb b/app/views/projects/settings/custom_fields/_form.html.erb
index 454b8882611..d1b19307c88 100644
--- a/app/views/projects/settings/custom_fields/_form.html.erb
+++ b/app/views/projects/settings/custom_fields/_form.html.erb
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= t('custom_fields.enabled_in_project') %>
+ <%= t("custom_fields.enabled_in_project") %>
</span>
</div>
</div>
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= t('custom_fields.contained_in_type') %>
+ <%= t("custom_fields.contained_in_type") %>
</span>
</div>
</div>
@@ -72,7 +72,7 @@ See COPYRIGHT and LICENSE files for more details.
<%
options = {
lang: custom_field.name_locale,
- label_options: { class: 'hidden-for-sighted' }
+ label_options: { class: "hidden-for-sighted" }
}
%>
<tr class="custom-field-<%= custom_field.id %>">
@@ -85,7 +85,7 @@ See COPYRIGHT and LICENSE files for more details.
</td>
<td>
<% if custom_field.is_for_all? %>
- <%= t('custom_fields.is_enabled_globally') %>
+ <%= t("custom_fields.is_enabled_globally") %>
<% else %>
<%= form.collection_check_box :work_package_custom_field_ids,
custom_field.id,
@@ -97,9 +97,9 @@ See COPYRIGHT and LICENSE files for more details.
<td>
<% if current_user.admin? %>
<% type_links = custom_field.types.map { |t| link_to(t.name, edit_tab_type_path(id: t.id, tab: "form_configuration")) } %>
- <%= safe_join type_links, ', '.html_safe %>
+ <%= safe_join type_links, ", ".html_safe %>
<% else %>
- <%= custom_field.types.map(&:name).join(', ') %>
+ <%= custom_field.types.map(&:name).join(", ") %>
<% end %>
</td>
</tr>
diff --git a/app/views/projects/settings/custom_fields/show.html.erb b/app/views/projects/settings/custom_fields/show.html.erb
index b779df10af6..fcdc41cd301 100644
--- a/app/views/projects/settings/custom_fields/show.html.erb
+++ b/app/views/projects/settings/custom_fields/show.html.erb
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_custom_field_new)},
title: I18n.t(:label_custom_field_new),
tag: :a,
- href: new_custom_field_path(type: 'WorkPackageCustomField')) do |button|
+ href: new_custom_field_path(type: "WorkPackageCustomField")) do |button|
button.with_leading_visual_icon(icon: :plus)
CustomField.model_name.human
end
@@ -54,9 +54,9 @@ See COPYRIGHT and LICENSE files for more details.
<% if @wp_custom_fields.any? %>
<%= labelled_tabular_form_for @project,
url: project_settings_custom_fields_path(@project),
- html: { id: 'modules-form' } do |form| %>
+ html: { id: "modules-form" } do |form| %>
- <%= render partial: 'form',
+ <%= render partial: "form",
locals: {
project: @project,
form: form,
@@ -64,9 +64,9 @@ See COPYRIGHT and LICENSE files for more details.
} %>
<div class="generic-table--action-buttons">
- <%= form.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
+ <%= form.button t(:button_save), class: "button -primary -with-icon icon-checkmark" %>
</div>
<% end %>
<% else %>
- <%= no_results_box custom_title: t('projects.settings.custom_fields.no_results_title_text') %>
+ <%= no_results_box custom_title: t("projects.settings.custom_fields.no_results_title_text") %>
<% end %>
diff --git a/app/views/projects/settings/modules/_form.html.erb b/app/views/projects/settings/modules/_form.html.erb
index ac81eaeb97f..0627c95ebde 100644
--- a/app/views/projects/settings/modules/_form.html.erb
+++ b/app/views/projects/settings/modules/_form.html.erb
@@ -34,10 +34,10 @@ See COPYRIGHT and LICENSE files for more details.
<label class="form--label" for="project_enabled_module_names_<%= name %>">
<%= l_or_humanize(name, prefix: "project_module_") %>
<% if EnterpriseToken.show_banners? && OpenProject::AccessControl.module_enterprise_feature?(name) %>
- <%= spot_icon('enterprise-addons',
+ <%= spot_icon("enterprise-addons",
inline: true,
- size: '1_25',
- classnames: 'upsale-colored') %>
+ size: "1_25",
+ classnames: "upsale-colored") %>
<% end %>
</label>
<div class="form--field-container">
diff --git a/app/views/projects/settings/modules/show.html.erb b/app/views/projects/settings/modules/show.html.erb
index f848b2ffd6a..89e9dcc3670 100644
--- a/app/views/projects/settings/modules/show.html.erb
+++ b/app/views/projects/settings/modules/show.html.erb
@@ -44,5 +44,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "form",
locals: { form: form } %>
- <p><%= form.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %></p>
+ <p><%= form.button t(:button_save), class: "button -primary -with-icon icon-checkmark" %></p>
<% end %>
diff --git a/app/views/projects/settings/repository/_repository_committers_link.html.erb b/app/views/projects/settings/repository/_repository_committers_link.html.erb
index e831ef6a4a3..3c2aa043f6a 100644
--- a/app/views/projects/settings/repository/_repository_committers_link.html.erb
+++ b/app/views/projects/settings/repository/_repository_committers_link.html.erb
@@ -1,2 +1,2 @@
<%= link_to t(:label_user_plural), committers_project_repository_path(repository.project),
- class: 'icon icon-user' %>
+ class: "icon icon-user" %>
diff --git a/app/views/projects/settings/repository/_submit.html.erb b/app/views/projects/settings/repository/_submit.html.erb
index e7b640c461c..f46781caecf 100644
--- a/app/views/projects/settings/repository/_submit.html.erb
+++ b/app/views/projects/settings/repository/_submit.html.erb
@@ -1,5 +1,5 @@
<button type="submit" class="button -primary">
- <%= op_icon('button--icon icon-checkmark') %>
+ <%= op_icon("button--icon icon-checkmark") %>
<span class="button--text">
<%= is_creation_form ? t(:button_create) : t(:button_save) %>
</span>
diff --git a/app/views/projects/settings/repository/_vendor_attribute_groups.html.erb b/app/views/projects/settings/repository/_vendor_attribute_groups.html.erb
index bc02643759a..478e4a99b56 100644
--- a/app/views/projects/settings/repository/_vendor_attribute_groups.html.erb
+++ b/app/views/projects/settings/repository/_vendor_attribute_groups.html.erb
@@ -1,9 +1,9 @@
<%= content_tag :fieldset,
- class: 'form--fieldset description attributes-group',
+ class: "form--fieldset description attributes-group",
id: "#{vendor}-#{type}",
hidden: !existing,
data: {
- 'repository-settings-target': 'scmTypeOptions'
+ 'repository-settings-target': "scmTypeOptions"
} do %>
<div class="attributes-group--header">
<div class="attributes-group--header-container">
@@ -13,15 +13,15 @@
</div>
<% unless repository.new_record? %>
<div class="attributes-group--header-control">
- <%= render partial: 'projects/settings/repository/repository_committers_link', locals: { repository: repository } %>
+ <%= render partial: "projects/settings/repository/repository_committers_link", locals: { repository: repository } %>
<% if type === 'managed' %>
<%= link_to t(:button_delete), destroy_info_project_repository_path(repository.project),
method: :get,
- class: 'icon icon-delete' %>
+ class: "icon icon-delete" %>
<% else %>
<%= link_to t(:button_remove), destroy_info_project_repository_path(repository.project),
method: :get,
- class: 'icon icon-remove' %>
+ class: "icon icon-remove" %>
<% end %>
</div>
<% end %>
diff --git a/app/views/projects/settings/repository/_vendor_form.html.erb b/app/views/projects/settings/repository/_vendor_form.html.erb
index 75017be78a6..681aa98e5d2 100644
--- a/app/views/projects/settings/repository/_vendor_form.html.erb
+++ b/app/views/projects/settings/repository/_vendor_form.html.erb
@@ -35,13 +35,13 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag type, t("repositories.#{@repository.vendor}.#{type}_title") %>
<div class="form--field-container">
- <%= styled_radio_button_tag 'scm_type',
+ <%= styled_radio_button_tag "scm_type",
type,
scm_types.length == 1 ? true : false,
id: type,
autofocus: true,
data: {
- action: 'repository-settings#toggleContent'
+ action: "repository-settings#toggleContent"
} %>
</div>
</div>
diff --git a/app/views/projects/settings/repository/git/_local.html.erb b/app/views/projects/settings/repository/git/_local.html.erb
index 1567b1f14b9..5e52ac0b3c7 100644
--- a/app/views/projects/settings/repository/git/_local.html.erb
+++ b/app/views/projects/settings/repository/git/_local.html.erb
@@ -28,18 +28,18 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="form--field -required">
<%= form.text_field(:url,
- label: t('repositories.git.path'),
+ label: t("repositories.git.path"),
size: 60,
required: true) %>
<div class="form--field-instructions">
- <%= raw t('repositories.git.instructions.path', example_path: '<code>/path/to/repository/.git</code>') %>
+ <%= raw t("repositories.git.instructions.path", example_path: "<code>/path/to/repository/.git</code>") %>
</div>
</div>
<div class="form--field -required">
<%= form.select(:path_encoding,
git_path_encoding_options(repository),
- label: t('repositories.git.path_encoding')) %>
+ label: t("repositories.git.path_encoding")) %>
<div class="form--field-instructions">
- <%= t('repositories.git.instructions.path_encoding') %>
+ <%= t("repositories.git.instructions.path_encoding") %>
</div>
</div>
diff --git a/app/views/projects/settings/repository/git/_managed.html.erb b/app/views/projects/settings/repository/git/_managed.html.erb
index 987031ee82e..d7abf75d273 100644
--- a/app/views/projects/settings/repository/git/_managed.html.erb
+++ b/app/views/projects/settings/repository/git/_managed.html.erb
@@ -26,5 +26,5 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render partial: 'projects/settings/repository/shared/managed',
- locals: { vendor: 'git', form: form, repository: repository } %>
+<%= render partial: "projects/settings/repository/shared/managed",
+ locals: { vendor: "git", form: form, repository: repository } %>
diff --git a/app/views/projects/settings/repository/shared/_managed.html.erb b/app/views/projects/settings/repository/shared/_managed.html.erb
index 3139792bb70..06fffeb0948 100644
--- a/app/views/projects/settings/repository/shared/_managed.html.erb
+++ b/app/views/projects/settings/repository/shared/_managed.html.erb
@@ -29,24 +29,24 @@ See COPYRIGHT and LICENSE files for more details.
<% if repository.class.manages_remote? %>
<div class="form--field">
<%= form.text_field(:url,
- label: t('repositories.managed_url'),
- value: t('repositories.managed_remote'),
+ label: t("repositories.managed_url"),
+ value: t("repositories.managed_remote"),
disabled: true,
- 'aria-disabled' => true
+ "aria-disabled" => true
) %>
<div class="form--field-instructions">
- <p><%= t('repositories.managed_remote_note') %></p>
+ <p><%= t("repositories.managed_remote_note") %></p>
</div>
</div>
<% else %>
<div class="form--field">
<%= form.text_field(:url,
- label: t('repositories.managed_url'),
+ label: t("repositories.managed_url"),
value: repository.new_record? ? repository.managed_repository_url :
repository.url,
disabled: true,
- 'aria-disabled' => true,
- container_class: '-wide'
+ "aria-disabled" => true,
+ container_class: "-wide"
) %>
<div class="form--field-instructions">
<%= t("repositories.#{vendor}.instructions.managed_url") %>
diff --git a/app/views/projects/settings/repository/show.html.erb b/app/views/projects/settings/repository/show.html.erb
index d9ec807b248..aa5732f63c7 100644
--- a/app/views/projects/settings/repository/show.html.erb
+++ b/app/views/projects/settings/repository/show.html.erb
@@ -38,12 +38,12 @@ See COPYRIGHT and LICENSE files for more details.
<% is_creation_form = @repository.nil? || @repository.new_record? %>
<%= form_for :repository,
- url: { controller: '/repositories',
- action: is_creation_form ? 'create' : 'update',
+ url: { controller: "/repositories",
+ action: is_creation_form ? "create" : "update",
project_id: @project },
- method: is_creation_form ? 'POST' : 'PUT',
+ method: is_creation_form ? "POST" : "PUT",
builder: TabularFormBuilder,
- html: { class: 'form' } do |f| %>
+ html: { class: "form" } do |f| %>
<fieldset
class="form--fieldset -with-control"
@@ -53,9 +53,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= t(:label_available_project_repositories) %>
</legend>
- <%= error_messages_for 'repository' %>
+ <%= error_messages_for "repository" %>
<div class="form--field -required">
- <%= label_tag('scm_vendor', t('repositories.scm_vendor'), class: "form--label") %>
+ <%= label_tag("scm_vendor", t("repositories.scm_vendor"), class: "form--label") %>
<div class="form--field-container">
<div class="form--select-container -middle">
<%= scm_vendor_tag(@repository) %>
diff --git a/app/views/projects/settings/repository/subversion/_existing.html.erb b/app/views/projects/settings/repository/subversion/_existing.html.erb
index 45aa150980d..c1ed18e03d3 100644
--- a/app/views/projects/settings/repository/subversion/_existing.html.erb
+++ b/app/views/projects/settings/repository/subversion/_existing.html.erb
@@ -28,13 +28,13 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="form--field -required">
<%= form.text_field(:url,
- label: t('repositories.url'),
+ label: t("repositories.url"),
required: true,
size: 60,
disabled: !repository.new_record?
) %>
<div class="form--field-instructions">
- <%= raw simple_format t('repositories.subversion.instructions.url', local_proto: "<code>file://</code>") %>
+ <%= raw simple_format t("repositories.subversion.instructions.url", local_proto: "<code>file://</code>") %>
<code>file://</code>
<code>http://</code>
<code>https://</code>
@@ -47,19 +47,19 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= form.text_field(:login,
size: 30,
- label: t('repositories.subversion.username'),
- container_class: '-middle') %>
+ label: t("repositories.subversion.username"),
+ container_class: "-middle") %>
<div class="form--field-instructions">
</div>
</div>
<div class="form--field">
<%= form.password_field(:password,
size: 30,
- label: t('repositories.subversion.password'),
- name: 'ignore',
- id: 'repository-password-placeholder',
- value: ((repository.new_record? || repository.password.blank?) ? '' : ('x' * 15)),
- container_class: '-middle') %>
+ label: t("repositories.subversion.password"),
+ name: "ignore",
+ id: "repository-password-placeholder",
+ value: ((repository.new_record? || repository.password.blank?) ? "" : ("x" * 15)),
+ container_class: "-middle") %>
<%=
content_for(:additional_js_dom_ready) do
"jQuery('#repository-password-placeholder')
diff --git a/app/views/projects/settings/repository/subversion/_managed.html.erb b/app/views/projects/settings/repository/subversion/_managed.html.erb
index e9639d11469..2f9ff4e6877 100644
--- a/app/views/projects/settings/repository/subversion/_managed.html.erb
+++ b/app/views/projects/settings/repository/subversion/_managed.html.erb
@@ -26,5 +26,5 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render partial: 'projects/settings/repository/shared/managed',
- locals: { vendor: 'subversion', form: form, repository: repository } %>
+<%= render partial: "projects/settings/repository/shared/managed",
+ locals: { vendor: "subversion", form: form, repository: repository } %>
diff --git a/app/views/projects/settings/storage/show.html.erb b/app/views/projects/settings/storage/show.html.erb
index 464e82a5525..888b9a34e7d 100644
--- a/app/views/projects/settings/storage/show.html.erb
+++ b/app/views/projects/settings/storage/show.html.erb
@@ -37,16 +37,16 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<% if storage['modules'].empty? %>
- <%= no_results_box custom_title: t('projects.settings.storage.no_results_title_text') %>
+ <%= no_results_box custom_title: t("projects.settings.storage.no_results_title_text") %>
<% end %>
- <% storage['modules'].each do |label, value| %>
- <%= render partial: 'storage_field',
+ <% storage["modules"].each do |label, value| %>
+ <%= render partial: "storage_field",
locals: { label: I18n.t(label), value: value } %>
<% end %>
<%# Hide total when there's only one module %>
<% if storage['modules'].length > 1 %>
- <%= render partial: 'storage_field',
- locals: { label: t(:label_total), value: storage['total'] } %>
+ <%= render partial: "storage_field",
+ locals: { label: t(:label_total), value: storage["total"] } %>
<% end %>
</section>
diff --git a/app/views/projects/settings/types/_form.html.erb b/app/views/projects/settings/types/_form.html.erb
index f8986a91608..025d6fd8fa9 100644
--- a/app/views/projects/settings/types/_form.html.erb
+++ b/app/views/projects/settings/types/_form.html.erb
@@ -83,13 +83,13 @@ See COPYRIGHT and LICENSE files for more details.
<tr>
<td class='center'>
<% type_id = "project_planning_element_type_ids_#{type.id}" %>
- <%= label_tag type_id, t('.enable_type_in_project', type: type.name), class: 'hidden-for-sighted' %>
+ <%= label_tag type_id, t(".enable_type_in_project", type: type.name), class: "hidden-for-sighted" %>
<%= check_box_tag "project[type_ids][]",
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 %>
+ <%= hidden_field_tag "project[type_ids][]", "", :'data-for' => type_id %>
</td>
<td>
<%= icon_for_type(type) %>
@@ -110,5 +110,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
</div>
diff --git a/app/views/projects/settings/types/show.html.erb b/app/views/projects/settings/types/show.html.erb
index acfc7fc279c..aaed18aac3c 100644
--- a/app/views/projects/settings/types/show.html.erb
+++ b/app/views/projects/settings/types/show.html.erb
@@ -40,13 +40,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= form_for @project,
url: project_settings_types_path(@project),
method: :patch,
- html: { id: 'types-form' } do |f| %>
- <%= render partial: 'form',
+ html: { id: "types-form" } do |f| %>
+ <%= render partial: "form",
locals: { f: f, project: @project } %>
<% end %>
<br>
<% else %>
- <%= no_results_box custom_title: t('projects.settings.types.no_results_title_text') %>
+ <%= no_results_box custom_title: t("projects.settings.types.no_results_title_text") %>
<% end %>
diff --git a/app/views/projects/settings/versions/show.html.erb b/app/views/projects/settings/versions/show.html.erb
index 8add56523b9..259159f0f97 100644
--- a/app/views/projects/settings/versions/show.html.erb
+++ b/app/views/projects/settings/versions/show.html.erb
@@ -42,9 +42,9 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_version_new) },
title: t(:label_version_new),
tag: :a,
- href: url_for({ controller: '/versions', action: 'new', project_id: @project })) do |button|
+ href: url_for({ controller: "/versions", action: "new", project_id: @project })) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.version')
+ t("activerecord.models.version")
end
end %>
<% end %>
@@ -57,12 +57,12 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to t(:label_close_versions),
close_completed_project_versions_path(@project),
method: :put,
- class: 'button' %>
+ class: "button" %>
</div>
<% end %>
<% else %>
<%= no_results_box action_url: new_project_version_path(@project),
- display_action: authorize_for('versions', 'new'),
- custom_title: t('projects.settings.versions.no_results_title_text'),
- custom_action_text: t('projects.settings.versions.no_results_content_text') %>
+ display_action: authorize_for("versions", "new"),
+ custom_title: t("projects.settings.versions.no_results_title_text"),
+ custom_action_text: t("projects.settings.versions.no_results_content_text") %>
<% end %>
diff --git a/app/views/reminders/notification_mailer/reminder_notification.html.erb b/app/views/reminders/notification_mailer/reminder_notification.html.erb
index aea025f165e..274e8101abc 100644
--- a/app/views/reminders/notification_mailer/reminder_notification.html.erb
+++ b/app/views/reminders/notification_mailer/reminder_notification.html.erb
@@ -1,14 +1,14 @@
<table <%= placeholder_table_styles %>>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
-<table <%= placeholder_table_styles(width: '100%', style: 'width:100%;max-width:700px;') %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px;") %>>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
- <%= render partial: 'mailer/mailer_header',
+ <%= render partial: "mailer/mailer_header",
locals: {
summary: reminder_summary_text,
button_href: notifications_url,
@@ -16,7 +16,7 @@
user: @user,
} %>
- <%= render layout: 'mailer/notification_row',
+ <%= render layout: "mailer/notification_row",
locals: {
work_package: @notification.resource,
unique_reasons: [@notification.reason],
@@ -36,7 +36,7 @@
</table>
<% end %>
- <%= render layout: 'mailer/notification_settings_table',
+ <%= render layout: "mailer/notification_settings_table",
locals: {
button_url: my_reminders_url,
button_text: I18n.t(:'mail.notification.settings')
@@ -45,10 +45,10 @@
<table>
<tr>
- <%= placeholder_cell('40px', vertical: false) %>
+ <%= placeholder_cell("40px", vertical: false) %>
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
</table>
diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erb
index be5b75a8548..653caa27c0a 100644
--- a/app/views/repositories/_breadcrumbs.html.erb
+++ b/app/views/repositories/_breadcrumbs.html.erb
@@ -27,9 +27,9 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= link_to({ action: 'show', project_id: @project, repo_path: nil, rev: @rev },
+<%= link_to({ action: "show", project_id: @project, repo_path: nil, rev: @rev },
{ title: I18n.t(:label_repository_root) }) do %>
- <%= op_icon('icon-home repository-breadcrumbs--home') %>
+ <%= op_icon("icon-home repository-breadcrumbs--home") %>
<% end %>
<%
dirs = path.split('/')
@@ -43,7 +43,7 @@ dirs.each_with_index do |dir, index|
<% if index == dirs.size - 1 %>
<strong><%= h(dir) %></strong>
<% else %>
- <%= link_to h(dir), action: 'show', project_id: @project,
+ <%= link_to h(dir), action: "show", project_id: @project,
repo_path: to_path_param(link_path), rev: @rev %>
<% end %>
<% end %>
diff --git a/app/views/repositories/_checkout_instructions.html.erb b/app/views/repositories/_checkout_instructions.html.erb
index 4854d7dfb8b..5967c442e3b 100644
--- a/app/views/repositories/_checkout_instructions.html.erb
+++ b/app/views/repositories/_checkout_instructions.html.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= simple_format instructions.instructions %>
<% if instructions.manages_permissions? %>
<br>
- <span><%= t('repositories.checkout.access_permission') %>:</span>
+ <span><%= t("repositories.checkout.access_permission") %>:</span>
<strong><%= t("repositories.checkout.access.#{instructions.permission}") %></strong>
<% end %>
</p>
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
class="op-toast--close icon-context icon-close">
</a>
<div class="op-toast--content">
- <p><%= t('repositories.checkout.not_available') %></p>
+ <p><%= t("repositories.checkout.not_available") %></p>
</div>
</div>
<% end %>
diff --git a/app/views/repositories/_dir_list.html.erb b/app/views/repositories/_dir_list.html.erb
index 89cd99600bd..c36f6472e10 100644
--- a/app/views/repositories/_dir_list.html.erb
+++ b/app/views/repositories/_dir_list.html.erb
@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= I18n.t('js.tl_toolbar.outlines') %>
+ <%= I18n.t("js.tl_toolbar.outlines") %>
</span>
</div>
</div>
@@ -106,7 +106,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
</thead>
<tbody>
- <%= render partial: 'dir_list_content' %>
+ <%= render partial: "dir_list_content" %>
</tbody>
</table>
</div>
diff --git a/app/views/repositories/_dir_list_content.html.erb b/app/views/repositories/_dir_list_content.html.erb
index adebc0c80d3..db0b41b26ea 100644
--- a/app/views/repositories/_dir_list_content.html.erb
+++ b/app/views/repositories/_dir_list_content.html.erb
@@ -43,32 +43,32 @@ See COPYRIGHT and LICENSE files for more details.
depth = params[:depth].to_i %>
<% ent_path = replace_invalid_utf8(entry.path) %>
<% ent_name = replace_invalid_utf8(entry.name) %>
- <% parent_ref = params[:parent_id] ? "dir_#{h(params[:parent_id])}" : '' %>
+ <% parent_ref = params[:parent_id] ? "dir_#{h(params[:parent_id])}" : "" %>
<tr id="dir_<%= tr_id %>" class="<%= parent_ref %> <%= h(entry.kind) %>">
<td class="filename" style="padding-left: <%= 18 * depth %>px;">
<% if entry.dir? %>
- <%= link_to '#',
- class: 'icon-context dir-expander',
- title: I18n.t('js.label_expand'),
- 'aria-label': I18n.t('js.label_expand'),
+ <%= link_to "#",
+ class: "icon-context dir-expander",
+ title: I18n.t("js.label_expand"),
+ 'aria-label': I18n.t("js.label_expand"),
data: {
- action: 'repository-navigation#toggleDirectory',
+ action: "repository-navigation#toggleDirectory",
element: "dir_#{tr_id}",
- url: url_for(action: 'show',
+ url: url_for(action: "show",
project_id: @project,
repo_path: to_path_param(ent_path),
rev: @rev,
depth: (depth + 1),
parent_id: tr_id),
} do %>
- <%= op_icon('icon-context') %>
+ <%= op_icon("icon-context") %>
&nbsp;
<% end %>
<% end %>
- <%= link_to({ action: (entry.dir? ? 'show' : 'changes'), project_id: @project, repo_path: to_path_param(ent_path), rev: @rev },
- class: 'icon-context',
- aria: { label: (entry.dir? ? t('label_folder') : t('activerecord.attributes.attachment.file')) + " #{h(ent_name)}" }) do %>
- <%= op_icon(entry.dir? ? 'icon-folder' : "icon-ticket #{OpenProject::MimeType.css_class_of(ent_name)}") %>
+ <%= link_to({ action: (entry.dir? ? "show" : "changes"), project_id: @project, repo_path: to_path_param(ent_path), rev: @rev },
+ class: "icon-context",
+ aria: { label: (entry.dir? ? t("label_folder") : t("activerecord.attributes.attachment.file")) + " #{h(ent_name)}" }) do %>
+ <%= op_icon(entry.dir? ? "icon-folder" : "icon-ticket #{OpenProject::MimeType.css_class_of(ent_name)}") %>
<%= h(ent_name) %>
<% end %>
</td>
@@ -77,7 +77,7 @@ See COPYRIGHT and LICENSE files for more details.
<% changeset = @project.repository.find_changeset_by_name(entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %>
<td class="revision"><%= link_to_revision(changeset, @project) if changeset %></td>
<td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
- <td class="author"><%= changeset.nil? ? h(replace_invalid_utf8(entry.lastrev.author.to_s.split('<').first)) : h(changeset.author) if entry.lastrev %></td>
+ <td class="author"><%= changeset.nil? ? h(replace_invalid_utf8(entry.lastrev.author.to_s.split("<").first)) : h(changeset.author) if entry.lastrev %></td>
<td class="comments"><%= h truncate(Changeset.to_utf8(changeset.comments, changeset.repository.repo_log_encoding), length: 50) unless changeset.nil? %></td>
</tr>
<% end %>
diff --git a/app/views/repositories/_link_to_functions.html.erb b/app/views/repositories/_link_to_functions.html.erb
index 51efeecb14b..e42be8194c5 100644
--- a/app/views/repositories/_link_to_functions.html.erb
+++ b/app/views/repositories/_link_to_functions.html.erb
@@ -28,14 +28,14 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% if @entry && @entry.kind == 'file' %>
<p>
- <%= link_to_if action_name != 'changes', t(:label_history), {action: 'changes', project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |
+ <%= link_to_if action_name != "changes", t(:label_history), {action: "changes", project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |
<% if @repository.supports_cat? %>
- <%= link_to_if action_name != 'entry', t(:button_view), entry_revision_project_repository_path(project_id: @project, repo_path: to_path_param(@path), rev: @rev) %> |
+ <%= link_to_if action_name != "entry", t(:button_view), entry_revision_project_repository_path(project_id: @project, repo_path: to_path_param(@path), rev: @rev) %> |
<% end %>
<% if @repository.supports_annotate? %>
- <%= link_to_if action_name != 'annotate', t(:button_annotate), {action: 'annotate', project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |
+ <%= link_to_if action_name != "annotate", t(:button_annotate), {action: "annotate", project_id: @project, repo_path: to_path_param(@path), rev: @rev } %> |
<% end %>
- <%= link_to(t(:button_download), {action: 'entry', project_id: @project, repo_path: to_path_param(@path), rev: @rev, format: 'raw' }) if @repository.supports_cat? %>
+ <%= link_to(t(:button_download), {action: "entry", project_id: @project, repo_path: to_path_param(@path), rev: @rev, format: "raw" }) if @repository.supports_cat? %>
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
</p>
<% end %>
diff --git a/app/views/repositories/_repository_header.html.erb b/app/views/repositories/_repository_header.html.erb
index 50089b9bdb2..774502fae40 100644
--- a/app/views/repositories/_repository_header.html.erb
+++ b/app/views/repositories/_repository_header.html.erb
@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<opce-persistent-toggle data-identifier="repository.checkout_instructions"></opce-persistent-toggle>
-<%= toolbar title: t('repositories.named_repository',
+<%= toolbar title: t("repositories.named_repository",
vendor_name: @repository.class.vendor_name) do %>
<% if @instructions && @instructions.available? %>
<li class="toolbar-item toolbar-input-group hidden-for-mobile">
@@ -39,29 +39,29 @@ See COPYRIGHT and LICENSE files for more details.
type="text" class="-clickable" size="40"
value="<%= @instructions.checkout_url(true) %>"
readonly>
- <% csp_onclick('this.focus(); this.select();', '#repository-checkout-url') %>
+ <% csp_onclick("this.focus(); this.select();", "#repository-checkout-url") %>
<opce-copy-to-clipboard click-target=".repository-checkout-copy-button"
clipboard-target="#repository-checkout-url">
</opce-copy-to-clipboard>
<button class="repository-checkout-copy-button toolbar-input--affix toolbar-input-group--affix -append"
title="<%= t(:button_copy_to_clipboard) %>">
- <%= op_icon('icon-copy') %>
+ <%= op_icon("icon-copy") %>
<span class="hidden-for-sighted"><%= t(:button_copy_to_clipboard) %></span>
</button>
</li>
<li class="toolbar-item -icon-only">
<a id="repository--checkout-instructions-toggle"
class="persistent-toggle--click-handler button"
- title="<%= t('repositories.checkout.show_instructions') %>">
- <%= op_icon('button--icon icon-info1') %>
+ title="<%= t("repositories.checkout.show_instructions") %>">
+ <%= op_icon("button--icon icon-info1") %>
</a>
</li>
<% end %>
<% if !empty && User.current.allowed_in_project?(:browse_repository, @project) %>
<li class="toolbar-item -icon-only">
<%= link_to stats_project_repository_path(@project),
- class: 'button', title: t(:label_statistics) do %>
- <%= op_icon('button--icon icon-chart1') %>
+ class: "button", title: t(:label_statistics) do %>
+ <%= op_icon("button--icon icon-chart1") %>
<% end %>
</li>
<% end %>
@@ -70,14 +70,14 @@ See COPYRIGHT and LICENSE files for more details.
<% if User.current.allowed_in_project?(:manage_repository, @project) %>
<li class="toolbar-item -icon-only">
<%= link_to project_settings_repository_path(@project),
- class: 'button', title: t(:label_setting_plural) do %>
- <%= op_icon('button--icon icon-settings') %>
+ class: "button", title: t(:label_setting_plural) do %>
+ <%= op_icon("button--icon icon-settings") %>
<% end %>
</li>
<% end %>
<% end %>
<% if @instructions %>
- <%= render partial: 'checkout_instructions',
+ <%= render partial: "checkout_instructions",
locals: { repository: @repository, instructions: @instructions } %>
<% end %>
diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb
index 9701a787b73..3e12dc1f3de 100644
--- a/app/views/repositories/_revisions.html.erb
+++ b/app/views/repositories/_revisions.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= form_tag({controller: '/repositories', action: 'diff', project_id: @project, repo_path: to_path_param(path)}, method: :get) do %>
+<%= form_tag({controller: "/repositories", action: "diff", project_id: @project, repo_path: to_path_param(path)}, method: :get) do %>
<div class="generic-table--container">
<div class="generic-table--results-container">
<table class="generic-table changesets">
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
</colgroup>
<caption class="hidden-for-sighted">
<span>
- <%= t(:text_table_difference_description, entries: t(:label_changeset) + ' ' + t(:label_version_plural)) %>
+ <%= t(:text_table_difference_description, entries: t(:label_changeset) + " " + t(:label_version_plural)) %>
</span>
</caption>
<thead>
@@ -62,7 +62,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--empty-header">
<div class="generic-table--header">
<span>
- <%= t(:description_compare_from) + ' ' + t(:label_changeset) %>
+ <%= t(:description_compare_from) + " " + t(:label_changeset) %>
</span>
</div>
</div>
@@ -71,7 +71,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--empty-header">
<div class="generic-table--header">
<span>
- <%= t(:description_compare_to) + ' ' + t(:label_changeset) %>
+ <%= t(:description_compare_to) + " " + t(:label_changeset) %>
</span>
</div>
</div>
@@ -114,9 +114,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to_revision(changeset, project) %>
</td>
<td class="checkbox">
- <%= label_tag "cb-#{line_num}", t(:description_compare_from) + ' ' + t(:label_changeset), class: 'hidden-for-sighted' %>
+ <%= label_tag "cb-#{line_num}", t(:description_compare_from) + " " + t(:label_changeset), class: "hidden-for-sighted" %>
<% if show_diff && (line_num < revisions.size) %>
- <%= radio_button_tag 'rev',
+ <%= radio_button_tag "rev",
changeset.identifier,
(line_num==1),
id: "cb-#{line_num}" %>
@@ -125,9 +125,9 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
</td>
<td class="checkbox">
- <%= label_tag "cbto-#{line_num}", t(:description_compare_to) + ' ' + t(:label_changeset), class: 'hidden-for-sighted' %>
+ <%= label_tag "cbto-#{line_num}", t(:description_compare_to) + " " + t(:label_changeset), class: "hidden-for-sighted" %>
<% if show_diff && (line_num > 1) %>
- <%= radio_button_tag 'rev_to',
+ <%= radio_button_tag "rev_to",
changeset.identifier,
(line_num==2),
id: "cbto-#{line_num}" %>
@@ -155,7 +155,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if show_diff %>
<div class="generic-table--action-buttons">
<button type="submit" class="button">
- <%= op_icon('button--icon icon-compare2') %>
+ <%= op_icon("button--icon icon-compare2") %>
<span class="button--text"><%= t(:label_view_diff) %></span>
</button>
</div>
diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb
index 5f11e568287..1790d5dcf64 100644
--- a/app/views/repositories/annotate.html.erb
+++ b/app/views/repositories/annotate.html.erb
@@ -28,13 +28,13 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= call_hook(:view_repositories_show_contextual, { repository: @repository, project: @project }) %>
<% html_title(t(:button_annotate)) %>
-<%= render partial: 'repository_header', locals: { empty: false } %>
+<%= render partial: "repository_header", locals: { empty: false } %>
<div class="repository-breadcrumbs">
- <%= render partial: 'breadcrumbs',
- locals: { path: @path, revision: @rev }.merge(kind: 'file') %>
+ <%= render partial: "breadcrumbs",
+ locals: { path: @path, revision: @rev }.merge(kind: "file") %>
</div>
-<p><%= render partial: 'link_to_functions' %></p>
+<p><%= render partial: "link_to_functions" %></p>
<% if @annotate.nil? || @annotate.empty? %>
<%= no_results_box %>
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
<th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
<td class="revision">
<%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %></td>
- <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
+ <td class="author"><%= h(revision.author.to_s.split("<").first) if revision %></td>
<td class="line-code">
<pre><%= line %></pre>
</td>
diff --git a/app/views/repositories/changes.html.erb b/app/views/repositories/changes.html.erb
index a895ebdb0a5..d245388a910 100644
--- a/app/views/repositories/changes.html.erb
+++ b/app/views/repositories/changes.html.erb
@@ -28,18 +28,18 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= call_hook(:view_repositories_show_contextual, { repository: @repository, project: @project }) %>
-<%= render partial: 'repository_header', locals: { empty: false } %>
+<%= render partial: "repository_header", locals: { empty: false } %>
<div class="repository-breadcrumbs">
- <%= render partial: 'breadcrumbs',
+ <%= render partial: "breadcrumbs",
locals: { path: @path, revision: @rev }.merge(kind: (@entry ? @entry.kind : nil)) %>
</div>
-<p><%= render partial: 'link_to_functions' %></p>
+<p><%= render partial: "link_to_functions" %></p>
<%= render_properties(@properties) %>
-<%= render(partial: 'revisions',
+<%= render(partial: "revisions",
locals: {project: @project, path: @path, revisions: @changesets, entry: @entry }) unless @changesets.empty? %>
<% html_title(t(:label_change_plural)) -%>
diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erb
index 460e9ea4922..5a558cab2aa 100644
--- a/app/views/repositories/committers.html.erb
+++ b/app/views/repositories/committers.html.erb
@@ -76,7 +76,7 @@ See COPYRIGHT and LICENSE files for more details.
<td><%= h committer %></td>
<td>
<%= hidden_field_tag "committers[#{i}][]", committer %>
- <%= select_tag "committers[#{i}][]", content_tag('option', "-- #{t(:actionview_instancetag_blank_option)} --", value: '') + options_from_collection_for_select(@users, 'id', 'name', user_id.to_i) %>
+ <%= select_tag "committers[#{i}][]", content_tag("option", "-- #{t(:actionview_instancetag_blank_option)} --", value: "") + options_from_collection_for_select(@users, "id", "name", user_id.to_i) %>
</td>
</tr>
<% i += 1 -%>
@@ -88,8 +88,8 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<hr class="form--separator">
<p>
- <%= submit_tag t(:button_update), class: 'button -primary' %>
- <%= link_to project_settings_repository_path(@project.id), class: 'button' do %>
+ <%= submit_tag t(:button_update), class: "button -primary" %>
+ <%= link_to project_settings_repository_path(@project.id), class: "button" do %>
<span class="button--text"><%= t(:button_cancel) %></span>
<% end %>
</p>
diff --git a/app/views/repositories/destroy_info.html.erb b/app/views/repositories/destroy_info.html.erb
index 48691b69097..05277ab045f 100644
--- a/app/views/repositories/destroy_info.html.erb
+++ b/app/views/repositories/destroy_info.html.erb
@@ -36,23 +36,23 @@ See COPYRIGHT and LICENSE files for more details.
t(:label_repository_remove)]) end
%>
<% if @repository.managed? %>
- <%= styled_form_tag(project_repository_path(@project), method: :delete, class: 'danger-zone') do %>
+ <%= styled_form_tag(project_repository_path(@project), method: :delete, class: "danger-zone") do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('repositories.destroy.title', repository_type: "<em>#{h(@repository.repository_type)} - #{t(:project_module_repository)}</em>").html_safe %>
+ <%= t("repositories.destroy.title", repository_type: "<em>#{h(@repository.repository_type)} - #{t(:project_module_repository)}</em>").html_safe %>
</h3>
<p>
- <%= t('repositories.destroy.subtitle', repository_type: "#{h(@repository.repository_type)} - #{t(:project_module_repository)}", project_name: h(@project.identifier)).html_safe %> <br>
- <%= t('repositories.destroy.confirmation') %>
+ <%= t("repositories.destroy.subtitle", repository_type: "#{h(@repository.repository_type)} - #{t(:project_module_repository)}", project_name: h(@project.identifier)).html_safe %> <br>
+ <%= t("repositories.destroy.confirmation") %>
<br>
- <%= t('repositories.destroy.managed_path_note', path: @repository.root_url) %>
+ <%= t("repositories.destroy.managed_path_note", path: @repository.root_url) %>
</p>
<p class="danger-zone--warning">
<span class="icon icon-error"></span>
- <span><%= t('repositories.destroy.info') %></span>
+ <span><%= t("repositories.destroy.info") %></span>
</p>
<p>
- <%= t('repositories.destroy.repository_verification', identifier: "<em class=\"danger-zone--expected-value\">#{h(@project.identifier)}</em>").html_safe %>
+ <%= t("repositories.destroy.repository_verification", identifier: "<em class=\"danger-zone--expected-value\">#{h(@project.identifier)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<input type="text"><input>
@@ -60,13 +60,13 @@ See COPYRIGHT and LICENSE files for more details.
method: :delete,
title: t(:button_delete),
disabled: true,
- class: '-primary' do %>
- <%= op_icon('button--icon icon-delete') %>
+ class: "-primary" do %>
+ <%= op_icon("button--icon icon-delete") %>
<span class="button--text"><%= t(:button_delete) %></span>
<% end %>
<%= link_to project_settings_repository_path(@project),
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' do %>
+ class: "button -with-icon icon-cancel" do %>
<%= t(:button_cancel) %>
<% end %>
</div>
@@ -75,28 +75,28 @@ See COPYRIGHT and LICENSE files for more details.
<% else %>
<div class="op-toast -warning">
<div class="op-toast--content">
- <p><strong><%= t('repositories.destroy.title_not_managed', repository_type: "<em>#{h(@repository.repository_type)} - #{t(:project_module_repository)}</em>").html_safe %></strong><br></p>
+ <p><strong><%= t("repositories.destroy.title_not_managed", repository_type: "<em>#{h(@repository.repository_type)} - #{t(:project_module_repository)}</em>").html_safe %></strong><br></p>
<p>
- <%= t('repositories.destroy.subtitle_not_managed',
+ <%= t("repositories.destroy.subtitle_not_managed",
repository_type: "#{h(@repository.repository_type)} - #{t(:project_module_repository)}",
project_name: h(@project.identifier),
url: h(@repository.url)).html_safe %> <br>
</p>
<p>
- <span><%= t('repositories.destroy.info_not_managed') %></span>
+ <span><%= t("repositories.destroy.info_not_managed") %></span>
</p>
<p>
<%= link_to project_repository_path(@project),
title: t(:button_delete),
method: :delete,
data: { "test-selector": "remove-repository-button"},
- class: 'button' do %>
- <%= op_icon('button--icon icon-remove') %>
+ class: "button" do %>
+ <%= op_icon("button--icon icon-remove") %>
<span class="button--text"><%= t(:button_remove) %></span>
<% end %>
<%= link_to project_settings_repository_path(@project),
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' do %>
+ class: "button -with-icon icon-cancel" do %>
<%= t(:button_cancel) %>
<% end %>
</p>
diff --git a/app/views/repositories/empty.html.erb b/app/views/repositories/empty.html.erb
index 74a6e319aa1..a07fdc58ee1 100644
--- a/app/views/repositories/empty.html.erb
+++ b/app/views/repositories/empty.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render partial: 'repository_header',
+<%= render partial: "repository_header",
locals: { empty: true } %>
<%= no_results_box %>
diff --git a/app/views/repositories/entry.html.erb b/app/views/repositories/entry.html.erb
index 248dd65824f..a7508b6f790 100644
--- a/app/views/repositories/entry.html.erb
+++ b/app/views/repositories/entry.html.erb
@@ -29,13 +29,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= call_hook(:view_repositories_show_contextual, { repository: @repository, project: @project }) %>
-<%= render partial: 'repository_header', locals: { empty: false } %>
+<%= render partial: "repository_header", locals: { empty: false } %>
<div class="repository-breadcrumbs">
- <%= render partial: 'breadcrumbs',
- locals: { path: @path, revision: @rev }.merge(kind: 'dir') %>
+ <%= render partial: "breadcrumbs",
+ locals: { path: @path, revision: @rev }.merge(kind: "dir") %>
</div>
-<p><%= render partial: 'link_to_functions' %></p>
+<p><%= render partial: "link_to_functions" %></p>
-<%= render partial: 'common/file', locals: {filename: @path, content: @content} %>
+<%= render partial: "common/file", locals: {filename: @path, content: @content} %>
diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erb
index 5f00584b218..c14e8d7d9b0 100644
--- a/app/views/repositories/revision.html.erb
+++ b/app/views/repositories/revision.html.erb
@@ -32,18 +32,18 @@ See COPYRIGHT and LICENSE files for more details.
<% if @changeset.previous.nil? %>
<button class="button" disabled="disabled"><%= t(:label_previous) %></button>
<% else %>
- <%= link_to_revision(@changeset.previous, @project, text: t(:label_previous), class: 'button') %>
+ <%= link_to_revision(@changeset.previous, @project, text: t(:label_previous), class: "button") %>
<% end %>
</li>
<li class="toolbar-item">
<% if @changeset.next.nil? %>
<button class="button" disabled="disabled"><%= t(:label_next) %></button>
<% else %>
- <%= link_to_revision(@changeset.next, @project, text: t(:label_next), class: 'button') %>
+ <%= link_to_revision(@changeset.next, @project, text: t(:label_next), class: "button") %>
<% end %>
</li>
<li class="toolbar-item">
- <%= form_tag({controller: '/repositories', action: 'revision', project_id: @project}, method: :get) do %>
+ <%= form_tag({controller: "/repositories", action: "revision", project_id: @project}, method: :get) do %>
<%= text_field_tag :rev, @rev, placeholder: t(:label_revision) %>
<% end %>
</li>
@@ -69,7 +69,7 @@ See COPYRIGHT and LICENSE files for more details.
<li class="change change-R icon icon-rename" title=<%= t(:label_renamed) %>><%= t(:label_renamed) %></li>
<li class="change change-D icon icon-delete" title=<%= t(:label_deleted) %>><%= t(:label_deleted) %></li>
</ul>
- <p><%= link_to(t(:label_view_diff), action: 'diff', project_id: @project, repo_path: nil, rev: @changeset.identifier) if @changeset.file_changes.any? %></p>
+ <p><%= link_to(t(:label_view_diff), action: "diff", project_id: @project, repo_path: nil, rev: @changeset.identifier) if @changeset.file_changes.any? %></p>
<div class="changeset-changes">
<%= render_changeset_changes %>
</div>
diff --git a/app/views/repositories/revisions.html.erb b/app/views/repositories/revisions.html.erb
index e3e6dd05ad5..c49b00ccb94 100644
--- a/app/views/repositories/revisions.html.erb
+++ b/app/views/repositories/revisions.html.erb
@@ -27,23 +27,23 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= toolbar title: t(:label_revision_plural) do %>
- <%= form_tag({ action: 'revision', id: @project }, { method: :get }) do %>
+ <%= form_tag({ action: "revision", id: @project }, { method: :get }) do %>
<li class="toolbar-item">
- <%= label_tag :rev, t(:label_revision), class: 'hidden-for-sighted' %>
+ <%= label_tag :rev, t(:label_revision), class: "hidden-for-sighted" %>
<%= text_field_tag :rev, @rev, size: 8, placeholder: t(:label_revision) %>
</li>
<li class="toolbar-item">
- <%= submit_tag 'OK', class: 'button -primary' %>
+ <%= submit_tag "OK", class: "button -primary" %>
</li>
<% end %>
<% end %>
-<%= render partial: 'revisions', locals: {project: @project, path: '', revisions: @changesets, entry: nil } %>
+<%= render partial: "revisions", locals: {project: @project, path: "", revisions: @changesets, entry: nil } %>
<%= pagination_links_full @changesets %>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, params.merge({format: 'atom', page: nil, key: User.current.rss_key})) %>
+ <%= auto_discovery_link_tag(:atom, params.merge({format: "atom", page: nil, key: User.current.rss_key})) %>
<% end %>
<%= other_formats_links do |f| %>
- <%= f.link_to 'Atom', url: {key: User.current.rss_key} %>
+ <%= f.link_to "Atom", url: {key: User.current.rss_key} %>
<% end %>
<% html_title(t(:label_revision_plural)) -%>
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index 1cb17b8b782..79f0543356f 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -27,21 +27,21 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% content_controller 'repository-navigation', dynamic: true %>
-<%= render partial: 'repository_header', locals: { empty: false } %>
+<% content_controller "repository-navigation", dynamic: true %>
+<%= render partial: "repository_header", locals: { empty: false } %>
<div class="repository-breadcrumbs">
- <%= render partial: 'breadcrumbs',
- locals: { path: @path, revision: @rev }.merge(kind: 'dir') %>
+ <%= render partial: "breadcrumbs",
+ locals: { path: @path, revision: @rev }.merge(kind: "dir") %>
</div>
<% if [email protected]? && authorize_for('repositories', 'browse') %>
- <%= render partial: 'dir_list' %>
+ <%= render partial: "dir_list" %>
<% end %>
<%= render_properties(@properties) %>
-<%= toolbar title: t(:label_revision_plural), html: { class: 'repository--revision-toolbar' } do %>
+<%= toolbar title: t(:label_revision_plural), html: { class: "repository--revision-toolbar" } do %>
<%# rev => nil prevents overwriting the rev parameter queried for in the form with the parameter from the request %>
<%= form_tag({ action: controller.action_name,
project_id: @project,
@@ -49,60 +49,60 @@ See COPYRIGHT and LICENSE files for more details.
rev: nil
},
method: :get,
- id: 'revision_selector',
- class: 'form -vertical',
+ 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">
<div>
- <%= label_tag 'rev', I18n.t('repositories.go_to_revision') %>
+ <%= label_tag "rev", I18n.t("repositories.go_to_revision") %>
</div>
<%= text_field_tag :rev,
@rev,
- id: 'revision-identifier-input',
+ id: "revision-identifier-input",
placeholder: t(:label_revision),
data: {
- 'repository-navigation-target': 'revision',
- action: 'keydown.enter->repository-navigation#sendForm'
+ 'repository-navigation-target': "revision",
+ action: "keydown.enter->repository-navigation#sendForm"
} %>
</li>
<% if [email protected]? && @repository.branches.length > 0 %>
<li class="toolbar-item toolbar-input-group hidden-for-mobile">
<div>
- <%= label_tag 'branch', I18n.t(:label_branch) %>
+ <%= label_tag "branch", I18n.t(:label_branch) %>
</div>
<%= select_tag :branch,
options_for_select(@repository.branches, @rev),
include_blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
- id: 'revision-branch-select',
+ id: "revision-branch-select",
data: {
- 'repository-navigation-target': 'branch',
- action: 'repository-navigation#applyValue'
+ 'repository-navigation-target': "branch",
+ action: "repository-navigation#applyValue"
} %>
</li>
<% end %>
<% if [email protected]? && @repository.tags.length > 0 %>
<li class="toolbar-item toolbar-input-group hidden-for-mobile">
<div>
- <%= label_tag 'tag', I18n.t(:label_tag) %>
+ <%= label_tag "tag", I18n.t(:label_tag) %>
</div>
<%= select_tag :tag,
options_for_select(@repository.tags, @rev),
include_blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
- id: 'revision-tag-select',
+ id: "revision-tag-select",
data: {
- 'repository-navigation-target': 'tag',
- action: 'repository-navigation#applyValue'
+ 'repository-navigation-target': "tag",
+ action: "repository-navigation#applyValue"
} %>
</li>
<% end %>
<li class="toolbar-item -icon-only">
- <%= link_to({ url: { action: 'revision#revision-identifier-inputs', project_id: @project,
+ <%= link_to({ url: { action: "revision#revision-identifier-inputs", project_id: @project,
key: User.current.rss_key } },
- { class: 'button', title: t('repositories.atom_revision_feed') }) do %>
- <%= op_icon('button--icon icon-export-atom') %>
+ { class: "button", title: t("repositories.atom_revision_feed") }) do %>
+ <%= op_icon("button--icon icon-export-atom") %>
<% end %>
</li>
<% end %>
@@ -110,19 +110,19 @@ See COPYRIGHT and LICENSE files for more details.
<% if authorize_for('repositories', 'revisions') %>
<% if @changesets && [email protected]? %>
- <%= render partial: 'revisions',
+ <%= render partial: "revisions",
locals: { project: @project, path: @path,
revisions: @changesets, entry: nil } %>
<% end %>
<p>
<%
has_branches = ([email protected]? && @repository.branches.length > 0)
- sep = ''
+ sep = ""
%>
<% if @repository.supports_all_revisions? && @path.blank? %>
<%= link_to t(:label_view_all_revisions), revisions_project_repository_path(@project) %>
- <% sep = '|' %>
+ <% sep = "|" %>
<% end %>
</p>
<% end %>
diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erb
index 4014b452415..523ad8fb40b 100644
--- a/app/views/repositories/stats.html.erb
+++ b/app/views/repositories/stats.html.erb
@@ -33,8 +33,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= tag("embed", width: 800,
height: 300,
type: "image/svg+xml",
- src: url_for(controller: '/repositories',
- action: 'graph',
+ src: url_for(controller: "/repositories",
+ action: "graph",
project_id: @project.id,
graph: "commits_per_month")) %>
</p>
@@ -43,13 +43,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= tag("embed", width: 800,
height: 400,
type: "image/svg+xml",
- src: url_for(controller: '/repositories',
- action: 'graph',
+ src: url_for(controller: "/repositories",
+ action: "graph",
project_id: @project.id,
graph: "commits_per_author")) %>
</p>
<% end %>
-<p><%= link_to t(:button_back), action: 'show', project_id: @project.id %></p>
+<p><%= link_to t(:button_back), action: "show", project_id: @project.id %></p>
<% html_title(t(:label_repository), t(:label_statistics)) -%>
diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erb
index ebfa61e1682..22425a3a312 100644
--- a/app/views/roles/_form.html.erb
+++ b/app/views/roles/_form.html.erb
@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.
data-application-target="dynamic"
data-admin--roles-global-role-value="<%= role.is_a?(GlobalRole) %>">
<div class="form--field -required">
- <%= f.text_field :name, required: true, container_class: '-slim' %>
+ <%= f.text_field :name, required: true, container_class: "-slim" %>
</div>
<div class="form--field">
<% if role.new_record? %>
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
"1",
role.is_a?(GlobalRole),
data: {
- action: 'admin--roles#toggle'
+ action: "admin--roles#toggle"
}) %>
</div>
<% else %>
diff --git a/app/views/roles/_member_attributes.html.erb b/app/views/roles/_member_attributes.html.erb
index 4374d25db58..53b3358583b 100644
--- a/app/views/roles/_member_attributes.html.erb
+++ b/app/views/roles/_member_attributes.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :copy_workflow_from, t(:label_copy_workflow_from) %>
<div class="form--field-container">
- <%= styled_select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles.select{|r| !r.is_a?(GlobalRole)}, :id, :name), container_class: '-slim') %>
+ <%= styled_select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles.select{|r| !r.is_a?(GlobalRole)}, :id, :name), container_class: "-slim") %>
</div>
</div>
<% end %>
diff --git a/app/views/roles/_member_form.html.erb b/app/views/roles/_member_form.html.erb
index b56a759e92c..bc97145672b 100644
--- a/app/views/roles/_member_form.html.erb
+++ b/app/views/roles/_member_form.html.erb
@@ -47,15 +47,15 @@ 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_') %>
+ <%= styled_check_box_tag "role[permissions][]", permission.name, (@role.permissions.include? permission.name) %>
+ <%= l_or_humanize(permission.name, :prefix => "permission_") %>
</label>
<% end %>
</fieldset>
<% end %>
- <br><%= check_all_links 'permissions' %>
- <%= hidden_field_tag 'role[permissions][]', '' %>
+ <br><%= check_all_links "permissions" %>
+ <%= hidden_field_tag "role[permissions][]", "" %>
</div>
diff --git a/app/views/roles/_permissions.html.erb b/app/views/roles/_permissions.html.erb
index fed1428bb20..deba0e58b34 100644
--- a/app/views/roles/_permissions.html.erb
+++ b/app/views/roles/_permissions.html.erb
@@ -27,8 +27,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% permissions.each do |mod, mod_permissions| %>
- <% global_prefix = show_global_role ? 'fieldset--global--' : 'fieldset--' %>
- <% module_name = mod.blank? ? 'fieldset--global--' + Project.model_name.human.downcase.gsub(' ', '_') : global_prefix + l_or_humanize(mod, prefix: 'project_module_').downcase.gsub(' ', '_') %>
+ <% global_prefix = show_global_role ? "fieldset--global--" : "fieldset--" %>
+ <% module_name = mod.blank? ? "fieldset--global--" + Project.model_name.human.downcase.gsub(" ", "_") : global_prefix + l_or_humanize(mod, prefix: "project_module_").downcase.gsub(" ", "_") %>
<% module_id = module_name.parameterize %>
<fieldset class="form--fieldset -collapsible" id="<%= module_id %>">
<legend class="form--fieldset-legend">
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<div class="form--field-container">
<label class="form--label-with-check-box">
- <%= styled_check_box_tag 'role[permissions][]',
+ <%= styled_check_box_tag "role[permissions][]",
permission.name,
(role.permissions && role.permissions.include?(permission.name)) %>
<%= t(:"permission_#{permission.name}") %>
@@ -70,4 +70,4 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</fieldset>
<% end %>
-<%= hidden_field_tag 'role[permissions][]', '' %>
+<%= hidden_field_tag "role[permissions][]", "" %>
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index fec6290862e..b4eb1848d08 100644
--- a/app/views/roles/index.html.erb
+++ b/app/views/roles/index.html.erb
@@ -96,21 +96,21 @@ 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) %>
+ <%= 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">
- <%= link_to('', role_path(role),
+ <%= link_to("", role_path(role),
method: :delete,
data: { confirm: t(:text_are_you_sure) },
- class: 'icon icon-delete',
+ class: "icon icon-delete",
title: t(:button_delete)) unless role.builtin? %>
</td>
</tr>
diff --git a/app/views/roles/report.html.erb b/app/views/roles/report.html.erb
index 8334cc2f4e3..3bc7dfe9c2e 100644
--- a/app/views/roles/report.html.erb
+++ b/app/views/roles/report.html.erb
@@ -42,11 +42,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for(call.result) %>
<% end %>
-<%= form_tag(roles_path, method: :put, id: 'permissions_form') do %>
- <%= hidden_field_tag 'permissions[0]', '', id: nil %>
+<%= form_tag(roles_path, method: :put, id: "permissions_form") do %>
+ <%= hidden_field_tag "permissions[0]", "", id: nil %>
<% group_permissions_by_module(@permissions).each do |mod, mod_permissions| %>
- <% module_name = mod.blank? ? "form--" + I18n.t('attributes.project') : "form--" + l_or_humanize(mod, prefix: 'project_module_').gsub(' ','_') %>
+ <% module_name = mod.blank? ? "form--" + I18n.t("attributes.project") : "form--" + l_or_humanize(mod, prefix: "project_module_").gsub(" ","_") %>
<% escaped_name = module_name.parameterize %>
<fieldset class="form--fieldset -collapsible" id="<%= escaped_name %>">
<legend class="form--fieldset-legend">
@@ -85,11 +85,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
+ <%= content_tag(role.builtin? ? "em" : "span", h(role.name)) %>
<%= link_to_function(
- icon_wrapper('icon-context icon-checkmark',"#{t(:button_check_all)}/#{t(:button_uncheck_all)}"),
+ icon_wrapper("icon-context icon-checkmark","#{t(:button_check_all)}/#{t(:button_uncheck_all)}"),
"OpenProject.helpers.toggleCheckboxesBySelector('input.role-#{role.id}')",
- class: 'no-decoration-on-hover',
+ class: "no-decoration-on-hover",
title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}") %>
</span>
</div>
@@ -103,11 +103,11 @@ See COPYRIGHT and LICENSE files for more details.
<tr class="permission-<%= permission.name %>">
<td>
<%= link_to_function(
- icon_wrapper('icon-context icon-checkmark',"#{t(:button_check_all)}/#{t(:button_uncheck_all)}"),
+ icon_wrapper("icon-context icon-checkmark","#{t(:button_check_all)}/#{t(:button_uncheck_all)}"),
"OpenProject.helpers.toggleCheckboxesBySelector('.permission-#{permission.name} input')",
- class: 'no-decoration-on-hover',
+ class: "no-decoration-on-hover",
title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}") %>
- <%= l_or_humanize(permission.name, prefix: 'permission_') %>
+ <%= l_or_humanize(permission.name, prefix: "permission_") %>
</td>
<% @roles.each do |role| %>
<td>
@@ -126,5 +126,5 @@ See COPYRIGHT and LICENSE files for more details.
</fieldset>
<% end %>
- <p><%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %></p>
+ <p><%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %></p>
<% end %>
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb
index 92da85f9c56..2694eedd907 100644
--- a/app/views/search/index.html.erb
+++ b/app/views/search/index.html.erb
@@ -44,15 +44,15 @@ See COPYRIGHT and LICENSE files for more details.
<% if @results.present? %>
- <%= render partial: 'pagination', locals: {pagination_previous_date: @pagination_previous_date, pagination_next_date: @pagination_next_date } %>
+ <%= render partial: "pagination", locals: {pagination_previous_date: @pagination_previous_date, pagination_next_date: @pagination_next_date } %>
<dl id="search-results">
<% @results.each do |e| %>
<dt class="<%= e.event_type %>">
- <% event_type = e.event_type == 'meeting' ? 'meetings' : e.event_type %>
- <% event_type = e.event_type == 'budget' ? 'budget' : event_type %>
- <% event_type = e.event_type == 'reply' ? 'forums' : event_type %>
+ <% event_type = e.event_type == "meeting" ? "meetings" : e.event_type %>
+ <% event_type = e.event_type == "budget" ? "budget" : event_type %>
+ <% event_type = e.event_type == "reply" ? "forums" : event_type %>
<%= icon_wrapper("icon-context icon-#{event_type}", e.event_name) %>
<% if e.project != @project %>
@@ -72,5 +72,5 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% end %>
-<%= render partial: 'pagination', locals: {pagination_previous_date: @pagination_previous_date, pagination_next_date: @pagination_next_date } unless params[:work_packages].present? %>
+<%= render partial: "pagination", locals: {pagination_previous_date: @pagination_previous_date, pagination_next_date: @pagination_next_date } unless params[:work_packages].present? %>
<% html_title(t(:label_search)) -%>
diff --git a/app/views/sharing_mailer/shared_work_package.html.erb b/app/views/sharing_mailer/shared_work_package.html.erb
index aa0f510128e..8a0d8387f8d 100644
--- a/app/views/sharing_mailer/shared_work_package.html.erb
+++ b/app/views/sharing_mailer/shared_work_package.html.erb
@@ -1,12 +1,12 @@
<table>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
-<table <%= placeholder_table_styles(width: '100%', style: 'width:100%;max-width:700px') %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px") %>>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
<%
summary = if @group
@@ -16,7 +16,7 @@
end
%>
- <%= render partial: 'mailer/mailer_header',
+ <%= render partial: "mailer/mailer_header",
locals: {
user: @shared_with_user,
summary:,
@@ -24,7 +24,7 @@
button_text: I18n.t(:'mail.sharing.work_packages.open_work_package'),
} %>
- <%= render layout: 'mailer/notification_row',
+ <%= render layout: "mailer/notification_row",
locals: {
work_package: @work_package,
unique_reasons: [:shared],
@@ -32,7 +32,7 @@
notification_url: @url,
open_in_browser_path: @url
} do %>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;') %>>
+ <table <%= placeholder_table_styles(width: "100%", style: "width:100%;") %>>
<tr>
<td style="<%= placeholder_text_styles %>">
<%
@@ -41,26 +41,26 @@
end.to_sentence
%>
- <%= t('mail.sharing.work_packages.allowed_actions', allowed_actions: formatted_actions).html_safe %>
+ <%= t("mail.sharing.work_packages.allowed_actions", allowed_actions: formatted_actions).html_safe %>
</td>
</tr>
</table>
<% end %>
- <%= render partial: 'mailer/notification_settings_table',
+ <%= render partial: "mailer/notification_settings_table",
locals: {
button_url: my_reminders_url,
button_text: I18n.t(:'mail.notification.settings')
} %>
<% if @shared_with_user.invited? %>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;') %>>
+ <table <%= placeholder_table_styles(width: "100%", style: "width:100%;") %>>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
<tr>
<td style="color: #333333; font-size: 16px;">
- <%= t('mail.sharing.work_packages.create_account', instance: Setting.app_title) %>
+ <%= t("mail.sharing.work_packages.create_account", instance: Setting.app_title) %>
</td>
</tr>
</table>
@@ -68,10 +68,10 @@
<table>
<tr>
- <%= placeholder_cell('40px', vertical: false) %>
+ <%= placeholder_cell("40px", vertical: false) %>
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
</table>
diff --git a/app/views/sharing_mailer/shared_work_package.text.erb b/app/views/sharing_mailer/shared_work_package.text.erb
index 63bc3f4c197..0f317660aa2 100644
--- a/app/views/sharing_mailer/shared_work_package.text.erb
+++ b/app/views/sharing_mailer/shared_work_package.text.erb
@@ -1,4 +1,4 @@
-<%= I18n.t('mail.salutation', user: @shared_with_user.firstname) %>
+<%= I18n.t("mail.salutation", user: @shared_with_user.firstname) %>
<%=
if @group
@@ -14,14 +14,14 @@
%>
<%= "-" * 100 %>
-<%= "=" * (('# ' + @work_package.id.to_s + @work_package.subject).length + 4) %>
+<%= "=" * (("# " + @work_package.id.to_s + @work_package.subject).length + 4) %>
= #<%= @work_package.id %> <%= @work_package.subject %> =
-<%= "=" * (('# ' + @work_package.id.to_s + @work_package.subject).length + 4) %>
+<%= "=" * (("# " + @work_package.id.to_s + @work_package.subject).length + 4) %>
-<%= I18n.t('mail.work_packages.reason.shared') %>:
-<%= t('mail.sharing.work_packages.allowed_actions', allowed_actions: @allowed_work_package_actions.to_sentence).html_safe %>
+<%= I18n.t("mail.work_packages.reason.shared") %>:
+<%= t("mail.sharing.work_packages.allowed_actions", allowed_actions: @allowed_work_package_actions.to_sentence).html_safe %>
-<%= t('mail.sharing.work_packages.open_work_package') %>
+<%= t("mail.sharing.work_packages.open_work_package") %>
<%= @url %>
<%= "-" * 100 %>
diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erb
index 2f71bb64ad1..79831e10bcb 100644
--- a/app/views/types/form/_form_configuration.html.erb
+++ b/app/views/types/form/_form_configuration.html.erb
@@ -34,16 +34,16 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-block -visible-overflow wrap">
<div class="grid-content -visible-overflow small-12 large-10">
<% if EnterpriseToken.show_banners? %>
- <%= angular_component_tag 'opce-no-results',
+ <%= 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',
+ <%= angular_component_tag "opce-enterprise-banner",
inputs: {
collapsible: true,
- opReferrer: 'form-configuration',
+ opReferrer: "form-configuration",
topMargin: true,
- textMessage: t('types.edit.more_info_text_html'),
+ textMessage: t("types.edit.more_info_text_html"),
moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:form_configuration][:href],
} %>
<% end %>
@@ -53,9 +53,9 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-content -visible-overflow small-12 large-10">
<% no_filter_query = ::API::V3::Queries::QueryParamsRepresenter.new(Query.new_default.tap { |q| q.filters = [] }).to_json %>
- <%= f.hidden_field :attribute_groups, value: '', class: 'admin-type-form--hidden-field' %>
- <%= content_tag('opce-admin-type-form-configuration',
- '',
+ <%= f.hidden_field :attribute_groups, value: "", class: "admin-type-form--hidden-field" %>
+ <%= content_tag("opce-admin-type-form-configuration",
+ "",
data: {
'active-groups': form_attributes[:actives],
'inactive-attributes': form_attributes[:inactives],
@@ -70,6 +70,6 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--action-buttons">
<%= styled_button_tag t(@type.new_record? ? :button_create : :button_save),
data: { disable_with: t(@type.new_record? ? :button_create : :button_save) },
- class: 'form-configuration--save -primary -with-icon icon-checkmark' %>
+ class: "form-configuration--save -primary -with-icon icon-checkmark" %>
</div>
</div>
diff --git a/app/views/types/form/_projects.html.erb b/app/views/types/form/_projects.html.erb
index aa9dc54811b..c1a968bbb34 100644
--- a/app/views/types/form/_projects.html.erb
+++ b/app/views/types/form/_projects.html.erb
@@ -33,19 +33,19 @@ See COPYRIGHT and LICENSE files for more details.
<% if @projects.any? %>
<fieldset class="form--fieldset" id="type_project_ids">
<legend class="form--fieldset-legend">
- <%= t('types.edit.projects.enabled_projects') %>
+ <%= t("types.edit.projects.enabled_projects") %>
</legend>
<div class="form--toolbar">
<span class="form--toolbar-item">
- (<%= check_all_links 'type_project_ids' %>)
+ (<%= check_all_links "type_project_ids" %>)
</span>
</div>
<%= project_nested_ul(@projects) do |p|
- content_tag('label',
- check_box_tag('type[project_ids][]', p.id, @type.projects.include?(p), id: nil) +
- ' ' + h(p), class: 'form--label-with-check-box')
+ content_tag("label",
+ check_box_tag("type[project_ids][]", p.id, @type.projects.include?(p), id: nil) +
+ " " + h(p), class: "form--label-with-check-box")
end %>
- <%= hidden_field_tag('type[project_ids][]', '', id: nil) %>
+ <%= hidden_field_tag("type[project_ids][]", "", id: nil) %>
</fieldset>
<% end %>
</div>
@@ -55,6 +55,6 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-block">
<div class="generic-table--action-buttons">
<%= styled_button_tag t(@type.new_record? ? :button_create : :button_save),
- class: '-primary -with-icon icon-checkmark' %>
+ class: "-primary -with-icon icon-checkmark" %>
</div>
</div>
diff --git a/app/views/types/index.html.erb b/app/views/types/index.html.erb
index e526f423fe0..290ea283f1d 100644
--- a/app/views/types/index.html.erb
+++ b/app/views/types/index.html.erb
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
tag: :a,
href: new_type_path) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.attributes.work_package.type')
+ t("activerecord.attributes.work_package.type")
end
end
%>
@@ -127,8 +127,8 @@ See COPYRIGHT and LICENSE files for more details.
<% if type.workflows.empty? %>
<span class="icon-context icon-warning">
<%= t(:text_type_no_workflow) %>
- (<%= link_to t(:button_edit), { controller: '/workflows',
- action: 'edit',
+ (<%= link_to t(:button_edit), { controller: "/workflows",
+ action: "edit",
type_id: type} %>)
</span>
<% end %>
@@ -143,14 +143,14 @@ See COPYRIGHT and LICENSE files for more details.
<%= checked_image(type.is_milestone) %>
</td>
<td class="timelines-pet-reorder">
- <%= reorder_links('type', {action: 'move', id: type}) %>
+ <%= reorder_links("type", {action: "move", id: type}) %>
</td>
<td class="buttons">
<% if !type.is_standard? %>
- <%= link_to '', type,
+ <%= link_to "", type,
method: :delete,
data: { confirm: t(:text_are_you_sure) },
- class: 'icon icon-delete',
+ class: "icon icon-delete",
title: t(:button_delete) %>
<% end %>
</td>
diff --git a/app/views/user_mailer/_errors.html.erb b/app/views/user_mailer/_errors.html.erb
index 693cebc4529..a5ee7d47f2e 100644
--- a/app/views/user_mailer/_errors.html.erb
+++ b/app/views/user_mailer/_errors.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<h1><%= t('copy_project.errors') %></h1>
+<h1><%= t("copy_project.errors") %></h1>
<ul>
<% errors.each do |error| %>
diff --git a/app/views/user_mailer/_errors.text.erb b/app/views/user_mailer/_errors.text.erb
index 92cf5ab0c7b..eeca172f279 100644
--- a/app/views/user_mailer/_errors.text.erb
+++ b/app/views/user_mailer/_errors.text.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= I18n.t('copy_project.errors') %>
+<%= I18n.t("copy_project.errors") %>
<% errors.each do |error| %>
- <%= error %>
diff --git a/app/views/user_mailer/account_activation_requested.html.erb b/app/views/user_mailer/account_activation_requested.html.erb
index 9a20f854dc6..d7028c56fff 100644
--- a/app/views/user_mailer/account_activation_requested.html.erb
+++ b/app/views/user_mailer/account_activation_requested.html.erb
@@ -30,12 +30,12 @@ See COPYRIGHT and LICENSE files for more details.
<p><%= t(:mail_body_account_activation_request, value: @user.login) %></p>
<p><%= link_to @activation_url, @activation_url %></p>
-<p><%= t('mail.actions') %></p>
+<p><%= t("mail.actions") %></p>
<ul>
<li><%= link_to t(:label_activate_user), change_status_info_user_url(@user, change_action: :activate) %></li>
<li><%= link_to t(:label_lock_user), change_status_info_user_url(@user, change_action: :lock) %></li>
<% if Setting.users_deletable_by_admins? %>
<li><%= link_to t(:label_delete_user), deletion_info_user_url(@user) %></li>
<% end %>
- <li><%= link_to t(:label_show_all_registered_users), users_url(status: 'registered') %></li>
+ <li><%= link_to t(:label_show_all_registered_users), users_url(status: "registered") %></li>
</ul>
diff --git a/app/views/user_mailer/account_activation_requested.text.erb b/app/views/user_mailer/account_activation_requested.text.erb
index 20bb6629480..fc1cbfc6ec1 100644
--- a/app/views/user_mailer/account_activation_requested.text.erb
+++ b/app/views/user_mailer/account_activation_requested.text.erb
@@ -31,11 +31,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= @activation_url %>
-<%= t('mail.actions') %>
+<%= t("mail.actions") %>
* <%= t(:label_activate_user) %>: <%= change_status_info_user_url(@user, change_action: :activate) %>
* <%= t(:label_lock_user) %>: <%= change_status_info_user_url(@user, change_action: :lock) %>
<% if Setting.users_deletable_by_admins? %>
* <%= t(:label_delete_user) %>: <%= deletion_info_user_url(@user) %>
<% end %>
-* <%= t(:label_show_all_registered_users) %>: <%= users_url(status: 'registered') %>
+* <%= t(:label_show_all_registered_users) %>: <%= users_url(status: "registered") %>
diff --git a/app/views/user_mailer/password_change_not_possible.html.erb b/app/views/user_mailer/password_change_not_possible.html.erb
index a7c8de12a4b..f3a400067c1 100644
--- a/app/views/user_mailer/password_change_not_possible.html.erb
+++ b/app/views/user_mailer/password_change_not_possible.html.erb
@@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<p><%= t('mail_password_change_not_possible.body',
+<p><%= t("mail_password_change_not_possible.body",
app_title: Setting.app_title,
name: @provider) %></p>
-<p><%= t('mail_password_change_not_possible.subtext') %></p>
+<p><%= t("mail_password_change_not_possible.subtext") %></p>
diff --git a/app/views/user_mailer/password_change_not_possible.text.erb b/app/views/user_mailer/password_change_not_possible.text.erb
index 25c215b8f84..162712f2509 100644
--- a/app/views/user_mailer/password_change_not_possible.text.erb
+++ b/app/views/user_mailer/password_change_not_possible.text.erb
@@ -27,8 +27,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= t('mail_password_change_not_possible.body',
+<%= t("mail_password_change_not_possible.body",
app_title: Setting.app_title,
name: @provider) %>
-<%= t('mail_password_change_not_possible.subtext') %>
+<%= t("mail_password_change_not_possible.subtext") %>
diff --git a/app/views/user_mailer/user_signed_up.html.erb b/app/views/user_mailer/user_signed_up.html.erb
index 4e20a5fb049..65682725e33 100644
--- a/app/views/user_mailer/user_signed_up.html.erb
+++ b/app/views/user_mailer/user_signed_up.html.erb
@@ -39,10 +39,10 @@ See COPYRIGHT and LICENSE files for more details.
<br>
<p>
<%= t(:mail_body_register_links_html,
- webinar_link: link_to('Webinar Link', OpenProject::Static::Links.links[:webinar_videos][:href]),
- youtube_link: link_to('Youtube Link', OpenProject::Configuration.youtube_channel),
- get_started_link: link_to('Get Started Videos Link', OpenProject::Static::Links.links[:get_started_videos][:href]),
- documentation_link: link_to('Documentation Link', OpenProject::Static::Links.links[:openproject_docs][:href])
+ webinar_link: link_to("Webinar Link", OpenProject::Static::Links.links[:webinar_videos][:href]),
+ youtube_link: link_to("Youtube Link", OpenProject::Configuration.youtube_channel),
+ get_started_link: link_to("Get Started Videos Link", OpenProject::Static::Links.links[:get_started_videos][:href]),
+ documentation_link: link_to("Documentation Link", OpenProject::Static::Links.links[:openproject_docs][:href])
) %>
</p>
diff --git a/app/views/users/_consent.html.erb b/app/views/users/_consent.html.erb
index 16445e7b13d..c3dde623d86 100644
--- a/app/views/users/_consent.html.erb
+++ b/app/views/users/_consent.html.erb
@@ -1,12 +1,12 @@
<section class="form--section">
- <h3 class="form--section-title"><%= t('consent.title') %></h3>
- <% consent_link = admin_settings_users_path(anchor: 'consent_settings') %>
+ <h3 class="form--section-title"><%= t("consent.title") %></h3>
+ <% consent_link = admin_settings_users_path(anchor: "consent_settings") %>
<%= render ::Components::OnOffStatusComponent.new({
is_on: @user.consented_at.present?,
on_text: format_time(@user.consented_at),
- on_description: link_translate('consent.user_has_consented', links: { consent_settings: consent_link }),
+ on_description: link_translate("consent.user_has_consented", links: { consent_settings: consent_link }),
off_text: t(:label_never),
- off_description: link_translate('consent.not_yet_consented', links: { consent_settings: consent_link })
+ off_description: link_translate("consent.not_yet_consented", links: { consent_settings: consent_link })
}) %>
</section>
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb
index 1fba6fd3524..b9c455b3288 100644
--- a/app/views/users/_form.html.erb
+++ b/app/views/users/_form.html.erb
@@ -30,13 +30,13 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for @user %>
<section class="form--section">
- <%= render partial: 'users/form/basic_attributes', locals: { f: f } %>
+ <%= render partial: "users/form/basic_attributes", locals: { f: f } %>
<% if current_user.admin? %>
- <%= render partial: 'users/form/admin_flag', locals: { f: f } %>
+ <%= render partial: "users/form/admin_flag", locals: { f: f } %>
<% end %>
- <%= render partial: 'users/form/custom_fields', locals: { f: f } %>
+ <%= render partial: "users/form/custom_fields", locals: { f: f } %>
<%= call_hook(:view_users_form, user: @user, form: f) %>
</section>
@@ -44,8 +44,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "users/consent" %>
<% end %>
-<%= render partial: 'users/form/authentication/form', locals: { f: f } %>
+<%= render partial: "users/form/authentication/form", locals: { f: f } %>
<% if current_user.admin? %>
- <%= render partial: 'users/form/preferences', locals: { f: f } %>
+ <%= render partial: "users/form/preferences", locals: { f: f } %>
<% end %>
diff --git a/app/views/users/_general.html.erb b/app/views/users/_general.html.erb
index bddf16b88f3..b93f9b394db 100644
--- a/app/views/users/_general.html.erb
+++ b/app/views/users/_general.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<div class="form--field">
- <%= styled_label_tag 'FIXME', I18n.t(:status, scope: [:attributes]) %>
+ <%= styled_label_tag "FIXME", I18n.t(:status, scope: [:attributes]) %>
<div class="form--field-container">
<span>
<span class=""><%= full_user_status(@user, true) %></span>
@@ -39,20 +39,20 @@ See COPYRIGHT and LICENSE files for more details.
</section>
<%= labelled_tabular_form_for @user,
- url: { controller: '/users',
+ url: { controller: "/users",
action: "update",
tab: nil },
html: {
method: :put,
- autocomplete: 'off'
+ autocomplete: "off"
},
data: {
- controller: 'admin--users',
- 'application-target': 'dynamic',
+ controller: "admin--users",
+ 'application-target': "dynamic",
'admin--users-password-auth-selected-value': @user.ldap_auth_source_id.blank?,
},
as: :user do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/users/_groups.html.erb b/app/views/users/_groups.html.erb
index 90a6f1ae1fc..b8859889981 100644
--- a/app/views/users/_groups.html.erb
+++ b/app/views/users/_groups.html.erb
@@ -28,15 +28,15 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% groups = @user.groups.pluck(:id, :lastname) %>
-<%= labelled_tabular_form_for(:user, url: { action: 'update' }, html: {method: :put}) do %>
+<%= labelled_tabular_form_for(:user, url: { action: "update" }, html: {method: :put}) do %>
<section class="form--section">
<% if groups.empty? %>
<%= no_results_box action_url: groups_path,
display_action: true,
- custom_title: t('users.groups.no_results_title_text'),
+ custom_title: t("users.groups.no_results_title_text"),
custom_action_text: t(:label_manage_groups) %>
<% else %>
- <p><%= t('users.groups.member_in_these_groups') %></p>
+ <p><%= t("users.groups.member_in_these_groups") %></p>
<% end %>
<% groups.each do |id, name| %>
diff --git a/app/views/users/_preferences.html.erb b/app/views/users/_preferences.html.erb
index 8f442dffbc2..80adc6593a6 100644
--- a/app/views/users/_preferences.html.erb
+++ b/app/views/users/_preferences.html.erb
@@ -34,16 +34,16 @@ See COPYRIGHT and LICENSE files for more details.
container_class: (defined? input_size) ? "-#{input_size}" : "-wide"
) %>
<div class="form--field">
- <%= pref_fields.select :theme, theme_options_for_select, container_class: '-middle' %>
+ <%= pref_fields.select :theme, theme_options_for_select, container_class: "-middle" %>
<div class="form--field-instructions">
<%= I18n.t("activerecord.attributes.user_preference.mode_guideline") %>
</div>
</div>
<div class="form--field">
<%= pref_fields.select :comments_sorting,
- [[t("activities.work_packages.activity_tab.label_sort_asc"), 'asc'],
- [t("activities.work_packages.activity_tab.label_sort_desc"), 'desc']],
- container_class: (defined? input_size) ? "-#{input_size}" : '' %>
+ [[t("activities.work_packages.activity_tab.label_sort_asc"), "asc"],
+ [t("activities.work_packages.activity_tab.label_sort_desc"), "desc"]],
+ container_class: (defined? input_size) ? "-#{input_size}" : "" %>
</div>
<div class="form--field"><%= pref_fields.check_box :warn_on_leaving_unsaved %></div>
<div class="form--field"><%= pref_fields.check_box :auto_hide_popups %></div>
diff --git a/app/views/users/_simple_form.html.erb b/app/views/users/_simple_form.html.erb
index 12fab61c010..f0c0ee80391 100644
--- a/app/views/users/_simple_form.html.erb
+++ b/app/views/users/_simple_form.html.erb
@@ -28,13 +28,13 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<section class="form--section">
- <%= render partial: 'users/form/basic_attributes', locals: { f: f } %>
+ <%= render partial: "users/form/basic_attributes", locals: { f: f } %>
<% if current_user.admin? %>
- <%= render partial: 'users/form/authentication/auth_source', locals: { f: f } %>
- <%= render partial: 'users/form/admin_flag', locals: { f: f } %>
+ <%= render partial: "users/form/authentication/auth_source", locals: { f: f } %>
+ <%= render partial: "users/form/admin_flag", locals: { f: f } %>
<% end %>
- <%= render partial: 'users/form/custom_fields', locals: { f: f } %>
+ <%= render partial: "users/form/custom_fields", locals: { f: f } %>
<%= call_hook(:view_users_form, user: @user, form: f) %>
</section>
diff --git a/app/views/users/_toolbar.html.erb b/app/views/users/_toolbar.html.erb
index 5140af359e8..d09c22e236c 100644
--- a/app/views/users/_toolbar.html.erb
+++ b/app/views/users/_toolbar.html.erb
@@ -28,8 +28,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= breadcrumb_toolbar(@user.name) do %>
<li class="toolbar-item">
- <%= link_to user_path(@user), class: 'button' do %>
- <%= op_icon('button--icon icon-user') %>
+ <%= link_to user_path(@user), class: "button" do %>
+ <%= op_icon("button--icon icon-user") %>
<span class="button--text"><%= t(:label_profile) %></span>
<% end %>
</li>
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
url: { action: :resend_invitation },
method: :post) do |_form| %>
<button class="button" title="<%= t(:tooltip_resend_invitation) %>">
- <%= op_icon('button--icon icon-mail1') %>
+ <%= op_icon("button--icon icon-mail1") %>
<span class="button--text"><%= t(:label_send_invitation) %></span>
</button>
<% end %>
@@ -57,8 +57,8 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% if Setting.users_deletable_by_admins? %>
<li class="toolbar-item">
- <%= link_to deletion_info_user_path(@user), class: 'button' do %>
- <%= op_icon('button--icon icon-delete') %>
+ <%= link_to deletion_info_user_path(@user), class: "button" do %>
+ <%= op_icon("button--icon icon-delete") %>
<span class="button--text"><%= t(:button_delete) %></span>
<% end %>
</li>
diff --git a/app/views/users/change_status_info.html.erb b/app/views/users/change_status_info.html.erb
index 62becd08646..415fbb92cbf 100644
--- a/app/views/users/change_status_info.html.erb
+++ b/app/views/users/change_status_info.html.erb
@@ -30,7 +30,7 @@ See COPYRIGHT and LICENSE files for more details.
<% local_assigns[:additional_breadcrumb] = @user.name %>
<% new_status = t("user.#{@status_change}") %>
-<%= labelled_tabular_form_for :user, url: change_status_user_path(@user, @status_change => '1'), html: { method: :post, class: 'form' } do %>
+<%= labelled_tabular_form_for :user, url: change_status_user_path(@user, @status_change => "1"), html: { method: :post, class: "form" } do %>
<section class="form--section">
<h3 class="form--section-title">
<%= @user.name %>:
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
</h3>
<p>
- <%= t('user.confirm_status_change', name: @user.name) %>
+ <%= t("user.confirm_status_change", name: @user.name) %>
</p>
<%=
@@ -62,8 +62,8 @@ See COPYRIGHT and LICENSE files for more details.
</section>
<hr class="form--separator">
- <%= styled_button_tag '', class: '-primary' do %>
- <%= op_icon('button--icon icon-checkmark') %>
+ <%= styled_button_tag "", class: "-primary" do %>
+ <%= op_icon("button--icon icon-checkmark") %>
<span class="button--text"><%= new_status %></span>
<% end %>
<% end %>
diff --git a/app/views/users/deletion_info.html.erb b/app/views/users/deletion_info.html.erb
index 805c61d7e8e..f2d92f60c32 100644
--- a/app/views/users/deletion_info.html.erb
+++ b/app/views/users/deletion_info.html.erb
@@ -36,13 +36,13 @@ See COPYRIGHT and LICENSE files for more details.
:user,
url: user_path(@user),
html: {
- method: :delete, class: 'confirm_required form danger-zone',
+ method: :delete, class: "confirm_required form danger-zone",
data: password_confirmation_data_attribute
}) do %>
<div class='wiki'>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('account.deletion_info.heading', name: "<em>#{h(@user.name)}</em>").html_safe %>
+ <%= t("account.deletion_info.heading", name: "<em>#{h(@user.name)}</em>").html_safe %>
</h3>
<p>
@@ -62,9 +62,9 @@ See COPYRIGHT and LICENSE files for more details.
</p>
<div class="danger-zone--verification">
<input type="text" name="login_verification">
- <%= styled_button_tag '', class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag "", class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
</div>
</section>
diff --git a/app/views/users/form/_basic_attributes.html.erb b/app/views/users/form/_basic_attributes.html.erb
index 93021f63481..b643ec12fbf 100644
--- a/app/views/users/form/_basic_attributes.html.erb
+++ b/app/views/users/form/_basic_attributes.html.erb
@@ -3,31 +3,31 @@
<%= f.text_field :login,
required: true,
size: 25,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<% end %>
<div class="form--field -required">
<%= f.text_field :firstname,
required: true,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<div class="form--field -required">
<%= f.text_field :lastname,
required: true,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<div class="form--field -required">
<%= f.text_field :mail,
required: true,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<div class="form--field">
<%= f.select :language,
lang_options_for_select,
prompt: "--- #{t(:actionview_instancetag_blank_option)} ---",
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
diff --git a/app/views/users/form/_custom_fields.html.erb b/app/views/users/form/_custom_fields.html.erb
index 09824b363d9..e829c3b6ad9 100644
--- a/app/views/users/form/_custom_fields.html.erb
+++ b/app/views/users/form/_custom_fields.html.erb
@@ -1,2 +1,2 @@
<%= render partial: "customizable/form",
- locals: { form: f, all_fields: true, only_required: false, input_size: '-middle' } %>
+ locals: { form: f, all_fields: true, only_required: false, input_size: "-middle" } %>
diff --git a/app/views/users/form/_preferences.html.erb b/app/views/users/form/_preferences.html.erb
index df5e06ab085..a9729b8c770 100644
--- a/app/views/users/form/_preferences.html.erb
+++ b/app/views/users/form/_preferences.html.erb
@@ -1,4 +1,4 @@
<section class="form--section">
<h3 class="form--section-title"><%= t(:label_preferences) %></h3>
- <%= render partial: 'users/preferences', locals: {input_size: :middle } %>
+ <%= render partial: "users/preferences", locals: {input_size: :middle } %>
</section>
diff --git a/app/views/users/form/authentication/_auth_source.html.erb b/app/views/users/form/authentication/_auth_source.html.erb
index 057038a5229..c8f34d49434 100644
--- a/app/views/users/form/authentication/_auth_source.html.erb
+++ b/app/views/users/form/authentication/_auth_source.html.erb
@@ -6,11 +6,11 @@
:name,
{
label: :'activerecord.attributes.user.auth_source',
- container_class: '-middle',
+ container_class: "-middle",
include_blank: t(:label_internal)
},
data: {
- action: 'admin--users#toggleAuthenticationFields'
+ action: "admin--users#toggleAuthenticationFields"
} %>
</div>
diff --git a/app/views/users/form/authentication/_external.html.erb b/app/views/users/form/authentication/_external.html.erb
index 0a4c5087501..c14c24105a5 100644
--- a/app/views/users/form/authentication/_external.html.erb
+++ b/app/views/users/form/authentication/_external.html.erb
@@ -1,19 +1,19 @@
<div class="form--field -reduced-margin">
- <%= styled_label_tag nil, I18n.t('user.authentication_provider') %>
+ <%= styled_label_tag nil, I18n.t("user.authentication_provider") %>
<div class="form--field-container">
<%= @user.human_authentication_provider %>
</div>
</div>
<div class="form--field-instructions">
- <%= I18n.t('user.authentication_settings_disabled_due_to_external_authentication') %>
+ <%= I18n.t("user.authentication_settings_disabled_due_to_external_authentication") %>
</div>
<div class="form--field -top-margin -reduced-margin">
<%= styled_label_tag nil, User.human_attribute_name(:identity_url) %>
<div class="form--field-container -empty">
- <%= @user.identity_url.split(':', 2).last %>
+ <%= @user.identity_url.split(":", 2).last %>
</div>
</div>
<div class="form--field-instructions">
- <%= I18n.t('user.identity_url_text') %>
+ <%= I18n.t("user.identity_url_text") %>
</div>
diff --git a/app/views/users/form/authentication/_form.html.erb b/app/views/users/form/authentication/_form.html.erb
index be0edbc6d53..1bec280b283 100644
--- a/app/views/users/form/authentication/_form.html.erb
+++ b/app/views/users/form/authentication/_form.html.erb
@@ -4,12 +4,12 @@
<% end %>
<% if @user.uses_external_authentication? %>
- <%= render partial: 'users/form/authentication/external', locals: { f: f } %>
+ <%= render partial: "users/form/authentication/external", locals: { f: f } %>
<% else %>
- <%= render partial: 'users/form/authentication/auth_source', locals: { f: f } %>
+ <%= render partial: "users/form/authentication/auth_source", locals: { f: f } %>
<% if current_user.admin? %>
- <%= render partial: 'users/form/authentication/internal', locals: { f: f } %>
+ <%= render partial: "users/form/authentication/internal", locals: { f: f } %>
<% end %>
<% end %>
</section>
diff --git a/app/views/users/form/authentication/_internal.html.erb b/app/views/users/form/authentication/_internal.html.erb
index b749d781a29..1b7c7f220e0 100644
--- a/app/views/users/form/authentication/_internal.html.erb
+++ b/app/views/users/form/authentication/_internal.html.erb
@@ -3,10 +3,10 @@
<div class="form--field">
<%= styled_label_tag nil, I18n.t(:warning) %>
<div class="form--field-container">
- <%= I18n.t 'user.no_login' %>
+ <%= I18n.t "user.no_login" %>
</div>
</div>
</div>
<% else %>
- <%= render partial: 'users/form/authentication/internal_password', locals: { f: f } %>
+ <%= render partial: "users/form/authentication/internal_password", locals: { f: f } %>
<% end %>
diff --git a/app/views/users/form/authentication/_internal_password.html.erb b/app/views/users/form/authentication/_internal_password.html.erb
index 96512c6477f..a4b666e5b6a 100644
--- a/app/views/users/form/authentication/_internal_password.html.erb
+++ b/app/views/users/form/authentication/_internal_password.html.erb
@@ -1,21 +1,21 @@
<%= content_tag :div,
data: {
- controller: 'disable-when-checked',
- 'admin--users-target': 'passwordFields'
+ controller: "disable-when-checked",
+ 'admin--users-target': "passwordFields"
},
hidden: [email protected]_password_allowed? do %>
<% assign_random_password_enabled = params[:user] &&
params[:user][:assign_random_password] %>
<div class="form--field">
- <%= styled_label_tag 'user_assign_random_password',
+ <%= styled_label_tag "user_assign_random_password",
I18n.t(:assign_random_password, scope: :user) %>
<div class="form--field-container">
<%= styled_check_box_tag "user[assign_random_password]",
"1",
assign_random_password_enabled,
data: {
- 'disable-when-checked-target': 'cause'
+ 'disable-when-checked-target': "cause"
} %>
</div>
</div>
@@ -26,9 +26,9 @@
required: @user.new_record?,
disabled: assign_random_password_enabled,
data: {
- 'disable-when-checked-target': 'effect'
+ 'disable-when-checked-target': "effect"
},
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
<%= password_complexity_requirements %>
</div>
@@ -38,15 +38,15 @@
required: @user.new_record?,
disabled: assign_random_password_enabled,
data: {
- 'disable-when-checked-target': 'effect'
+ 'disable-when-checked-target': "effect"
},
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<% end %>
<% if @user.active? -%>
<div class="form--field send-information">
- <%= styled_label_tag 'send_information', t(:label_send_information) %>
+ <%= styled_label_tag "send_information", t(:label_send_information) %>
<div class="form--field-container">
<%= styled_check_box_tag("send_information",
"1",
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index a7ac271f863..4e2d796c3d8 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -43,17 +43,17 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @user,
url: { action: "create" },
- html: { class: nil, autocomplete: 'off' },
+ html: { class: nil, autocomplete: "off" },
data: {
- controller: 'admin--users',
- 'application-target': 'dynamic',
+ controller: "admin--users",
+ 'application-target': "dynamic",
'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 } %>
+ <%= render partial: "simple_form", locals: { f: f, auth_sources: @ldap_auth_sources, user: @user } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
- <%= styled_button_tag t(:button_create_and_continue), name: 'continue', class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
+ <%= styled_button_tag t(:button_create_and_continue), name: "continue", class: "-primary -with-icon icon-checkmark" %>
</p>
<% end %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index dc5f26f6d03..94ae54aaeaf 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, controller: '/activities', action: 'index', user_id: @user, format: :atom, key: User.current.rss_key) %>
+ <%= auto_discovery_link_tag(:atom, controller: "/activities", action: "index", user_id: @user, format: :atom, key: User.current.rss_key) %>
<%= call_hook :users_show_head %>
<% end %>
diff --git a/app/views/versions/_form.html.erb b/app/views/versions/_form.html.erb
index 5bb22c9d89a..278aaf67178 100644
--- a/app/views/versions/_form.html.erb
+++ b/app/views/versions/_form.html.erb
@@ -37,17 +37,17 @@ See COPYRIGHT and LICENSE files for more details.
<%= back_url_hidden_field_tag %>
<div class="form--field -required">
- <%= f.text_field :name, required: true, container_class: '-wide' %>
+ <%= f.text_field :name, required: true, container_class: "-wide" %>
</div>
<div class="form--field">
- <%= f.text_field :description, container_class: '-wide' %>
+ <%= f.text_field :description, container_class: "-wide" %>
</div>
<div class="form--field">
<%= f.select :status,
contract.assignable_statuses.map { |s| [t("version_status_#{s}"), s] },
- container_class: '-slim' %>
+ container_class: "-slim" %>
</div>
<div class="form--field">
@@ -68,7 +68,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= f.select :sharing,
contract.assignable_sharings.map { |v| [format_version_sharing(v), v] },
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<% if project.enabled_modules.map(&:name).include?("backlogs") %>
diff --git a/app/views/versions/_overview.html.erb b/app/views/versions/_overview.html.erb
index 3f414dc21ff..e1dfc071411 100644
--- a/app/views/versions/_overview.html.erb
+++ b/app/views/versions/_overview.html.erb
@@ -56,19 +56,19 @@ See COPYRIGHT and LICENSE files for more details.
<% if version.work_packages.count > 0 %>
<% closed = version.closed_percent %>
<% done = version.completed_percent - closed %>
- <%= progress_bar([closed, done], width: '40%', legend: ('%0.0f' % version.completed_percent)) %>
+ <%= progress_bar([closed, done], width: "40%", legend: ("%0.0f" % version.completed_percent)) %>
<p class="progress-info">
<%= link_to_if(version.closed_issues_count > 0,
t(:label_x_closed_work_packages_abbr, count: version.closed_issues_count),
project_work_packages_closed_version_path(version)) %>
- (<%= '%0.0f' % (version.closed_issues_count.to_f / version.work_packages.count * 100) %>%)
+ (<%= "%0.0f" % (version.closed_issues_count.to_f / version.work_packages.count * 100) %>%)
&#160;
<%= link_to_if(version.open_issues_count > 0,
t(:label_x_open_work_packages_abbr, count: version.open_issues_count),
project_work_packages_open_version_path(version)) %>
- (<%= '%0.0f' % (version.open_issues_count.to_f / version.work_packages.count * 100) %>%)
+ (<%= "%0.0f" % (version.open_issues_count.to_f / version.work_packages.count * 100) %>%)
<% if version.projects.archived.exists? %>
- <%= op_icon('icon-warning', title: I18n.t('versions.overview.work_packages_in_archived_projects')) %>
+ <%= op_icon("icon-warning", title: I18n.t("versions.overview.work_packages_in_archived_projects")) %>
<% end %>
</p>
<% else %>
diff --git a/app/views/versions/_roadmap_filter.html.erb b/app/views/versions/_roadmap_filter.html.erb
index 1c916e23c48..98d605f44e1 100644
--- a/app/views/versions/_roadmap_filter.html.erb
+++ b/app/views/versions/_roadmap_filter.html.erb
@@ -25,15 +25,15 @@
<%= styled_label_tag "with-subprojects", t(:label_subproject_plural) %>
<div class="form--field-container">
- <%= hidden_field_tag 'with_subprojects', 0 %>
- <%= styled_check_box_tag 'with_subprojects', 1, @with_subprojects, id: 'with-subprojects' %>
+ <%= hidden_field_tag "with_subprojects", 0 %>
+ <%= styled_check_box_tag "with_subprojects", 1, @with_subprojects, id: "with-subprojects" %>
</div>
</div>
<% end %>
<div class="form--space"></div>
- <div><%= submit_tag t(:button_apply), class: 'button -small -primary', name: nil %></div>
+ <div><%= submit_tag t(:button_apply), class: "button -small -primary", name: nil %></div>
</fieldset>
<% end %>
diff --git a/app/views/versions/edit.html.erb b/app/views/versions/edit.html.erb
index b506d9610f0..bdbde16182e 100644
--- a/app/views/versions/edit.html.erb
+++ b/app/views/versions/edit.html.erb
@@ -41,8 +41,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @version do |f| %>
- <%= render partial: 'form', locals: { f: f,
+ <%= render partial: "form", locals: { f: f,
project: @project } %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb
index b677f410393..98e45f52fcb 100644
--- a/app/views/versions/index.html.erb
+++ b/app/views/versions/index.html.erb
@@ -41,9 +41,9 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_version_new) },
title: t(:label_version_new),
tag: :a,
- href: url_for({ controller: '/versions', action: 'new', project_id: @project })) do |button|
+ href: url_for({ controller: "/versions", action: "new", project_id: @project })) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.version')
+ t("activerecord.models.version")
end
end %>
@@ -55,7 +55,7 @@ end %>
<h3 class="version icon-context icon-modules">
<%= link_to_version(version, name: h(version.name), id: "version-#{version.name}") %>
</h3>
- <%= render partial: 'versions/overview', locals: {version: version} %>
+ <%= render partial: "versions/overview", locals: {version: version} %>
<%= render(partial: "wiki/text", locals: { page: version.wiki_page }) if version.wiki_page %>
<% if (issues = @wps_by_version[version]) && issues.size > 0 %>
<form>
@@ -77,8 +77,8 @@ end %>
<% end %>
<% content_for :sidebar do %>
- <%= render partial: 'roadmap_filter' %>
- <%= render partial: 'roadmap_version_links' %>
+ <%= render partial: "roadmap_filter" %>
+ <%= render partial: "roadmap_version_links" %>
<% end %>
<% html_title(t(:label_roadmap)) %>
diff --git a/app/views/versions/new.html.erb b/app/views/versions/new.html.erb
index 78b6000802d..c105eed38a2 100644
--- a/app/views/versions/new.html.erb
+++ b/app/views/versions/new.html.erb
@@ -41,8 +41,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for [@project, @version] do |f| %>
- <%= render partial: 'versions/form', locals: { f: f,
+ <%= render partial: "versions/form", locals: { f: f,
project: @project } %>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb
index c98d97ef3b2..23cd7c67758 100644
--- a/app/views/versions/show.html.erb
+++ b/app/views/versions/show.html.erb
@@ -68,13 +68,13 @@ See COPYRIGHT and LICENSE files for more details.
if authorize_for(:wiki, :edit) && !(@version.wiki_page_title.blank? || @version.project.wiki.nil?)
header.with_action_button(tag: :a,
mobile_icon: :pencil,
- mobile_label: t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: ' ')),
+ mobile_label: t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: " ")),
size: :medium,
- href: url_for({ controller: '/wiki', action: 'edit', project_id: @version.project, id: @version.wiki_page_title }),
- aria: { label: t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: ' ')) },
- title: t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: ' '))) do |button|
+ href: url_for({ controller: "/wiki", action: "edit", project_id: @version.project, id: @version.wiki_page_title }),
+ aria: { label: t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: " ")) },
+ title: t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: " "))) do |button|
button.with_leading_visual_icon(icon: :pencil)
- t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: ' '))
+ t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: " "))
end
end
call_hook(:view_versions_show_contextual, { version: @version, project: @project })
@@ -83,7 +83,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="widget-boxes -grid">
<div class="widget-box -thin">
- <%= render partial: 'versions/overview', locals: { version: @version } %>
+ <%= render partial: "versions/overview", locals: { version: @version } %>
</div>
<% if @version.estimated_hours > 0 || User.current.allowed_in_project?(:view_time_entries, @project) %>
diff --git a/app/views/warning_bar/_host_and_protocol_mismatch.html.erb b/app/views/warning_bar/_host_and_protocol_mismatch.html.erb
index c67f79d046c..7cfdc9879db 100644
--- a/app/views/warning_bar/_host_and_protocol_mismatch.html.erb
+++ b/app/views/warning_bar/_host_and_protocol_mismatch.html.erb
@@ -3,21 +3,21 @@
<% if setting_protocol_mismatched? %>
<p>
- <strong><%= t 'warning_bar.https_mismatch.title' %></strong>
+ <strong><%= t "warning_bar.https_mismatch.title" %></strong>
<br>
- <%= t 'warning_bar.https_mismatch.text_html',
+ <%= t "warning_bar.https_mismatch.text_html",
set_protocol: Setting.protocol,
- actual_protocol: request.ssl? ? 'https' : 'http',
- setting_value: request.ssl? ? 'OPENPROJECT_HTTPS=true' : 'OPENPROJECT_HTTPS=false',
+ actual_protocol: request.ssl? ? "https" : "http",
+ setting_value: request.ssl? ? "OPENPROJECT_HTTPS=true" : "OPENPROJECT_HTTPS=false",
more_info_path: installation_guide_link %>
</p>
<% end %>
<% if setting_hostname_mismatched? %>
<p>
- <strong><%= t 'warning_bar.hostname_mismatch.title' %></strong>
+ <strong><%= t "warning_bar.hostname_mismatch.title" %></strong>
<br>
- <%= t 'warning_bar.hostname_mismatch.text_html',
+ <%= t "warning_bar.hostname_mismatch.text_html",
set_hostname: Setting.host_name,
actual_hostname: request.host,
setting_path: admin_settings_general_path %>
diff --git a/app/views/warning_bar/_missing_wp_edit_role_workflows.html.erb b/app/views/warning_bar/_missing_wp_edit_role_workflows.html.erb
index 64e90389af3..3d0bbe80732 100644
--- a/app/views/warning_bar/_missing_wp_edit_role_workflows.html.erb
+++ b/app/views/warning_bar/_missing_wp_edit_role_workflows.html.erb
@@ -1,9 +1,9 @@
<div class="warning-bar--item">
<p>
- <strong><%= t('work_packages.sharing.missing_workflow_warning.title') %></strong><br>
+ <strong><%= t("work_packages.sharing.missing_workflow_warning.title") %></strong><br>
- <%= t('work_packages.sharing.missing_workflow_warning.message') %>
- <%= link_to t('work_packages.sharing.missing_workflow_warning.link_message'),
+ <%= t("work_packages.sharing.missing_workflow_warning.message") %>
+ <%= link_to t("work_packages.sharing.missing_workflow_warning.link_message"),
copy_workflows_path %>
</p>
</div>
diff --git a/app/views/warning_bar/_unsupported_browser.html.erb b/app/views/warning_bar/_unsupported_browser.html.erb
index 2313179c83e..702c40ff945 100644
--- a/app/views/warning_bar/_unsupported_browser.html.erb
+++ b/app/views/warning_bar/_unsupported_browser.html.erb
@@ -1,13 +1,13 @@
<div id="unsupported-browser-warning" class="warning-bar--item">
- <span title="<%= t('unsupported_browser.close_warning') %>" class="icon3 icon-warning warning-bar--disable-on-hover"></span>
+ <span title="<%= t("unsupported_browser.close_warning") %>" class="icon3 icon-warning warning-bar--disable-on-hover"></span>
<p>
- <strong><%= t('unsupported_browser.title') %></strong>
+ <strong><%= t("unsupported_browser.title") %></strong>
- <%= t('unsupported_browser.message') %>
+ <%= t("unsupported_browser.message") %>
<a href="https://www.openproject.org/open-source/download/systemrequirements/"
target="_blank">
- <%= t('unsupported_browser.update_message') %>
+ <%= t("unsupported_browser.update_message") %>
</a>
</p>
</div>
diff --git a/app/views/warning_bar/_warning_bar.html.erb b/app/views/warning_bar/_warning_bar.html.erb
index ed54fce7fa4..0c92614aa61 100644
--- a/app/views/warning_bar/_warning_bar.html.erb
+++ b/app/views/warning_bar/_warning_bar.html.erb
@@ -1,8 +1,8 @@
<% if show_warning_bar? %>
<div class="warning-bar--wrapper">
- <%= render partial: 'warning_bar/host_and_protocol_mismatch' if render_host_and_protocol_mismatch? %>
- <%= render partial: 'warning_bar/pending_migrations' if render_pending_migrations_warning? %>
- <%= render partial: 'warning_bar/unsupported_browser' if unsupported_browser? %>
- <%= render partial: 'warning_bar/missing_wp_edit_role_workflows' if render_workflow_missing_warning? %>
+ <%= render partial: "warning_bar/host_and_protocol_mismatch" if render_host_and_protocol_mismatch? %>
+ <%= render partial: "warning_bar/pending_migrations" if render_pending_migrations_warning? %>
+ <%= render partial: "warning_bar/unsupported_browser" if unsupported_browser? %>
+ <%= render partial: "warning_bar/missing_wp_edit_role_workflows" if render_workflow_missing_warning? %>
</div>
<% end %>
diff --git a/app/views/wiki/_menu_pages_tree.html.erb b/app/views/wiki/_menu_pages_tree.html.erb
index 09e92efe8a7..c412d1ac8d2 100644
--- a/app/views/wiki/_menu_pages_tree.html.erb
+++ b/app/views/wiki/_menu_pages_tree.html.erb
@@ -1,6 +1,6 @@
<%= turbo_frame_tag "wiki_main_menu",
- src: url_for({ controller: '/wiki', action: :menu, project_id: @project.id, id: @page&.id }),
- target: '_top',
+ src: url_for({ controller: "/wiki", action: :menu, project_id: @project.id, id: @page&.id }),
+ target: "_top",
data: { turbo: false },
loading: :lazy do %>
<% end %>
diff --git a/app/views/wiki/_page_form.html.erb b/app/views/wiki/_page_form.html.erb
index 8614f12f9db..3a15ab960c6 100644
--- a/app/views/wiki/_page_form.html.erb
+++ b/app/views/wiki/_page_form.html.erb
@@ -12,11 +12,11 @@
<%= f.text_area :text,
cols: 100,
rows: 25,
- class: 'wiki-edit',
+ class: "wiki-edit",
accesskey: accesskey(:edit),
with_text_formatting: true,
resource: resource,
- label_options: { class: 'hidden-for-sighted' },
+ label_options: { class: "hidden-for-sighted" },
preview_context: preview_context(@page, @project) %>
</div>
@@ -24,21 +24,21 @@
<%= f.hidden_field :parent_id %>
<%= f.select :parent_id,
wiki_page_options_for_select(@wiki.pages),
- { label: WikiPage.human_attribute_name(:parent_title), include_blank: false, container_class: '-wide' } %>
+ { label: WikiPage.human_attribute_name(:parent_title), include_blank: false, container_class: "-wide" } %>
</div>
<div class="form--field">
<%= f.text_field :journal_notes,
- class: '-border-on-hover-only -hide-placeholder-on-focus',
- label_options: { class: 'hidden-for-sighted', label: :'attributes.comment' },
- autocomplete: 'off',
- container_class: '-wide',
+ class: "-border-on-hover-only -hide-placeholder-on-focus",
+ label_options: { class: "hidden-for-sighted", label: :'attributes.comment' },
+ autocomplete: "off",
+ container_class: "-wide",
placeholder: t(:text_what_did_you_change_click_to_add_comment) %>
</div>
-<%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
+<%= f.button t(:button_save), class: "button -primary -with-icon icon-checkmark" %>
<%= link_to t(:button_cancel),
- { controller: '/wiki', action: 'show', project_id: @project, id: (@page.new_record? ? nil : @page) },
+ { controller: "/wiki", action: "show", project_id: @project, id: (@page.new_record? ? nil : @page) },
data: { confirm: t(:text_are_you_sure) },
- class: 'button -with-icon icon-cancel' %>
+ class: "button -with-icon icon-cancel" %>
diff --git a/app/views/wiki/_wiki_export_modal.html.erb b/app/views/wiki/_wiki_export_modal.html.erb
index 71b0ea95aca..47771e7ca14 100644
--- a/app/views/wiki/_wiki_export_modal.html.erb
+++ b/app/views/wiki/_wiki_export_modal.html.erb
@@ -29,32 +29,32 @@ See COPYRIGHT and LICENSE files for more details.
<div class="modal-delivery-element">
<div id="spotModalTitle" class="spot-modal--header">
- <%= I18n.t('js.label_export') %>
+ <%= I18n.t("js.label_export") %>
</div>
<div class="spot-divider"></div>
<div class="spot-modal--body spot-container">
<ul class="op-export-options">
<li class="op-export-options--option">
<%= link_to url_for(
- controller: '/activities',
- action: 'index',
+ controller: "/activities",
+ action: "index",
show_wiki_edits: 1,
apply: true,
key: User.current.rss_key,
- 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>
+ 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>
<% end %>
</li>
<li class="op-export-options--option">
<%= link_to url_for(
version: @page.version,
id: @page,
- 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>
+ 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>
<% end %>
</li>
</ul>
@@ -62,5 +62,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, controller: '/activities', action: 'index', id: @project, show_wiki_edits: 1, format: 'atom', key: User.current.rss_key) %>
+ <%= auto_discovery_link_tag(:atom, controller: "/activities", action: "index", id: @project, show_wiki_edits: 1, format: "atom", key: User.current.rss_key) %>
<% end %>
diff --git a/app/views/wiki/annotate.html.erb b/app/views/wiki/annotate.html.erb
index bd30ef36f6f..36e352bdca4 100644
--- a/app/views/wiki/annotate.html.erb
+++ b/app/views/wiki/annotate.html.erb
@@ -32,21 +32,21 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: h(@page.title) do %>
<li class="toolbar-item">
- <%= link_to({action: 'edit', id: @page}, class: 'button', accesskey: accesskey(:edit)) do %>
- <%= op_icon('button--icon icon-edit') %>
+ <%= link_to({action: "edit", id: @page}, class: "button", accesskey: accesskey(:edit)) do %>
+ <%= op_icon("button--icon icon-edit") %>
<span class="button--text"><%= t(:button_edit) %></span>
<% end %>
</li>
<li class="toolbar-item">
- <%= link_to({action: 'history', id: @page}, class: 'button') do %>
- <%= op_icon('button--icon icon-wiki') %>
+ <%= link_to({action: "history", id: @page}, class: "button") do %>
+ <%= op_icon("button--icon icon-wiki") %>
<span class="button--text"><%= t(:label_history) %></span>
<% end %>
</li>
<% end %>
<p>
- <%= Version.model_name.human %> <%= link_to h(@annotate.content.version), action: 'show', id: @page, version: @annotate.content.version %>
+ <%= Version.model_name.human %> <%= link_to h(@annotate.content.version), action: "show", id: @page, version: @annotate.content.version %>
<em>(<%= h(@annotate.content.journable.author ? @annotate.content.journable.author.name : t(:label_user_anonymous)) %>, <%= format_time(@annotate.content.journable.updated_at) %>)</em>
</p>
<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
<% @annotate.lines.each do |line| -%>
<tr class="bloc-<%= colors[line[0]] %>">
<th class="line-num"><%= line_num %></th>
- <td class="revision"><%= link_to line[0], controller: '/wiki', action: 'show', project_id: @project, id: @page, version: line[0] %></td>
+ <td class="revision"><%= link_to line[0], controller: "/wiki", action: "show", project_id: @project, id: @page, version: line[0] %></td>
<td class="author"><%= h(line[1]) %></td>
<td class="line-code">
<pre><%= h line[2] %></pre>
diff --git a/app/views/wiki/destroy.html.erb b/app/views/wiki/destroy.html.erb
index 742bc707d48..6638bf7341e 100644
--- a/app/views/wiki/destroy.html.erb
+++ b/app/views/wiki/destroy.html.erb
@@ -28,19 +28,19 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= toolbar title: @page.title %>
<% html_title t(:button_delete), @page.title %>
-<%= form_tag({}, method: :delete, class: 'form') do %>
+<%= form_tag({}, method: :delete, class: "form") do %>
<p><strong><%= t(:text_wiki_page_destroy_question, descendants: @descendants_count) %></strong></p>
<div class="form--field">
<label class="form--label" for="todo_nullify"><%= t(:text_wiki_page_nullify_children) %></label>
<div class="form--field-container">
- <%= styled_radio_button_tag 'todo', 'nullify', true %>
+ <%= styled_radio_button_tag "todo", "nullify", true %>
</div>
</div>
<div class="form--field">
<label class="form--label" for="todo_destroy"><%= t(:text_wiki_page_destroy_children) %></label>
<div class="form--field-container">
- <%= styled_radio_button_tag 'todo', 'destroy', false %>
+ <%= styled_radio_button_tag "todo", "destroy", false %>
</div>
</div>
@@ -48,19 +48,19 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for="todo_reassign"><%= t(:text_wiki_page_reassign_children) %></label>
<div class="form--field-container">
- <%= styled_radio_button_tag 'todo', 'reassign', false %>
+ <%= styled_radio_button_tag "todo", "reassign", false %>
</div>
<%= label_tag "reassign_to_id", t(:description_wiki_subpages_reassign), class: "hidden-for-sighted" %>
- <%= styled_select_tag 'reassign_to_id',
+ <%= styled_select_tag "reassign_to_id",
options_for_select(wiki_page_options_for_select(@reassignable_to)),
- { container_class: '-wide'} %>
- <% csp_onclick("jQuery('#todo_reassign').attr('checked', true)", '#reassign_to_id') %>
+ { container_class: "-wide"} %>
+ <% csp_onclick("jQuery('#todo_reassign').attr('checked', true)", "#reassign_to_id") %>
</div>
<% end %>
- <%= submit_tag t(:button_apply), class: 'button -primary' %>
+ <%= submit_tag t(:button_apply), class: "button -primary" %>
<%= link_to t(:button_cancel),
- { controller: '/wiki', action: 'show', project_id: @project, id: @page },
- class: 'button' %>
+ { controller: "/wiki", action: "show", project_id: @project, id: @page },
+ class: "button" %>
<% end %>
diff --git a/app/views/wiki/diff.html.erb b/app/views/wiki/diff.html.erb
index a15ab391fed..4a81a4b0810 100644
--- a/app/views/wiki/diff.html.erb
+++ b/app/views/wiki/diff.html.erb
@@ -29,18 +29,18 @@ See COPYRIGHT and LICENSE files for more details.
<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>
<%= toolbar title: h(@page.title) do %>
<li class="toolbar-item">
- <%= link_to({action: 'history', id: @page}, class: 'button') do %>
- <%= op_icon('button--icon icon-wiki') %>
+ <%= link_to({action: "history", id: @page}, class: "button") do %>
+ <%= op_icon("button--icon icon-wiki") %>
<span class="button--text"><%= t(:label_history) %></span>
<% end %>
</li>
<% end %>
<p>
- <%= Version.model_name.human %> <%= link_to @diff.content_from.version, action: 'show', id: @page, project_id: @page.project, version: @diff.content_from.version %>/<%= @page.version %>
+ <%= Version.model_name.human %> <%= link_to @diff.content_from.version, action: "show", id: @page, project_id: @page.project, version: @diff.content_from.version %>/<%= @page.version %>
<em>(<%= @diff.content_from.user ? link_to_user(@diff.content_from.user) : t(:label_user_anonymous) %>, <%= format_time(@diff.content_from.created_at) %>)</em>
&#8594;
- <%= Version.model_name.human %> <%= link_to @diff.content_to.version, action: 'show', id: @page, project_id: @page.project, version: @diff.content_to.version %>/<%= @page.version %>
+ <%= Version.model_name.human %> <%= link_to @diff.content_to.version, action: "show", id: @page, project_id: @page.project, version: @diff.content_to.version %>/<%= @page.version %>
<em>(<%= @diff.content_to.user ? link_to_user(@diff.content_to.user) : t(:label_user_anonymous) %>, <%= format_time(@diff.content_to.created_at) %>)</em>
</p>
<div class="text-diff">
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index 5123e942bd3..981b1f545ce 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -30,11 +30,11 @@ See COPYRIGHT and LICENSE files for more details.
<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>
<%= labelled_tabular_form_for @page,
as: :page,
- url: {action: 'update', id: @page.slug.presence || @old_title},
- html: {method: :put, multipart: true, id: 'wiki_form'} do |f| %>
+ url: {action: "update", id: @page.slug.presence || @old_title},
+ html: {method: :put, multipart: true, id: "wiki_form"} do |f| %>
<%= f.hidden_field :lock_version %>
- <%= render partial: 'wiki/page_form', locals: {f: f} %>
+ <%= render partial: "wiki/page_form", locals: {f: f} %>
<% end %>
diff --git a/app/views/wiki/edit_parent_page.html.erb b/app/views/wiki/edit_parent_page.html.erb
index 12653ee21e3..c369d5532dd 100644
--- a/app/views/wiki/edit_parent_page.html.erb
+++ b/app/views/wiki/edit_parent_page.html.erb
@@ -29,15 +29,15 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: "#{t(:button_change_parent_page)}: #{@page.title}" %>
-<% html_title t('activerecord.models.wiki'), t(:button_change_parent_page) %>
+<% html_title t("activerecord.models.wiki"), t(:button_change_parent_page) %>
<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>
-<%= error_messages_for 'page' %>
+<%= error_messages_for "page" %>
-<%= labelled_tabular_form_for @page, url: { id: @page, action: 'update_parent_page' } do |f| %>
+<%= labelled_tabular_form_for @page, url: { id: @page, action: "update_parent_page" } do |f| %>
<div class='form--field'>
<%= f.select :parent_id,
wiki_page_options_for_select(@parent_pages),
- { label: WikiPage.human_attribute_name(:parent_title), include_blank: false, container_class: '-wide' } %>
+ { label: WikiPage.human_attribute_name(:parent_title), include_blank: false, container_class: "-wide" } %>
</div>
<%= nonced_javascript_tag do -%>
@@ -47,5 +47,5 @@ See COPYRIGHT and LICENSE files for more details.
}
));
<% end -%>
- <%= submit_tag t(:button_save), class: 'button -primary' %>
+ <%= submit_tag t(:button_save), class: "button -primary" %>
<% end %>
diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erb
index e8348aed80b..c1cf425a06a 100644
--- a/app/views/wiki/history.html.erb
+++ b/app/views/wiki/history.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= toolbar title: @page.title %>
-<% html_title t('activerecord.models.wiki'), t(:label_history) %>
+<% html_title t("activerecord.models.wiki"), t(:label_history) %>
<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>
<h3><%= t(:label_history) %></h3>
<%= form_tag({action: "diff"}, method: :get) do %>
@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
</colgroup>
<caption class="hidden-for-sighted">
<span>
- <%= t(:text_table_difference_description, entries: t(:label_wiki_page) + ' ' + t(:label_version_plural)) %>
+ <%= t(:text_table_difference_description, entries: t(:label_wiki_page) + " " + t(:label_version_plural)) %>
</span>
</caption>
<thead>
@@ -69,7 +69,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--empty-header">
<div class="generic-table--header">
<span>
- <%= t(:description_compare_from) + ' ' + t(:label_version) %>
+ <%= t(:description_compare_from) + " " + t(:label_version) %>
</span>
</div>
</div>
@@ -78,7 +78,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--empty-header">
<div class="generic-table--header">
<span>
- <%= t(:description_compare_to) + ' ' + t(:label_version) %>
+ <%= t(:description_compare_to) + " " + t(:label_version) %>
</span>
</div>
</div>
@@ -118,38 +118,38 @@ See COPYRIGHT and LICENSE files for more details.
<% line_num = 1 %>
<% @versions.each do |ver| %>
<tr class="wiki-page-version">
- <td class="id"><%= link_to h(ver.version), action: 'show', id: @page, project_id: @page.project, version: ver.version %></td>
+ <td class="id"><%= link_to h(ver.version), action: "show", id: @page, project_id: @page.project, version: ver.version %></td>
<td class="checkbox">
<% if show_diff && (line_num < @versions.size) %>
- <label for="<%= "cb-#{line_num}" %>" class="hidden-for-sighted"><%= t(:description_compare_from) + ' ' + t(:label_version) + " " + h(ver.version.to_s) %></label>
- <%= radio_button_tag('version_from',
+ <label for="<%= "cb-#{line_num}" %>" class="hidden-for-sighted"><%= t(:description_compare_from) + " " + t(:label_version) + " " + h(ver.version.to_s) %></label>
+ <%= radio_button_tag("version_from",
ver.version,
(line_num==1),
- class: 'history-cb-from',
+ class: "history-cb-from",
id: "cb-#{line_num}",
data: {
- 'journal-history-target': 'fromVersion',
- action: 'journal-history#selectToVersion'
+ 'journal-history-target': "fromVersion",
+ action: "journal-history#selectToVersion"
}) %>
<% end %>
</td>
<td class="checkbox">
<% if show_diff && (line_num > 1) %>
- <label for="<%= "cbto-#{line_num}" %>" class="hidden-for-sighted"><%= t(:description_compare_to) + ' ' + t(:label_version) + " " + h(ver.version.to_s) %></label>
- <%= radio_button_tag('version_to',
+ <label for="<%= "cbto-#{line_num}" %>" class="hidden-for-sighted"><%= t(:description_compare_to) + " " + t(:label_version) + " " + h(ver.version.to_s) %></label>
+ <%= radio_button_tag("version_to",
ver.version,
(line_num==2),
id: "cbto-#{line_num}",
data: {
- 'journal-history-target': 'toVersion',
- action: 'journal-history#selectFromVersion'
+ 'journal-history-target': "toVersion",
+ action: "journal-history#selectFromVersion"
}) %>
<% end %>
</td>
<td class="updated_at"><%= format_time(ver.created_at) %></td>
<td class="author"><%= link_to_user ver.user %></td>
<td class="comments"><%= h ver.notes %></td>
- <td class="buttons"><%= link_to t(:button_annotate), action: 'annotate', id: @page, version: ver.version %></td>
+ <td class="buttons"><%= link_to t(:button_annotate), action: "annotate", id: @page, version: ver.version %></td>
</tr>
<% line_num += 1 %>
<% end %>
@@ -159,7 +159,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="generic-table--action-buttons">
- <%= submit_tag t(:label_view_diff), class: 'button -primary -small' if show_diff %>
+ <%= submit_tag t(:label_view_diff), class: "button -primary -small" if show_diff %>
</div>
<%= pagination_links_full @versions %>
<% end %>
diff --git a/app/views/wiki/index.html.erb b/app/views/wiki/index.html.erb
index 63335aeb89e..a22836e2da4 100644
--- a/app/views/wiki/index.html.erb
+++ b/app/views/wiki/index.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<%= toolbar title: t(:label_wiki_toc) do %>
- <%= content_tag(:li, watcher_link(@wiki, User.current), class: 'toolbar-item') %>
+ <%= content_tag(:li, watcher_link(@wiki, User.current), class: "toolbar-item") %>
<% end %>
<% html_title t(:label_wiki_toc) %>
@@ -45,14 +45,14 @@ See COPYRIGHT and LICENSE files for more details.
<% unless @pages.empty? %>
<%= other_formats_links do |f| %>
- <%= f.link_to 'Atom', url: {controller: '/activities', action: 'index', show_wiki_edits: 1, key: User.current.rss_key} %>
- <%= f.link_to('HTML', url: {action: 'export'}) if User.current.allowed_in_project?(:export_wiki_pages, @project) %>
+ <%= f.link_to "Atom", url: {controller: "/activities", action: "index", show_wiki_edits: 1, key: User.current.rss_key} %>
+ <%= f.link_to("HTML", url: {action: "export"}) if User.current.allowed_in_project?(:export_wiki_pages, @project) %>
<% end %>
<% else %>
<%= no_results_box(action_url: new_project_wiki_path(@project),
- display_action: authorize_for('wiki', 'new')) %>
+ display_action: authorize_for("wiki", "new")) %>
<% end %>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, controller: '/activities', action: 'index', id: @project, show_wiki_edits: 1, format: 'atom', key: User.current.rss_key) %>
+ <%= auto_discovery_link_tag(:atom, controller: "/activities", action: "index", id: @project, show_wiki_edits: 1, format: "atom", key: User.current.rss_key) %>
<% end %>
diff --git a/app/views/wiki/menu.html.erb b/app/views/wiki/menu.html.erb
index c8349b2128f..546e893c0d3 100644
--- a/app/views/wiki/menu.html.erb
+++ b/app/views/wiki/menu.html.erb
@@ -4,7 +4,7 @@
data-application-target="dynamic"
data-menus--subtree-selected-value="<%= @page&.slug %>">
<% cache([@project, @project.wiki]) do %>
- <% pages = @project.wiki.pages.order(Arel.sql('title')).includes(:project)
+ <% pages = @project.wiki.pages.order(Arel.sql("title")).includes(:project)
pages_by_parent_id = pages.group_by(&:parent_id) %>
<%= render_page_hierarchy(pages_by_parent_id, nil, timestamp: false) %>
<% end %>
diff --git a/app/views/wiki/new.html.erb b/app/views/wiki/new.html.erb
index 2e34f86b2bb..fb737abb1ba 100644
--- a/app/views/wiki/new.html.erb
+++ b/app/views/wiki/new.html.erb
@@ -32,9 +32,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @page,
as: :page,
url: create_project_wiki_index_path(project_id: @project),
- html: { method: :post, multipart: true, id: 'wiki_form' } do |f| %>
+ html: { method: :post, multipart: true, id: "wiki_form" } do |f| %>
- <%= render partial: 'page_form', locals: {f: f} %>
+ <%= render partial: "page_form", locals: {f: f} %>
<% end %>
diff --git a/app/views/wiki/rename.html.erb b/app/views/wiki/rename.html.erb
index 734c56ddf86..698ec5c58ac 100644
--- a/app/views/wiki/rename.html.erb
+++ b/app/views/wiki/rename.html.erb
@@ -30,14 +30,14 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: "#{t(:button_rename)} #{@original_title}" %>
<% html_title t(:permission_rename_wiki_pages) %>
<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>
-<%= error_messages_for 'page' %>
+<%= error_messages_for "page" %>
-<%= labelled_tabular_form_for @page, url: { id: @page, action: 'rename' }, as: :page do |f| %>
+<%= labelled_tabular_form_for @page, url: { id: @page, action: "rename" }, as: :page do |f| %>
<div class='form--field -required'>
- <%= f.text_field :title, required: true, container_class: '-middle' %>
+ <%= f.text_field :title, required: true, container_class: "-middle" %>
</div>
<div class='form--field'>
<%= f.check_box :redirect_existing_links %>
</div>
- <%= submit_tag t(:button_rename), class: 'button -primary' %>
+ <%= submit_tag t(:button_rename), class: "button -primary" %>
<% end %>
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index 8c35cad23fa..f2c6645793c 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @page.current_version? %>
<% title = h(@page.title) %>
<% else %>
- <% title = link_to(@page.title, { action: 'show', id: @page, project_id: @page.project }) %>
+ <% title = link_to(@page.title, { action: "show", id: @page, project_id: @page.project }) %>
<% end %>
<%# Set meta tags %>
@@ -39,26 +39,26 @@ See COPYRIGHT and LICENSE files for more details.
<% @formatted_text = format_text @page, :text, attachments: @page.attachments %>
<% description strip_tags(@formatted_text) %>
-<%= toolbar title: title, html: {class: '-with-dropdown'} do %>
+<%= toolbar title: title, html: {class: "-with-dropdown"} do %>
<% if @editable %>
<% if @page && User.current.allowed_in_project?(:edit_wiki_pages, @project) %>
<li class="toolbar-item">
- <%= link_to({controller: '/wiki', action: 'new_child', project_id: @project.identifier, id: @page},
- { class: 'button -primary',
- aria: {label: t('wiki.index.no_results_content_text')},
- title: t('wiki.index.no_results_content_text')}) do %>
- <%= op_icon('button--icon icon-add') %>
+ <%= link_to({controller: "/wiki", action: "new_child", project_id: @project.identifier, id: @page},
+ { class: "button -primary",
+ aria: {label: t("wiki.index.no_results_content_text")},
+ title: t("wiki.index.no_results_content_text")}) do %>
+ <%= op_icon("button--icon icon-add") %>
<span class="button--text"><%= t(:create_new_page) %></span>
<% end %>
</li>
<% end %>
<% if @page.current_version? %>
<li class="toolbar-item">
- <%= link_to_if_authorized({ action: 'edit', id: @page },
+ <%= link_to_if_authorized({ action: "edit", id: @page },
{ aria: { label: t(:button_edit) },
title: t(:button_edit),
- class: 'button' }) do %>
- <%= op_icon('button--icon icon-edit') %>
+ class: "button" }) do %>
+ <%= op_icon("button--icon icon-edit") %>
<span class="button--text"><%= t(:button_edit) %></span>
<% end %>
</li>
@@ -68,56 +68,56 @@ See COPYRIGHT and LICENSE files for more details.
</li>
<% unless @page.current_version? %>
<li class="toolbar-item hidden-for-mobile">
- <%= link_to(t(:label_history), {action: 'history', id: @page}, class: 'button icon-wiki') %>
+ <%= link_to(t(:label_history), {action: "history", id: @page}, class: "button icon-wiki") %>
</li>
<% end %>
<% end %>
<li class="toolbar-item drop-down">
<a href="#" aria-haspopup="true" title="<%= t(:label_more) %>" class="button">
- <%= op_icon('button--icon icon-show-more hidden-for-desktop') %>
+ <%= op_icon("button--icon icon-show-more hidden-for-desktop") %>
<span class="button--text"><%= t(:label_more) %></span>
- <%= op_icon('button--dropdown-indicator') %>
+ <%= op_icon("button--dropdown-indicator") %>
</a>
<ul style="display:none;" class="menu-drop-down-container">
<% if @editable %>
- <%= li_unless_nil(link_to_if_authorized(t(:button_lock), {action: 'protect', id: @page, protected: 1}, method: :post, class: 'icon-context icon-locked')) if [email protected]? %>
- <%= li_unless_nil(link_to_if_authorized(t(:button_unlock), {action: 'protect', id: @page, protected: 0}, method: :post, class: 'icon-context icon-unlocked')) if @page.protected? %>
+ <%= li_unless_nil(link_to_if_authorized(t(:button_lock), {action: "protect", id: @page, protected: 1}, method: :post, class: "icon-context icon-locked")) if [email protected]? %>
+ <%= li_unless_nil(link_to_if_authorized(t(:button_unlock), {action: "protect", id: @page, protected: 0}, method: :post, class: "icon-context icon-unlocked")) if @page.protected? %>
<% if @page.current_version? %>
<%= li_unless_nil(link_to_if_authorized(t(:button_rename),
- {action: 'rename', id: @page},
- class: 'icon-context icon-rename')) %>
+ {action: "rename", id: @page},
+ class: "icon-context icon-rename")) %>
<%= li_unless_nil(link_to_if_authorized(t(:button_change_parent_page),
- {action: 'edit_parent_page', id: @page},
- class: 'icon-context icon-link')) %>
+ {action: "edit_parent_page", id: @page},
+ class: "icon-context icon-link")) %>
<% end %>
- <%= li_unless_nil(link_to_if_authorized(t(:button_delete), {action: 'destroy', id: @page}, method: :delete, data: { confirm: t(:text_are_you_sure) }, class: 'icon-context icon-delete')) %>
- <%= li_unless_nil(link_to_if_authorized(t(:button_rollback), {action: 'edit', id: @page, version: @page.version }, class: 'icon-context icon-cancel')) unless @page.current_version? %>
+ <%= li_unless_nil(link_to_if_authorized(t(:button_delete), {action: "destroy", id: @page}, method: :delete, data: { confirm: t(:text_are_you_sure) }, class: "icon-context icon-delete")) %>
+ <%= li_unless_nil(link_to_if_authorized(t(:button_rollback), {action: "edit", id: @page, version: @page.version }, class: "icon-context icon-cancel")) unless @page.current_version? %>
<% end %>
- <%= li_unless_nil(link_to_if_authorized(t(:label_history), {action: 'history', id: @page}, class: 'icon-context icon-activity-history')) %>
- <%= li_unless_nil(link_to_if_authorized(t(:button_manage_menu_entry), {controller: '/wiki_menu_items', action: 'edit', project_id: @project.identifier, id: @page}, class: 'icon-context icon-settings')) %>
+ <%= li_unless_nil(link_to_if_authorized(t(:label_history), {action: "history", id: @page}, class: "icon-context icon-activity-history")) %>
+ <%= li_unless_nil(link_to_if_authorized(t(:button_manage_menu_entry), {controller: "/wiki_menu_items", action: "edit", project_id: @project.identifier, id: @page}, class: "icon-context icon-settings")) %>
<li>
<%= link_to t(:button_print),
- '',
- title: t('wiki.print_hint'),
- class: 'icon-context icon-print',
+ "",
+ title: t("wiki.print_hint"),
+ class: "icon-context icon-print",
data: {
- controller: 'print',
- action: 'print#triggerPrint'
+ controller: "print",
+ action: "print#triggerPrint"
} %>
</li>
<% if User.current.allowed_in_project?(:export_wiki_pages, @project) %>
<section data-augmented-model-wrapper
data-modal-class-name="wiki-export---modal">
<li>
- <%= link_to I18n.t('js.label_export'),
- '',
- title: I18n.t('js.label_export'),
- class: 'modal-delivery-element--activation-link icon-context icon-export' %>
+ <%= link_to I18n.t("js.label_export"),
+ "",
+ title: I18n.t("js.label_export"),
+ class: "modal-delivery-element--activation-link icon-context icon-export" %>
</li>
- <%= render partial: 'wiki/wiki_export_modal' %>
+ <%= render partial: "wiki/wiki_export_modal" %>
</section>
<% end %>
- <%= li_unless_nil(link_to_if_authorized(t(:label_table_of_contents), {controller: '/wiki', action: 'index', project_id: @project.identifier, id: @page}, class: 'icon-context icon-view-list')) %>
+ <%= li_unless_nil(link_to_if_authorized(t(:label_table_of_contents), {controller: "/wiki", action: "index", project_id: @project.identifier, id: @page}, class: "icon-context icon-view-list")) %>
</ul>
</li>
<% end %>
@@ -128,10 +128,10 @@ See COPYRIGHT and LICENSE files for more details.
<hr>
<div class="wiki-version--details">
<div>
- <%= link_to(t(:label_previous), { action: 'show', id: @page, project_id: @page.project, version: (@page.version - 1) }, class: 'button navigate-left') if @page.version > 1 %>
+ <%= link_to(t(:label_previous), { action: "show", id: @page, project_id: @page.project, version: (@page.version - 1) }, class: "button navigate-left") if @page.version > 1 %>
<span><%= "#{Version.model_name.human} #{@page.version}/#{@page.latest_version}" %> &#x2014;</span>
<span><em><%= @page.author ? link_to_user(@page.author) : t(:label_user_anonymous) %></em> &#x2014; <%= format_time(@page.updated_at) %></span>
- <%= link_to(t(:label_next), { action: 'show', id: @page, project_id: @page.project, version: (@page.version + 1) }, class: 'button navigate-right') unless @page.current_version? %>
+ <%= link_to(t(:label_next), { action: "show", id: @page, project_id: @page.project, version: (@page.version + 1) }, class: "button navigate-right") unless @page.current_version? %>
</div>
<hr>
</div>
diff --git a/app/views/wiki_menu_items/edit.html.erb b/app/views/wiki_menu_items/edit.html.erb
index 4e5af90e077..5621f7a96c8 100644
--- a/app/views/wiki_menu_items/edit.html.erb
+++ b/app/views/wiki_menu_items/edit.html.erb
@@ -31,9 +31,9 @@ See COPYRIGHT and LICENSE files for more details.
<% breadcrumb_paths(*@page.ancestors.reverse.collect {|parent| link_to h(parent.title), {id: parent.title, project_id: parent.project}}.push(@page_title)) %>
<%= toolbar title: t(:wiki_menu_item_for, title: @page_title) %>
-<%= form_for @wiki_menu_item, html: {id: 'wiki_menu_item_form', class: 'menu-item-form', method: :put}, url: wiki_menu_item_path(@project, @page) do |form| %>
+<%= form_for @wiki_menu_item, html: {id: "wiki_menu_item_form", class: "menu-item-form", method: :put}, url: wiki_menu_item_path(@project, @page) do |form| %>
<p class="item-name">
- <%= form.label :title, t(:label_menu_item_name), {id: 'item-name'} %>
+ <%= form.label :title, t(:label_menu_item_name), {id: "item-name"} %>
<% if @wiki_menu_item.title.nil? %>
<%= form.text_field :title, size: 20, value: @page_title %>
<% else %>
@@ -45,25 +45,25 @@ See COPYRIGHT and LICENSE files for more details.
<fieldset class="form--fieldset" id="wiki_menu_item_setting">
<legend class="form--fieldset-legend"><%= t(:menu_item_setting) %></legend>
<p>
- <%= form.radio_button 'setting', :no_item %>
- <%= form.label 'setting_no_item', t(:label_wiki_dont_show_menu_item) %>
+ <%= form.radio_button "setting", :no_item %>
+ <%= form.label "setting_no_item", t(:label_wiki_dont_show_menu_item) %>
</p>
<p class="main_item">
- <%= form.radio_button 'setting', :main_item %>
- <%= form.label 'setting_main_item', t(:label_wiki_show_menu_item) %>
+ <%= form.radio_button "setting", :main_item %>
+ <%= form.label "setting_main_item", t(:label_wiki_show_menu_item) %>
</p>
<p>
<% disabled = @parent_menu_item_options.empty? %>
- <%= form.radio_button 'setting', :sub_item, disabled: disabled %>
- <%= form.label 'setting_sub_item', t(:label_wiki_show_submenu_item), {id: 'with-select'} %>
+ <%= form.radio_button "setting", :sub_item, disabled: disabled %>
+ <%= form.label "setting_sub_item", t(:label_wiki_show_submenu_item), {id: "with-select"} %>
<%= select_tag "parent_wiki_menu_item", options_for_select(@parent_menu_item_options, @selected_parent_menu_item_id), disabled: disabled %>
</p>
</fieldset>
<p>
<%= styled_button_tag t(:button_save), method: :post,
- class: '-primary -with-icon icon-checkmark' %>
+ class: "-primary -with-icon icon-checkmark" %>
<%= link_to t(:button_cancel),
- {controller: '/wiki', action: 'show', project_id: @project, id: @page_title},
- class: 'button -with-icon icon-cancel' %>
+ {controller: "/wiki", action: "show", project_id: @project, id: @page_title},
+ class: "button -with-icon icon-cancel" %>
</p>
<% end %>
diff --git a/app/views/wiki_menu_items/select_main_menu_item.html.erb b/app/views/wiki_menu_items/select_main_menu_item.html.erb
index 38a32de4c47..871a80a38d6 100644
--- a/app/views/wiki_menu_items/select_main_menu_item.html.erb
+++ b/app/views/wiki_menu_items/select_main_menu_item.html.erb
@@ -30,7 +30,7 @@ See COPYRIGHT and LICENSE files for more details.
<p><%= t :wiki_menu_item_new_main_item_explanation %></p>
-<%= labelled_tabular_form_for :wiki_page, url: { action: 'replace_main_menu_item' } do |f| %>
+<%= labelled_tabular_form_for :wiki_page, url: { action: "replace_main_menu_item" } do |f| %>
<fieldset class="form--fieldset" id="wiki_menu_item_setting">
<legend class="form--fieldset-legend"><%= t(:label_wiki_page) %></legend>
<p>
@@ -38,8 +38,8 @@ See COPYRIGHT and LICENSE files for more details.
wiki_page_options_for_select(@possible_wiki_pages),
{ label: WikiPage.human_attribute_name(:title) },
{ size: @possible_wiki_pages.size,
- id: 'main-menu-item-select' } %>
+ id: "main-menu-item-select" } %>
</p>
</fieldset>
- <%= submit_tag t(:button_save), class: 'button -primary' %>
+ <%= submit_tag t(:button_save), class: "button -primary" %>
<% end %>
diff --git a/app/views/work_package_mailer/mentioned.html.erb b/app/views/work_package_mailer/mentioned.html.erb
index 4fabec267d3..29e61baac42 100644
--- a/app/views/work_package_mailer/mentioned.html.erb
+++ b/app/views/work_package_mailer/mentioned.html.erb
@@ -1,14 +1,14 @@
<table <%= placeholder_table_styles %>>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
-<table <%= placeholder_table_styles(width: '100%', style: 'width:100%;max-width:700px;') %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px;") %>>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
- <%= render partial: 'mailer/mailer_header',
+ <%= render partial: "mailer/mailer_header",
locals: {
summary: I18n.t(:'mail.work_packages.mentioned_by', user: @journal.user),
button_href: details_notifications_url(@work_package.id, tab: :activity),
@@ -16,14 +16,14 @@
user: @user,
} %>
- <%= render layout: 'mailer/notification_row',
+ <%= render layout: "mailer/notification_row",
locals: {
work_package: @work_package,
unique_reasons: [:mentioned],
show_count: false,
user: @user
} do %>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;') %>>
+ <table <%= placeholder_table_styles(width: "100%", style: "width:100%;") %>>
<tr>
<td style="<%= placeholder_text_styles %>">
<%= format_text @journal.notes, only_path: false %>
@@ -32,7 +32,7 @@
</table>
<% end %>
- <%= render partial: 'mailer/notification_settings_table',
+ <%= render partial: "mailer/notification_settings_table",
locals: {
button_url: my_reminders_url,
button_text: I18n.t(:'mail.notification.settings')
@@ -40,10 +40,10 @@
<table>
<tr>
- <%= placeholder_cell('40px', vertical: false) %>
+ <%= placeholder_cell("40px", vertical: false) %>
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
</table>
diff --git a/app/views/work_package_mailer/mentioned.text.erb b/app/views/work_package_mailer/mentioned.text.erb
index dd1e9a33618..0303c937437 100644
--- a/app/views/work_package_mailer/mentioned.text.erb
+++ b/app/views/work_package_mailer/mentioned.text.erb
@@ -3,9 +3,9 @@
<%= "-" * 100 %>
-<%= "=" * (('# ' + @work_package.id.to_s + @work_package.subject).length + 4) %>
+<%= "=" * (("# " + @work_package.id.to_s + @work_package.subject).length + 4) %>
= #<%= @work_package.id %> <%= @work_package.subject %> =
-<%= "=" * (('# ' + @work_package.id.to_s + @work_package.subject).length + 4) %>
+<%= "=" * (("# " + @work_package.id.to_s + @work_package.subject).length + 4) %>
<%= I18n.t(:label_comment_added) %>:
<%= strip_tags @journal.notes %>
diff --git a/app/views/work_package_mailer/watcher_changed.html.erb b/app/views/work_package_mailer/watcher_changed.html.erb
index 43c0d41ca0a..26d14d471c5 100644
--- a/app/views/work_package_mailer/watcher_changed.html.erb
+++ b/app/views/work_package_mailer/watcher_changed.html.erb
@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= t("text_work_package_watcher_#{@action}", id: "##{@work_package.id}", watcher_changer: @watcher_changer) %>
<hr>
-<%= render partial: 'work_package_details', locals: { work_package: @work_package } %>
+<%= render partial: "work_package_details", locals: { work_package: @work_package } %>
<p>
<%= format_text(t(:text_latest_note, note: last_work_package_note(@work_package)),
only_path: false,
diff --git a/app/views/work_package_mailer/watcher_changed.text.erb b/app/views/work_package_mailer/watcher_changed.text.erb
index 659f91ace42..289e99f6a79 100644
--- a/app/views/work_package_mailer/watcher_changed.text.erb
+++ b/app/views/work_package_mailer/watcher_changed.text.erb
@@ -30,5 +30,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= t("text_work_package_watcher_#{@action}", id: "##{@work_package.id}", watcher_changer: @watcher_changer) %>
----------------------------------------
-<%= render partial: 'work_package_details', locals: { work_package: @work_package } %>
+<%= render partial: "work_package_details", locals: { work_package: @work_package } %>
<%= t(:text_latest_note, note: last_work_package_note(@work_package)) %>
diff --git a/app/views/work_packages/auto_completes/index.html.erb b/app/views/work_packages/auto_completes/index.html.erb
index af32964f27b..0c80b5804b6 100644
--- a/app/views/work_packages/auto_completes/index.html.erb
+++ b/app/views/work_packages/auto_completes/index.html.erb
@@ -29,9 +29,9 @@ See COPYRIGHT and LICENSE files for more details.
<ul>
<% if @work_packages.any? -%>
<% @work_packages.each do |work_package| -%>
- <%= content_tag 'li', h(work_package.to_s), id: work_package.id %>
+ <%= content_tag "li", h(work_package.to_s), id: work_package.id %>
<% end -%>
<% else -%>
- <%= content_tag("li", t(:label_none), style: 'display:none') %>
+ <%= content_tag("li", t(:label_none), style: "display:none") %>
<% end -%>
</ul>
diff --git a/app/views/work_packages/bulk/_errors.html.erb b/app/views/work_packages/bulk/_errors.html.erb
index b8d066e5fd8..24b4495842d 100644
--- a/app/views/work_packages/bulk/_errors.html.erb
+++ b/app/views/work_packages/bulk/_errors.html.erb
@@ -6,19 +6,19 @@
%>
<% if total_count - error_count == 0 %>
- <%= t('work_packages.bulk.none_could_be_saved',
+ <%= t("work_packages.bulk.none_could_be_saved",
total: total_count) %>
<% else %>
- <%= t('work_packages.bulk.x_out_of_y_could_be_saved',
+ <%= t("work_packages.bulk.x_out_of_y_could_be_saved",
failing: error_count,
total: total_count,
success: total_count - error_count) %>
- <%= t('work_packages.bulk.could_not_be_saved') %>
+ <%= t("work_packages.bulk.could_not_be_saved") %>
<% end %>
<% if selected_count < total_count %>
- <%= t('work_packages.bulk.selected_because_descendants',
+ <%= t("work_packages.bulk.selected_because_descendants",
total: total_count,
selected: selected_count) %>
<% end %>
@@ -28,8 +28,8 @@
<% wp_id = call.state.copied_from_work_package_id || call.result.id %>
<li>
- <%= link_to "##{wp_id}", work_package_path(wp_id) %><%= selected_work_packages.map(&:id).include?(wp_id) ? '' : " (#{I18n.t('work_packages.bulk.descendant')})" %>:
- <%= safe_join call.errors.full_messages, ' ' %>
+ <%= link_to "##{wp_id}", work_package_path(wp_id) %><%= selected_work_packages.map(&:id).include?(wp_id) ? "" : " (#{I18n.t('work_packages.bulk.descendant')})" %>:
+ <%= safe_join call.errors.full_messages, " " %>
</li>
<% end %>
</ul>
diff --git a/app/views/work_packages/bulk/destroy.html.erb b/app/views/work_packages/bulk/destroy.html.erb
index 19f4e78c036..d8ba4ec9038 100644
--- a/app/views/work_packages/bulk/destroy.html.erb
+++ b/app/views/work_packages/bulk/destroy.html.erb
@@ -28,15 +28,15 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= error_messages_for work_packages.first %>
-<%= styled_form_tag work_packages_bulk_path, method: :delete, class: 'form danger-zone' do %>
+<%= styled_form_tag work_packages_bulk_path, method: :delete, class: "form danger-zone" do %>
<%= back_url_hidden_field_tag unless back_url_is_wp_show? %>
<% work_packages.each do |work_package| %>
- <%= hidden_field_tag 'ids[]', work_package.id %>
+ <%= hidden_field_tag "ids[]", work_package.id %>
<% end %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('work_package.destroy.title') %>
+ <%= t("work_package.destroy.title") %>
</h3>
<%= work_package_associations_to_address(associated) %>
@@ -49,45 +49,45 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -trailing-label">
<%= styled_label_tag :to_do_action_destroy, t(:text_destroy) %>
<div class="form--field-container">
- <%= styled_radio_button_tag 'to_do[action]', 'destroy' %>
+ <%= styled_radio_button_tag "to_do[action]", "destroy" %>
</div>
</div>
<div class="form--field -trailing-label">
- <%= styled_label_tag 'to_do_action_nullify', t(:text_assign_to_project) %>
+ <%= styled_label_tag "to_do_action_nullify", t(:text_assign_to_project) %>
<div class="form--field-container">
- <%= styled_radio_button_tag 'to_do[action]' , 'nullify' %>
+ <%= styled_radio_button_tag "to_do[action]" , "nullify" %>
</div>
</div>
<div class="grid-block">
<div class="grid-block small-3">
<div class="form--field -trailing-label">
- <%= styled_label_tag 'to_do_action_reassign', t(:text_reassign) %>
+ <%= styled_label_tag "to_do_action_reassign", t(:text_reassign) %>
<div class="form--field-container">
- <%= styled_radio_button_tag 'to_do[action]', 'reassign' %>
+ <%= styled_radio_button_tag "to_do[action]", "reassign" %>
<% csp_onclick('if(jQuery("#to_do_action_reassign").prop("checked")) { jQuery("#to_do_reassign_to_id").focus(); }',
- '#reassign') %>
+ "#reassign") %>
</div>
</div>
</div>
<div class="grid-block">
<div class="form--field">
<div class="form--text-field-container -xslim">
- <%= styled_label_tag 'to_do_reassign_to_id', t(:text_reassign), class: 'form--label hidden-for-sighted' %>
- <%= f.text_field 'reassign_to_id', placeholder: WorkPackage.human_attribute_name(:id), value: params[:reassign_to_id], size: 6, onfocus: 'jQuery("#to_do_action_reassign").prop("checked", true);' %>
+ <%= styled_label_tag "to_do_reassign_to_id", t(:text_reassign), class: "form--label hidden-for-sighted" %>
+ <%= f.text_field "reassign_to_id", placeholder: WorkPackage.human_attribute_name(:id), value: params[:reassign_to_id], size: 6, onfocus: 'jQuery("#to_do_action_reassign").prop("checked", true);' %>
</div>
</div>
</div>
</div>
<% end %>
<div class="danger-zone--verification">
- <%= styled_button_tag title: t(:button_delete), class: '-primary' do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary" do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to_function t(:button_cancel),
"history.back()",
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' %>
+ class: "button -with-icon icon-cancel" %>
</section>
<% end %>
diff --git a/app/views/work_packages/bulk/edit.html.erb b/app/views/work_packages/bulk/edit.html.erb
index 938aeb5f151..3ffa2e4423d 100644
--- a/app/views/work_packages/bulk/edit.html.erb
+++ b/app/views/work_packages/bulk/edit.html.erb
@@ -39,10 +39,10 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
</ul>
-<%= styled_form_tag(url_for(controller: '/work_packages/bulk', action: :update),
- method: :put, class: '-wide-labels') do %>
+<%= styled_form_tag(url_for(controller: "/work_packages/bulk", action: :update),
+ method: :put, class: "-wide-labels") do %>
<% @work_packages.each do |wp| %>
- <%= hidden_field_tag 'ids[]', wp.id %>
+ <%= hidden_field_tag "ids[]", wp.id %>
<% end %>
<%= back_url_hidden_field_tag %>
<section class="form--section">
@@ -53,43 +53,43 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_type_id, WorkPackage.human_attribute_name(:type) %>
<div class="form--field-container">
- <%= styled_select_tag('work_package[type_id]', "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@types, :id, :name)) %>
+ <%= styled_select_tag("work_package[type_id]", "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@types, :id, :name)) %>
</div>
</div>
<% if @available_statuses.any? %>
<div class="form--field">
<%= styled_label_tag :work_package_status_id, WorkPackage.human_attribute_name(:status) %>
<div class="form--field-container">
- <%= styled_select_tag('work_package[status_id]', "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@available_statuses, :id, :name)) %>
+ <%= styled_select_tag("work_package[status_id]", "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@available_statuses, :id, :name)) %>
</div>
</div>
<% else %>
<div class="form--field">
<%= styled_label_tag :work_package_status_id, WorkPackage.human_attribute_name(:status) %>
<div class="form--field-container">
- <%= t('work_packages.move.no_common_statuses_exists') %>
+ <%= t("work_packages.move.no_common_statuses_exists") %>
</div>
</div>
<% end %>
<div class="form--field">
<%= styled_label_tag :work_package_priority_id, WorkPackage.human_attribute_name(:priority) %>
<div class="form--field-container">
- <%= styled_select_tag('work_package[priority_id]', "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(IssuePriority.active, :id, :name)) %>
+ <%= styled_select_tag("work_package[priority_id]", "<option value=\"\">#{t(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(IssuePriority.active, :id, :name)) %>
</div>
</div>
<div class="form--field">
<%= styled_label_tag :work_package_assigned_to_id, WorkPackage.human_attribute_name(:assigned_to) %>
<div class="form--field-container">
- <%= styled_select_tag('work_package[assigned_to_id]', content_tag('option', t(:label_no_change_option), value: '') +
- content_tag('option', t(:label_nobody), value: 'none') +
+ <%= styled_select_tag("work_package[assigned_to_id]", content_tag("option", t(:label_no_change_option), value: "") +
+ content_tag("option", t(:label_nobody), value: "none") +
options_from_collection_for_select(@assignables, :id, :name)) %>
</div>
</div>
<div class="form--field">
<%= styled_label_tag :work_package_responsible_id, WorkPackage.human_attribute_name(:responsible) %>
<div class="form--field-container">
- <%= styled_select_tag('work_package[responsible_id]', content_tag('option', t(:label_no_change_option), value: '') +
- content_tag('option', t(:label_nobody), value: 'none') +
+ <%= styled_select_tag("work_package[responsible_id]", content_tag("option", t(:label_no_change_option), value: "") +
+ content_tag("option", t(:label_nobody), value: "none") +
options_from_collection_for_select(@responsibles, :id, :name)) %>
</div>
</div>
@@ -97,8 +97,8 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_category_id, WorkPackage.human_attribute_name(:category) %>
<div class="form--field-container">
- <%= styled_select_tag('work_package[category_id]', content_tag('option', t(:label_no_change_option), value: '') +
- content_tag('option', t(:label_none), value: 'none') +
+ <%= styled_select_tag("work_package[category_id]", content_tag("option", t(:label_no_change_option), value: "") +
+ content_tag("option", t(:label_none), value: "none") +
options_from_collection_for_select(@project.categories, :id, :name)) %>
</div>
</div>
@@ -106,26 +106,26 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_version_id, WorkPackage.human_attribute_name(:version) %>
<div class="form--field-container">
- <%= styled_select_tag('work_package[version_id]', content_tag('option', t(:label_no_change_option), value: '') +
- content_tag('option', t(:label_none), value: 'none') +
+ <%= styled_select_tag("work_package[version_id]", content_tag("option", t(:label_no_change_option), value: "") +
+ content_tag("option", t(:label_none), value: "none") +
version_options_for_select(@project.shared_versions.with_status_open.order_by_semver_name)) %>
</div>
</div>
<div class="form--field">
<%= styled_label_tag :work_package_budget_id, Budget.model_name.human %>
<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') +
- options_from_collection_for_select(@project.budgets.order(Arel.sql('subject ASC')), :id, :subject)) %>
+ <%= styled_select_tag("work_package[budget_id]",
+ 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>
</div>
<% end %>
<% @custom_fields.each do |custom_field| %>
<div class="form--field">
- <%= blank_custom_field_label_tag('work_package', custom_field) %>
+ <%= blank_custom_field_label_tag("work_package", custom_field) %>
<div class="form--field-container">
- <%= custom_field_tag_for_bulk_edit('work_package', custom_field, @project) %>
+ <%= custom_field_tag_for_bulk_edit("work_package", custom_field, @project) %>
</div>
</div>
<% end %>
@@ -135,14 +135,14 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_subject, WorkPackage.human_attribute_name(:subject) %>
<div class="form--field-container">
- <%= styled_text_field_tag 'work_package[subject]', '', size: 10 %>
+ <%= styled_text_field_tag "work_package[subject]", "", size: 10 %>
</div>
</div>
<% if @project && User.current.allowed_in_project?(:manage_subtasks, @project) %>
<div class="form--field">
<%= styled_label_tag :work_package_parent_id, WorkPackage.human_attribute_name(:parent) %>
<div class="form--field-container">
- <%= styled_text_field_tag 'work_package[parent_id]', '', size: 10 %>
+ <%= styled_text_field_tag "work_package[parent_id]", "", size: 10 %>
</div>
</div>
<div id="parent_work_package_candidates" class="autocomplete"></div>
@@ -150,7 +150,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_start_date, WorkPackage.human_attribute_name(:start_date) %>
<div class="form--field-container -visible-overflow">
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
id: "work_package_start_date",
name: "work_package[start_date]"
@@ -160,7 +160,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_due_date, WorkPackage.human_attribute_name(:due_date) %>
<div class="form--field-container -visible-overflow">
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
id: "work_package_due_date",
name: "work_package[due_date]"
@@ -172,10 +172,10 @@ See COPYRIGHT and LICENSE files for more details.
</fieldset>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= Journal.human_attribute_name(:notes) %></legend>
- <%= label_tag 'work_package_journal_notes', Journal.human_attribute_name(:notes), class: 'hidden-for-sighted' %>
- <%= styled_text_area_tag 'work_package[journal_notes]', @notes, class: 'wiki-edit', with_text_formatting: true %>
+ <%= label_tag "work_package_journal_notes", Journal.human_attribute_name(:notes), class: "hidden-for-sighted" %>
+ <%= styled_text_area_tag "work_package[journal_notes]", @notes, class: "wiki-edit", with_text_formatting: true %>
<p><%= send_notification_option %></p>
</fieldset>
</section>
- <p><%= styled_button_tag t(:button_submit), class: '-primary -with-icon icon-checkmark' %></p>
+ <p><%= styled_button_tag t(:button_submit), class: "-primary -with-icon icon-checkmark" %></p>
<% end %>
diff --git a/app/views/work_packages/menus/_menu.html.erb b/app/views/work_packages/menus/_menu.html.erb
index 5cf2f9bd53c..a0ae36a4d92 100644
--- a/app/views/work_packages/menus/_menu.html.erb
+++ b/app/views/work_packages/menus/_menu.html.erb
@@ -1,5 +1,5 @@
<%
- on_work_package_path = request.path.include?('/work_packages')
+ on_work_package_path = request.path.include?("/work_packages")
path =
if @project
menu_project_work_packages_path(@project, **params.permit(:query_props, :query_id, :name), on_work_package_path:)
diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erb
index 5467c431692..3f70765fb6c 100644
--- a/app/views/work_packages/moves/new.html.erb
+++ b/app/views/work_packages/moves/new.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title @copy ? t(:button_copy) : t(:button_move), t('activerecord.models.work_package') %>
+<% html_title @copy ? t(:button_copy) : t(:button_move), t("activerecord.models.work_package") %>
<h2><%= @copy ? t(:button_copy) : t(:button_move) %></h2>
<ul>
@@ -36,22 +36,22 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to_work_package work_package %>
<% descendant_count = work_package.descendants.size %>
<% if descendant_count > 0 %>
- <span class="contextual-info -small">(+ <%= t('work_packages.x_descendants', count: descendant_count) %>)</span>
+ <span class="contextual-info -small">(+ <%= t("work_packages.x_descendants", count: descendant_count) %>)</span>
<% end %>
</li>
<% end -%>
</ul>
-<%= styled_form_tag({ action: 'create' },
- id: 'move_form',
+<%= styled_form_tag({ action: "create" },
+ id: "move_form",
data: {
- 'controller': 'refresh-on-form-changes',
- 'refresh-on-form-changes-target': 'form',
- 'refresh-on-form-changes-refresh-url-value': url_for(action: 'new')
+ 'controller': "refresh-on-form-changes",
+ 'refresh-on-form-changes-target': "form",
+ 'refresh-on-form-changes-refresh-url-value': url_for(action: "new")
},
- class: '-wide-labels augment--refresh-on-form-changes') do %>
+ class: "-wide-labels augment--refresh-on-form-changes") do %>
<% @work_packages.each do |wp| %>
- <%= hidden_field_tag 'ids[]', wp.id %>
+ <%= hidden_field_tag "ids[]", wp.id %>
<% end %>
<%= back_url_hidden_field_tag %>
<section class="form--section">
@@ -62,19 +62,19 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for="new_project_id"><%= WorkPackage.human_attribute_name(:project) %>:</label>
<div class="form--field-container">
- <%= angular_component_tag 'opce-project-autocompleter',
+ <%= angular_component_tag "opce-project-autocompleter",
inputs: {
- filters: [{ name: 'user_action', operator: '=', values: ['work_packages/move'] }],
- inputName: 'new_project_id',
+ filters: [{ name: "user_action", operator: "=", values: ["work_packages/move"] }],
+ inputName: "new_project_id",
model: @target_project,
- appendTo: 'body',
- hiddenFieldAction: 'change->refresh-on-form-changes#triggerReload',
+ appendTo: "body",
+ hiddenFieldAction: "change->refresh-on-form-changes#triggerReload",
clearable: false,
},
- id: 'new_project_id',
- class: 'remote-field--input',
+ id: "new_project_id",
+ class: "remote-field--input",
data: {
- 'test-selector': 'new_project_id'
+ 'test-selector': "new_project_id"
} %>
</div>
</div>
@@ -82,10 +82,10 @@ See COPYRIGHT and LICENSE files for more details.
<label class="form--label" for="new_type_id"><%= WorkPackage.human_attribute_name(:type) %>:</label>
<div class="form--field-container">
<%= styled_select_tag("new_type_id",
- content_tag('option', t(:label_no_change_option), value: '') +
+ 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>
<% if @unavailable_type_in_target_project %>
@@ -105,49 +105,49 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for='status_id'><%= WorkPackage.human_attribute_name(:status) %></label>
<div class="form--field-container">
- <%= styled_select_tag('status_id',
- content_tag('option', t(:label_no_change_option), value: '') +
+ <%= styled_select_tag("status_id",
+ content_tag("option", t(:label_no_change_option), value: "") +
options_from_collection_for_select(@available_statuses, :id, :name)) %>
</div>
</div>
<div class="form--field">
<label class="form--label" for='version_id'><%= WorkPackage.human_attribute_name(:version) %></label>
<div class="form--field-container">
- <%= styled_select_tag('version_id',
- content_tag('option', t(:label_no_change_option), value: '') +
+ <%= styled_select_tag("version_id",
+ content_tag("option", t(:label_no_change_option), value: "") +
version_options_for_select(@available_versions)) %>
</div>
</div>
<div class="form--field">
<label class="form--label" for='priority_id'><%= WorkPackage.human_attribute_name(:priority) %></label>
<div class="form--field-container">
- <%= styled_select_tag('priority_id',
- content_tag('option', t(:label_no_change_option), value: '') +
+ <%= styled_select_tag("priority_id",
+ content_tag("option", t(:label_no_change_option), value: "") +
options_from_collection_for_select(IssuePriority.active, :id, :name)) %>
</div>
</div>
<div class="form--field">
<label class="form--label" for='assigned_to_id'><%= WorkPackage.human_attribute_name(:assigned_to) %></label>
<div class="form--field-container">
- <%= styled_select_tag('assigned_to_id',
- content_tag('option', t(:label_no_change_option), value: '') +
- content_tag('option', t(:label_nobody), value: 'none') +
+ <%= styled_select_tag("assigned_to_id",
+ content_tag("option", t(:label_no_change_option), value: "") +
+ content_tag("option", t(:label_nobody), value: "none") +
options_from_collection_for_select(Principal.possible_assignee(@target_project), :id, :name)) %>
</div>
</div>
<div class="form--field">
<label class="form--label" for='responsible_id'><%= WorkPackage.human_attribute_name(:responsible) %></label>
<div class="form--field-container">
- <%= styled_select_tag('responsible_id',
- content_tag('option', t(:label_no_change_option), value: '') +
- content_tag('option', t(:label_nobody), value: 'none') +
+ <%= styled_select_tag("responsible_id",
+ content_tag("option", t(:label_no_change_option), value: "") +
+ content_tag("option", t(:label_nobody), value: "none") +
options_from_collection_for_select(Principal.possible_assignee(@target_project), :id, :name)) %>
</div>
</div>
<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') +
+ <%= 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") +
options_from_collection_for_select(@target_project.budgets, :id, :subject)) %>
</div>
</div>
@@ -155,7 +155,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for='start_date'><%= WorkPackage.human_attribute_name(:start_date) %></label>
<div class="form--field-container -visible-overflow">
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
id: "start_date",
name: "start_date"
@@ -165,7 +165,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for='due_date'><%= WorkPackage.human_attribute_name(:due_date) %></label>
<div class="form--field-container -visible-overflow">
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
id: "due_date",
name: "due_date"
@@ -175,9 +175,9 @@ See COPYRIGHT and LICENSE files for more details.
<% if @target_type %>
<% @target_type.custom_fields.required.each do |custom_field| %>
<div class="form--field">
- <%= blank_custom_field_label_tag('', custom_field) %>
+ <%= blank_custom_field_label_tag("", custom_field) %>
<div class="form--field-container">
- <%= custom_field_tag_for_bulk_edit('', custom_field, @project) %>
+ <%= custom_field_tag_for_bulk_edit("", custom_field, @project) %>
</div>
</div>
<% end %>
@@ -187,18 +187,18 @@ See COPYRIGHT and LICENSE files for more details.
</fieldset>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= Journal.human_attribute_name(:notes) %></legend>
- <%= label_tag 'notes', Journal.human_attribute_name(:notes), class: 'hidden-for-sighted' %>
- <%= styled_text_area_tag 'notes', @notes, cols: 60, rows: 10, class: 'wiki-edit', with_text_formatting: true %>
+ <%= label_tag "notes", Journal.human_attribute_name(:notes), class: "hidden-for-sighted" %>
+ <%= styled_text_area_tag "notes", @notes, cols: 60, rows: 10, class: "wiki-edit", with_text_formatting: true %>
</fieldset>
<%= call_hook(:view_work_packages_move_bottom, work_packages: @work_packages, target_project: @target_project, copy: !!@copy) %>
</section>
<% if @copy %>
<%= hidden_field_tag("copy") %>
- <%= styled_submit_tag t(:button_copy), class: '-primary' %>
- <%= styled_submit_tag t(:button_copy_and_follow), name: 'follow', class: '-primary' %>
+ <%= styled_submit_tag t(:button_copy), class: "-primary" %>
+ <%= styled_submit_tag t(:button_copy_and_follow), name: "follow", class: "-primary" %>
<% else %>
- <%= styled_submit_tag t(:button_move), class: '-primary' %>
- <%= styled_submit_tag t(:button_move_and_follow), name: 'follow', class: '-primary' %>
+ <%= styled_submit_tag t(:button_move), class: "-primary" %>
+ <%= styled_submit_tag t(:button_move_and_follow), name: "follow", class: "-primary" %>
<% end %>
<% end %>
<% content_for :header_tags do %>
diff --git a/app/views/work_packages/reports/_report_category.html.erb b/app/views/work_packages/reports/_report_category.html.erb
index b54d95c689f..69c4db9360d 100644
--- a/app/views/work_packages/reports/_report_category.html.erb
+++ b/app/views/work_packages/reports/_report_category.html.erb
@@ -31,11 +31,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--fieldset-legend"><%= WorkPackage.human_attribute_name(report.report_type) %></div>
<div class="form--toolbar">
<span class="form--toolbar-item">
- <%= link_to(icon_wrapper('icon icon-zoom-in',t(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type))),
- {action: 'report_details', detail: report.report_type},
+ <%= link_to(icon_wrapper("icon icon-zoom-in",t(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type))),
+ {action: "report_details", detail: report.report_type},
title: t(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type)),
- class: 'no-decoration-on-hover') %></span>
+ class: "no-decoration-on-hover") %></span>
</div>
</div>
-<%= render partial: 'report', locals: { report: report } %>
+<%= render partial: "report", locals: { report: report } %>
diff --git a/app/views/work_packages/reports/report.html.erb b/app/views/work_packages/reports/report.html.erb
index 76b3eed2866..91cb752dfeb 100644
--- a/app/views/work_packages/reports/report.html.erb
+++ b/app/views/work_packages/reports/report.html.erb
@@ -29,6 +29,6 @@ See COPYRIGHT and LICENSE files for more details.
<% html_title t(:label_summary) %>
<%= toolbar title: t(:label_summary) %>
<% @reports.each do |report| %>
- <%= render partial: 'report_category', locals: { report: report} %>
+ <%= render partial: "report_category", locals: { report: report} %>
<% end %>
<%= call_hook(:view_reports_issue_report, project: @project) %>
diff --git a/app/views/work_packages/reports/report_details.html.erb b/app/views/work_packages/reports/report_details.html.erb
index 7eaa17354ba..216a7b91169 100644
--- a/app/views/work_packages/reports/report_details.html.erb
+++ b/app/views/work_packages/reports/report_details.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--fieldset">
<div class="form--fieldset-legend"><%= @report.report_type %></div>
- <%= render partial: 'report', locals: { statuses: @statuses,
+ <%= render partial: "report", locals: { statuses: @statuses,
rows: @rows,
data: @data,
field_name: @field,
@@ -40,4 +40,4 @@ See COPYRIGHT and LICENSE files for more details.
<br>
</div>
-<%= link_to t(:button_back), report_project_work_packages_path(@project), class:'button' %>
+<%= link_to t(:button_back), report_project_work_packages_path(@project), class:"button" %>
diff --git a/app/views/workflows/_form.html.erb b/app/views/workflows/_form.html.erb
index b20e64965d9..6437f5a6035 100644
--- a/app/views/workflows/_form.html.erb
+++ b/app/views/workflows/_form.html.erb
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= t(:label_new_statuses_allowed) %>
</span>
<span class="workflow-table--check-all">
- (<%= check_all_links 'workflow_form_' + name %>)
+ (<%= check_all_links "workflow_form_" + name %>)
</span>
</div>
</div>
@@ -49,9 +49,9 @@ See COPYRIGHT and LICENSE files for more details.
<th class="-table-border-bottom -table-border-right"></th>
<% for new_status in @statuses %>
<th class="workflow-table--current-status -table-border-top -table-border-bottom">
- <%= link_to_function(icon_wrapper('icon-context icon-checkmark',"#{t(:label_check_uncheck_all_in_column)}"),
+ <%= link_to_function(icon_wrapper("icon-context icon-checkmark","#{t(:label_check_uncheck_all_in_column)}"),
"OpenProject.helpers.toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')",
- class: 'no-decoration-on-hover',
+ class: "no-decoration-on-hover",
title: "#{t(:label_check_uncheck_all_in_column)}",
alt: "#{t(:label_check_uncheck_all_in_column)}") %>
<%= h new_status.name %>
@@ -63,9 +63,9 @@ See COPYRIGHT and LICENSE files for more details.
<% for old_status in @statuses %>
<tr class="-table-border-left">
<td class="workflow-table--current-status -table-border-right">
- <%= link_to_function(icon_wrapper('icon-context icon-checkmark',"#{t(:label_check_uncheck_all_in_row)}"),
+ <%= link_to_function(icon_wrapper("icon-context icon-checkmark","#{t(:label_check_uncheck_all_in_row)}"),
"OpenProject.helpers.toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",
- class: 'no-decoration-on-hover',
+ class: "no-decoration-on-hover",
title: "#{t(:label_check_uncheck_all_in_row)}",
alt: "#{t(:label_check_uncheck_all_in_row)}") %>
<%= h old_status.name %>
diff --git a/app/views/workflows/copy.html.erb b/app/views/workflows/copy.html.erb
index 13efa41f429..1a3b74e2a01 100644
--- a/app/views/workflows/copy.html.erb
+++ b/app/views/workflows/copy.html.erb
@@ -30,24 +30,24 @@ See COPYRIGHT and LICENSE files for more details.
<%= render Workflows::PageHeaderComponent.new(state: :copy) %>
-<%= styled_form_tag({}, id: 'workflow_copy_form') do %>
+<%= styled_form_tag({}, id: "workflow_copy_form") do %>
<section class="form--section">
<div class="form--field -required">
<label class="form--label" for="source_type_id"><%= t(:label_copy_source) %></label>
<div class="form--field-container">
<div class="form--select-container -middle">
<label class="form--label" for="source_type_id"><%= Type.model_name.human %></label>
- <%= select_tag('source_type_id',
+ <%= select_tag("source_type_id",
"<option value=\"\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe +
"<option value=\"any\">--- #{ t(:label_copy_same_as_target) } ---</option>".html_safe +
- options_from_collection_for_select(@types, 'id', 'name', @source_type && @source_type.id), class: 'form--select') %>
+ options_from_collection_for_select(@types, "id", "name", @source_type && @source_type.id), class: "form--select") %>
</div>
<div class="form--select-container -middle">
<label class="form--label" for='source_role_id'><%= Role.model_name.human %></label>
- <%= select_tag('source_role_id',
+ <%= select_tag("source_role_id",
"<option value=\"\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe +
"<option value=\"any\">--- #{ t(:label_copy_same_as_target) } ---</option>".html_safe +
- options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id), class: 'form--select') %>
+ options_from_collection_for_select(@roles, "id", "name", @source_role && @source_role.id), class: "form--select") %>
</div>
</div>
</div>
@@ -57,24 +57,24 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container">
<div class="form--select-container -middle">
<label class="form--label" for="target_type_ids"><%= Type.model_name.human %></label>
- <%= select_tag 'target_type_ids',
+ <%= select_tag "target_type_ids",
"<option value=\"\" disabled=\"disabled\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe +
- options_from_collection_for_select(@types, 'id', 'name', @target_types && @target_types.map(&:id)),
+ options_from_collection_for_select(@types, "id", "name", @target_types && @target_types.map(&:id)),
multiple: true,
- size: 20, class: 'form--select' %>
+ size: 20, class: "form--select" %>
</div>
<div class="form--select-container -middle">
<label class="form--label" for='target_role_ids'><%= Role.model_name.human %></label>
- <%= select_tag 'target_role_ids',
+ <%= select_tag "target_role_ids",
"<option value=\"\" disabled=\"disabled\">--- #{t(:actionview_instancetag_blank_option)} ---</option>".html_safe +
- options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)),
+ options_from_collection_for_select(@roles, "id", "name", @target_roles && @target_roles.map(&:id)),
multiple: true,
size: 20,
- class: 'form--select' %>
+ class: "form--select" %>
</div>
</div>
</div>
</section>
- <%= styled_submit_tag t(:button_copy), class: '-primary', data: { "test-selector": "op-admin-workflows--button-copy" } %>
+ <%= styled_submit_tag t(:button_copy), class: "-primary", data: { "test-selector": "op-admin-workflows--button-copy" } %>
<% end %>
diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erb
index 9c61e44e543..83baa2aa036 100644
--- a/app/views/workflows/edit.html.erb
+++ b/app/views/workflows/edit.html.erb
@@ -30,57 +30,57 @@ See COPYRIGHT and LICENSE files for more details.
<%= render Workflows::PageHeaderComponent.new(state: :edit) %>
-<%= styled_form_tag({}, method: 'get') do %>
+<%= styled_form_tag({}, method: "get") do %>
<fieldset class="simple-filters--container">
<legend><%= t(:text_workflow_edit) %></legend>
<ul class="simple-filters--filters">
<li class="simple-filters--filter">
- <%= styled_label_tag :role_id, Role.model_name.human, class: 'simple-filters--filter-name' %>
+ <%= styled_label_tag :role_id, Role.model_name.human, class: "simple-filters--filter-name" %>
<div class="simple-filters--filter-value">
- <%= styled_select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %>
+ <%= styled_select_tag "role_id", options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %>
</div>
</li>
<li class="simple-filters--filter">
- <%= styled_label_tag :type_id, Type.model_name.human, class: 'simple-filters--filter-name' %>
+ <%= styled_label_tag :type_id, Type.model_name.human, class: "simple-filters--filter-name" %>
<div class="simple-filters--filter-value">
- <%= styled_select_tag 'type_id', options_from_collection_for_select(@types, "id", "name", @type && @type.id) %>
+ <%= styled_select_tag "type_id", options_from_collection_for_select(@types, "id", "name", @type && @type.id) %>
</div>
</li>
<ul class="simple-filter--trailing-labels">
<li class="form--field -trailing-label">
- <%= hidden_field_tag 'used_statuses_only', '0', id: 'used_statuses_only_hidden' %>
+ <%= hidden_field_tag "used_statuses_only", "0", id: "used_statuses_only_hidden" %>
<%= styled_label_tag :used_statuses_only, t(:label_display_used_statuses_only) %>
<span class="form--field-container">
- <%= styled_check_box_tag :used_statuses_only, '1', @used_statuses_only %>
+ <%= styled_check_box_tag :used_statuses_only, "1", @used_statuses_only %>
</span>
</li>
</ul>
<li class="simple-filters--controls">
- <%= submit_tag t(:button_edit), name: nil, accesskey: accesskey(:edit), class: 'button -small -primary' %>
+ <%= submit_tag t(:button_edit), name: nil, accesskey: accesskey(:edit), class: "button -small -primary" %>
</li>
</ul>
</fieldset>
<% end %>
<% if @type && @role && @statuses.any? %>
- <%= form_tag({action: :update}, id: 'workflow_form', method: :patch) do %>
- <%= hidden_field_tag 'type_id', @type.id %>
- <%= hidden_field_tag 'role_id', @role.id %>
+ <%= form_tag({action: :update}, id: "workflow_form", method: :patch) do %>
+ <%= hidden_field_tag "type_id", @type.id %>
+ <%= hidden_field_tag "role_id", @role.id %>
- <%= render partial: 'form',
- locals: { name: 'always', workflows: @workflows['always'] } %>
+ <%= render partial: "form",
+ locals: { name: "always", workflows: @workflows["always"] } %>
- <%= augmented_collapsible_section initiallyExpanded: @workflows['author'].present?,
+ <%= augmented_collapsible_section initiallyExpanded: @workflows["author"].present?,
title: t(:label_additional_workflow_transitions_for_author) do %>
- <%= render partial: 'form', locals: { name: 'author', workflows: @workflows['author'] } %>
+ <%= render partial: "form", locals: { name: "author", workflows: @workflows["author"] } %>
<% end %>
- <%= augmented_collapsible_section initiallyExpanded: @workflows['assignee'].present?,
+ <%= augmented_collapsible_section initiallyExpanded: @workflows["assignee"].present?,
title: t(:label_additional_workflow_transitions_for_assignee) do %>
- <%= render partial: 'form', locals: { name: 'assignee', workflows: @workflows['assignee'] } %>
+ <%= render partial: "form", locals: { name: "assignee", workflows: @workflows["assignee"] } %>
<% end %>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
<% end %>
diff --git a/app/views/workflows/show.html.erb b/app/views/workflows/show.html.erb
index 132c765088f..60895aafc99 100644
--- a/app/views/workflows/show.html.erb
+++ b/app/views/workflows/show.html.erb
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
- <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
+ <%= content_tag(role.builtin? ? "em" : "span", h(role.name)) %>
</div>
</div>
</th>
@@ -64,7 +64,7 @@ See COPYRIGHT and LICENSE files for more details.
<td><%= h type %></td>
<% roles.each do |role, count| -%>
<td>
- <%= link_to((count > 0 ? count : content_tag(:span, '', class: "icon-close icon-context icon-button")), {action: 'edit', role_id: role, type_id: type}, title: t(:button_edit)) %>
+ <%= link_to((count > 0 ? count : content_tag(:span, "", class: "icon-close icon-context icon-button")), {action: "edit", role_id: role, type_id: type}, title: t(:button_edit)) %>
</td>
<% end -%>
</tr>
diff --git a/docker/prod/proxy.conf.erb b/docker/prod/proxy.conf.erb
index 7a8fdec2db7..42d9171c42c 100644
--- a/docker/prod/proxy.conf.erb
+++ b/docker/prod/proxy.conf.erb
@@ -1,4 +1,4 @@
-<% server_name = ENV.fetch('SERVER_NAME') { "_default_" } %>
+<% server_name = ENV.fetch("SERVER_NAME") { "_default_" } %>
<% unless server_name == "_default_" %>
<VirtualHost *:80>
ServerName _default_
@@ -8,7 +8,7 @@
<VirtualHost *:80>
ServerName <%= server_name %>
- DocumentRoot <%= ENV.fetch('APP_PATH') %>/public
+ DocumentRoot <%= ENV.fetch("APP_PATH") %>/public
ProxyRequests off
ProxyPreserveHost On
diff --git a/lib/primer/open_project/forms/storage_manual_project_folder_selection.html.erb b/lib/primer/open_project/forms/storage_manual_project_folder_selection.html.erb
index 066eaa1d622..4f226ff8826 100644
--- a/lib/primer/open_project/forms/storage_manual_project_folder_selection.html.erb
+++ b/lib/primer/open_project/forms/storage_manual_project_folder_selection.html.erb
@@ -7,7 +7,7 @@
display: :inline_block,
data: @select_folder_button_options.delete(:data) { {} }
)) do |button|
- button.with_leading_visual_icon(icon: 'file-directory')
+ button.with_leading_visual_icon(icon: "file-directory")
I18n.t(:"storages.buttons.select_folder")
end
%>
@@ -22,7 +22,7 @@
) { I18n.t(:"storages.label_no_selected_folder") }
%>
<% else %>
- <%= angular_component_tag 'opce-storage-login-button',
+ <%= angular_component_tag "opce-storage-login-button",
data: @storage_login_button_options.delete(:data) { {} },
inputs: @storage_login_button_options.delete(:inputs) { {} } %>
<% end %>
diff --git a/lookbook/docs/styles/deprecated/02-op-icons.md.erb b/lookbook/docs/styles/deprecated/02-op-icons.md.erb
index 61e818a5027..492ed472a54 100644
--- a/lookbook/docs/styles/deprecated/02-op-icons.md.erb
+++ b/lookbook/docs/styles/deprecated/02-op-icons.md.erb
@@ -41,8 +41,8 @@ For use outside primer pages, use these icon fonts
</style>
<div class="icons">
-<% Dir[Rails.root.join('frontend/src/app/spot/icon-font/icons/*').to_s].each do |path| %>
-<% name = File.basename(path, '.*') %>
+<% Dir[Rails.root.join("frontend/src/app/spot/icon-font/icons/*").to_s].each do |path| %>
+<% name = File.basename(path, ".*") %>
<div class="icons--icon">
<div class="icons--preview">
<i class="icon icon-<%= name %>"></i>
diff --git a/lookbook/docs/styles/deprecated/03-colors.md.erb b/lookbook/docs/styles/deprecated/03-colors.md.erb
index 547e5416614..dcec549868f 100644
--- a/lookbook/docs/styles/deprecated/03-colors.md.erb
+++ b/lookbook/docs/styles/deprecated/03-colors.md.erb
@@ -186,8 +186,8 @@ This colour indicates that the requested user action was successful. It should b
<div class="colors">
<%
-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 = 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|
%>
<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 522aae160c2..ed6c04aedfc 100644
--- a/lookbook/docs/styles/deprecated/04-spacings.md.erb
+++ b/lookbook/docs/styles/deprecated/04-spacings.md.erb
@@ -6,10 +6,10 @@ title: Spacings
<div class="spacings">
<%
-tokens = JSON.parse File.read(Rails.root.join('frontend/src/app/spot/styles/tokens/dist/tokens.json'))
+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-') }
- .sort_by { |k, | k.split('-')[2].gsub('_', '.').to_f }
+ .select { |k, v| k.start_with?("spot-spacing-") }
+ .sort_by { |k, | k.split("-")[2].gsub("_", ".").to_f }
.each do |name, value|
%>
<div class="spacings--spacing">
diff --git a/lookbook/docs/styles/deprecated/05-shadows.md.erb b/lookbook/docs/styles/deprecated/05-shadows.md.erb
index 19831d8a435..ba7ff4f6410 100644
--- a/lookbook/docs/styles/deprecated/05-shadows.md.erb
+++ b/lookbook/docs/styles/deprecated/05-shadows.md.erb
@@ -13,12 +13,12 @@ We use different shadows to communicate depth and allow the user to intuitively
Our shadows definitions divided between Light and Hard and three levels of elevation. The shadow is always based on a black #000000 transparency level, a X and Y px value and a spread px value.
<%
-cols = ['Low', 'Mid', 'High']
-rows = ['Light', 'Hard']
-tokens = JSON.parse File.read(Rails.root.join('frontend/src/app/spot/styles/tokens/dist/tokens.json'))
+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-') }
- .sort_by { |k, | k.split('-')[2].gsub('_', '.').to_f }
+ .select { |k, v| k.start_with?("spot-shadow-") }
+ .sort_by { |k, | k.split("-")[2].gsub("_", ".").to_f }
.to_h
%>
diff --git a/lookbook/previews/open_project/common/autocomplete_preview/color.html.erb b/lookbook/previews/open_project/common/autocomplete_preview/color.html.erb
index c182893daf9..2b569dd9564 100644
--- a/lookbook/previews/open_project/common/autocomplete_preview/color.html.erb
+++ b/lookbook/previews/open_project/common/autocomplete_preview/color.html.erb
@@ -9,7 +9,7 @@
f.color_select_list(
name: :id,
label: Color.model_name.human,
- caption: 'Caption: The dropdown might be offset due to the iFrame around it. This will not happen in production.'
+ caption: "Caption: The dropdown might be offset due to the iFrame around it. This will not happen in production."
)
end
end
@@ -19,7 +19,7 @@
<%= primer_form_with(
model:,
- url: '/abc',
- id: 'asdf') do |f|
+ url: "/abc",
+ id: "asdf") do |f|
render(the_form.new(f))
end %>
diff --git a/lookbook/previews/open_project/common/autocomplete_preview/decorated.html.erb b/lookbook/previews/open_project/common/autocomplete_preview/decorated.html.erb
index 35e9b033ba4..8371cf346f2 100644
--- a/lookbook/previews/open_project/common/autocomplete_preview/decorated.html.erb
+++ b/lookbook/previews/open_project/common/autocomplete_preview/decorated.html.erb
@@ -5,8 +5,8 @@
name: :foobar,
required: true,
include_blank: false,
- label: 'Foobar',
- caption: 'Caption: The dropdown might be offset due to the iFrame around it. This will not happen in production.',
+ label: "Foobar",
+ caption: "Caption: The dropdown might be offset due to the iFrame around it. This will not happen in production.",
autocomplete_options: {
multiple: false,
decorated: true,
@@ -32,7 +32,7 @@
%>
<%= primer_form_with(
- url: '/abc',
- id: 'asdf') do |f|
+ url: "/abc",
+ id: "asdf") do |f|
render(the_form.new(f))
end %>
diff --git a/lookbook/previews/open_project/common/autocomplete_preview/project.html.erb b/lookbook/previews/open_project/common/autocomplete_preview/project.html.erb
index 9f30b08739e..ae85675aed3 100644
--- a/lookbook/previews/open_project/common/autocomplete_preview/project.html.erb
+++ b/lookbook/previews/open_project/common/autocomplete_preview/project.html.erb
@@ -8,7 +8,7 @@
autocomplete_options: {
openDirectly: false,
focusDirectly: false,
- dropdownPosition: 'bottom',
+ dropdownPosition: "bottom",
disabledProjects: Project.visible.take(10).pluck(:id).to_h { |id| [id, "Disabled reason!"] }
}
)
@@ -20,7 +20,7 @@
<%= primer_form_with(
model:,
- url: '/abc',
- id: 'asdf') do |f|
+ url: "/abc",
+ id: "asdf") do |f|
render(the_form.new(f))
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 98fdec76242..896168682f2 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
@@ -9,7 +9,7 @@
with_search_icon: true,
openDirectly: false,
focusDirectly: false,
- dropdownPosition: 'bottom',
+ dropdownPosition: "bottom",
disabledProjects: Project.visible.take(10).pluck(:id).to_h { |id| [id, "Disabled reason!"] },
}
)
@@ -21,7 +21,7 @@
<%= primer_form_with(
model:,
- url: '/abc',
- id: 'asdf') do |f|
+ url: "/abc",
+ id: "asdf") do |f|
render(the_form.new(f))
end %>
diff --git a/lookbook/previews/open_project/common/autocomplete_preview/work_package.html.erb b/lookbook/previews/open_project/common/autocomplete_preview/work_package.html.erb
index 93e49f9cdd9..36acea9a251 100644
--- a/lookbook/previews/open_project/common/autocomplete_preview/work_package.html.erb
+++ b/lookbook/previews/open_project/common/autocomplete_preview/work_package.html.erb
@@ -6,11 +6,11 @@
label: WorkPackage.model_name.human,
visually_hide_label: true,
autocomplete_options: {
- resource: 'work_packages',
- searchKey: 'subjectOrId',
+ resource: "work_packages",
+ searchKey: "subjectOrId",
openDirectly: false,
focusDirectly: false,
- dropdownPosition: 'bottom'
+ dropdownPosition: "bottom"
}
)
end
@@ -21,7 +21,7 @@
<%= primer_form_with(
model:,
- url: '/abc',
- id: 'asdf') do |f|
+ url: "/abc",
+ id: "asdf") do |f|
render(the_form.new(f))
end %>
diff --git a/lookbook/previews/open_project/common/datepicker_preview/range.html.erb b/lookbook/previews/open_project/common/datepicker_preview/range.html.erb
index ca2e4295e87..75e82e0f85f 100644
--- a/lookbook/previews/open_project/common/datepicker_preview/range.html.erb
+++ b/lookbook/previews/open_project/common/datepicker_preview/range.html.erb
@@ -3,7 +3,7 @@
form do |query_form|
query_form.range_date_picker(
name: :date,
- label: 'Date',
+ label: "Date",
leading_visual: { icon: },
value: value,
datepicker_options: { inDialog: in_dialog }
@@ -11,7 +11,7 @@
query_form.range_date_picker(
name: :date,
- label: 'Date',
+ label: "Date",
leading_visual: { icon: },
value: value,
datepicker_options: { inDialog: in_dialog }
@@ -19,7 +19,7 @@
query_form.range_date_picker(
name: :date,
- label: 'Date',
+ label: "Date",
leading_visual: { icon: },
value: value,
datepicker_options: { inDialog: in_dialog }
@@ -38,7 +38,7 @@
<%= render(Primer::Alpha::Dialog::Body.new) do
primer_form_with(
- url: '/abc',
+ url: "/abc",
id: "my-form") do |f|
render(the_form.new(f))
end
@@ -51,7 +51,7 @@
<% end %>
<% else %>
<%= primer_form_with(
- url: '/abc',
+ url: "/abc",
id: "my-form") do |f|
render(the_form.new(f))
end %>
diff --git a/lookbook/previews/open_project/common/datepicker_preview/single.html.erb b/lookbook/previews/open_project/common/datepicker_preview/single.html.erb
index 8f5f34ef276..86e7c85a9c8 100644
--- a/lookbook/previews/open_project/common/datepicker_preview/single.html.erb
+++ b/lookbook/previews/open_project/common/datepicker_preview/single.html.erb
@@ -3,7 +3,7 @@
form do |query_form|
query_form.single_date_picker(
name: :date,
- label: 'Date',
+ label: "Date",
leading_visual: { icon: },
value: value.iso8601,
datepicker_options: { inDialog: in_dialog }
@@ -11,7 +11,7 @@
query_form.single_date_picker(
name: :date,
- label: 'Date',
+ label: "Date",
leading_visual: { icon: },
value: value.iso8601,
datepicker_options: { inDialog: in_dialog }
@@ -19,7 +19,7 @@
query_form.single_date_picker(
name: :date,
- label: 'Date',
+ label: "Date",
leading_visual: { icon: },
value: value.iso8601,
datepicker_options: { inDialog: in_dialog }
@@ -38,7 +38,7 @@
<%= render(Primer::Alpha::Dialog::Body.new) do
primer_form_with(
- url: '/abc',
+ url: "/abc",
id: "my-form") do |f|
render(the_form.new(f))
end
@@ -51,7 +51,7 @@
<% end %>
<% else %>
<%= primer_form_with(
- url: '/abc',
+ url: "/abc",
id: "my-form") do |f|
render(the_form.new(f))
end %>
diff --git a/lookbook/previews/open_project/common/dialog_preview/confirm_deletion.html.erb b/lookbook/previews/open_project/common/dialog_preview/confirm_deletion.html.erb
index 881f19597cd..bbb8c730f2b 100644
--- a/lookbook/previews/open_project/common/dialog_preview/confirm_deletion.html.erb
+++ b/lookbook/previews/open_project/common/dialog_preview/confirm_deletion.html.erb
@@ -7,9 +7,9 @@
<% d.with_body { message } %>
<% d.with_footer do %>
- <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { 'Cancel' } %>
- <%= form_with(url: 'some_url', method: :delete) do %>
- <%= render(Primer::Beta::Button.new(scheme: :danger, type: :submit)) { 'Confirm' } %>
+ <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { "Cancel" } %>
+ <%= form_with(url: "some_url", method: :delete) do %>
+ <%= render(Primer::Beta::Button.new(scheme: :danger, type: :submit)) { "Confirm" } %>
<% end %>
<% end %>
<% end %>
diff --git a/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erb b/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erb
index 2c601e76452..59c356db0c0 100644
--- a/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erb
+++ b/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erb
@@ -7,9 +7,9 @@
<% d.with_body { message } %>
<% d.with_footer do %>
- <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { 'Cancel' } %>
- <%= form_with(url: 'some_url', method: :post) do %>
- <%= render(Primer::Beta::Button.new(scheme: :primary, type: :submit)) { 'Confirm' } %>
+ <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { "Cancel" } %>
+ <%= form_with(url: "some_url", method: :post) do %>
+ <%= render(Primer::Beta::Button.new(scheme: :primary, type: :submit)) { "Confirm" } %>
<% end %>
<% end %>
<% end %>
diff --git a/lookbook/previews/open_project/common/dialog_preview/form.html.erb b/lookbook/previews/open_project/common/dialog_preview/form.html.erb
index 3245dd306a9..585e37b4a7d 100644
--- a/lookbook/previews/open_project/common/dialog_preview/form.html.erb
+++ b/lookbook/previews/open_project/common/dialog_preview/form.html.erb
@@ -3,33 +3,33 @@
form do |query_form|
query_form.group do |group|
group.text_field(
- name: 'a',
- label: 'The first field'
+ name: "a",
+ label: "The first field"
)
group.text_field(
- name: 'b',
- label: 'The second field'
+ name: "b",
+ label: "The second field"
)
group.text_field(
- name: 'c',
- label: 'The third field'
+ name: "c",
+ label: "The third field"
)
group.text_field(
- name: 'd',
- label: 'The fourth field'
+ name: "d",
+ label: "The fourth field"
)
group.text_field(
- name: 'e',
- label: 'The fifth field'
+ name: "e",
+ label: "The fifth field"
)
group.text_field(
- name: 'f',
- label: 'The sixth field'
+ name: "f",
+ label: "The sixth field"
)
end
end
@@ -44,7 +44,7 @@
<%= render(Primer::Alpha::Dialog::Body.new) do
primer_form_with(
- url: '/abc',
+ url: "/abc",
id: form_id) do |f|
render(the_form.new(f))
end
diff --git a/lookbook/previews/open_project/common/rich_text_preview/default.html.erb b/lookbook/previews/open_project/common/rich_text_preview/default.html.erb
index fee08aecc9a..fd39f526191 100644
--- a/lookbook/previews/open_project/common/rich_text_preview/default.html.erb
+++ b/lookbook/previews/open_project/common/rich_text_preview/default.html.erb
@@ -16,7 +16,7 @@
<%= primer_form_with(
model:,
- url: '/abc',
- id: 'asdf') do |f|
+ url: "/abc",
+ id: "asdf") do |f|
render(the_form.new(f))
end %>
diff --git a/lookbook/previews/open_project/deprecated/attribute_group_component_preview/default.html.erb b/lookbook/previews/open_project/deprecated/attribute_group_component_preview/default.html.erb
index d4456278600..14b2d1de52c 100644
--- a/lookbook/previews/open_project/deprecated/attribute_group_component_preview/default.html.erb
+++ b/lookbook/previews/open_project/deprecated/attribute_group_component_preview/default.html.erb
@@ -1,12 +1,12 @@
<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|
component.with_header(title: "A Title")
- component.with_attribute(key: 'Some key',
- value: 'A value')
+ component.with_attribute(key: "Some key",
+ value: "A value")
- component.with_attribute(key: 'With icons',
- value: op_icon('icon-checkmark'))
+ component.with_attribute(key: "With icons",
+ value: op_icon("icon-checkmark"))
- component.with_attribute(key: 'With HTML',
- value: link_to('OpenProject homepage', 'https://www.openproject.org'))
+ component.with_attribute(key: "With HTML",
+ value: link_to("OpenProject homepage", "https://www.openproject.org"))
end %>
diff --git a/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb b/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb
index c180d45c897..f4ab4b3798a 100644
--- a/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb
+++ b/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb
@@ -153,7 +153,6 @@ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
</form>
</section>
-
<section class="form--section">
<h3 class="form--section-title">Narrow select</h3>
@@ -161,7 +160,6 @@ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
In most cases it is recommended to apply a width to the container element, but
in certain circumstances the `-narrow` variant may be preferable.</p>
-
<select class="form--select -narrow">
<option>one</option>
<option>two</option>
@@ -176,8 +174,6 @@ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
</section>
-
-
<section class="form--section">
<h3 class="form--section-title">Checkbox matrices</h3>
<table class="form--matrix">
@@ -226,7 +222,6 @@ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
</table>
</section>
-
<section class="form--section">
<h3 class="form--section-title">Inline buttons</h3>
diff --git a/lookbook/previews/open_project/progress/modal_preview/status_based.html.erb b/lookbook/previews/open_project/progress/modal_preview/status_based.html.erb
index 1ffc6c8db93..1a1b4b32096 100644
--- a/lookbook/previews/open_project/progress/modal_preview/status_based.html.erb
+++ b/lookbook/previews/open_project/progress/modal_preview/status_based.html.erb
@@ -8,7 +8,7 @@
<!--
Since we cannot render Angular components in the lookbook, we render the view_component for the close button here
<svg x-icon size="small" class="spot-drop-modal--header-close-button-icon"></svg>-->
- <%= render(Primer::Beta::Octicon.new(icon: :x, classes: 'spot-drop-modal--header-close-button-icon')) %>
+ <%= render(Primer::Beta::Octicon.new(icon: :x, classes: "spot-drop-modal--header-close-button-icon")) %>
</button>
</div>
<div class="spot-drop-modal--content">
diff --git a/lookbook/previews/open_project/progress/modal_preview/work_based.html.erb b/lookbook/previews/open_project/progress/modal_preview/work_based.html.erb
index 36f44f2bfea..f83b2d97fcd 100644
--- a/lookbook/previews/open_project/progress/modal_preview/work_based.html.erb
+++ b/lookbook/previews/open_project/progress/modal_preview/work_based.html.erb
@@ -8,7 +8,7 @@
<!--
Since we cannot render Angular components in the lookbook, we render the view_component for the close button here
<svg x-icon size="small" class="spot-drop-modal--header-close-button-icon"></svg>-->
- <%= render(Primer::Beta::Octicon.new(icon: :x, classes: 'spot-drop-modal--header-close-button-icon')) %>
+ <%= render(Primer::Beta::Octicon.new(icon: :x, classes: "spot-drop-modal--header-close-button-icon")) %>
</button>
</div>
<div class="spot-drop-modal--content">
diff --git a/lookbook/previews/patterns/layout_preview/default.html.erb b/lookbook/previews/patterns/layout_preview/default.html.erb
index e11b3f0de6d..8e72eb9e5e4 100644
--- a/lookbook/previews/patterns/layout_preview/default.html.erb
+++ b/lookbook/previews/patterns/layout_preview/default.html.erb
@@ -12,8 +12,8 @@
"Attached files are available to all meeting participants. You can also drag and drop these into agenda item notes."
end
- section.with_action_icon(icon: :pencil, 'aria-label': 'Edit')
- section.with_footer_button(tag: :a, href: '#') do |button|
+ section.with_action_icon(icon: :pencil, 'aria-label': "Edit")
+ section.with_footer_button(tag: :a, href: "#") do |button|
button.with_leading_visual_icon(icon: :pencil)
"Additional action"
end
@@ -23,7 +23,7 @@
panel.with_section do |section|
section.with_title { "Without counter" }
- section.with_action_icon(icon: :gear, 'aria-label': 'Manage')
+ section.with_action_icon(icon: :gear, 'aria-label': "Manage")
"Some more content here"
end
diff --git a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb b/modules/auth_plugins/app/views/hooks/login/_providers.html.erb
index 0b27df729c5..9819934c779 100644
--- a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb
+++ b/modules/auth_plugins/app/views/hooks/login/_providers.html.erb
@@ -31,13 +31,13 @@ See COPYRIGHT and LICENSE files for more details.
<%
opts = { script_name: OpenProject::Configuration.rails_relative_url_root }
- if params['back_url']
- opts[:origin] = params['back_url']
+ if params["back_url"]
+ opts[:origin] = params["back_url"]
end
%>
<a
href="<%= omni_auth_start_path(provider[:name], opts) %>"
- class="auth-provider auth-provider-<%= provider[:name] %> <%= provider[:icon] ? 'auth-provider--imaged' : '' %> button">
+ class="auth-provider auth-provider-<%= provider[:name] %> <%= provider[:icon] ? "auth-provider--imaged" : "" %> button">
<span class="auth-provider-name"><%= provider[:display_name] || provider[:name] %></span>
</a>
<% end %>
diff --git a/modules/auth_saml/app/components/saml/providers/info_component.html.erb b/modules/auth_saml/app/components/saml/providers/info_component.html.erb
index df7bb1f83de..23573019f0b 100644
--- a/modules/auth_saml/app/components/saml/providers/info_component.html.erb
+++ b/modules/auth_saml/app/components/saml/providers/info_component.html.erb
@@ -1,3 +1,3 @@
-<%= render(Primer::Beta::Heading.new(tag: :h4)) { I18n.t('saml.info.title') } %>
+<%= render(Primer::Beta::Heading.new(tag: :h4)) { I18n.t("saml.info.title") } %>
-<%= render(Primer::Beta::Text.new) { I18n.t('saml.info.description') } %>
+<%= render(Primer::Beta::Text.new) { I18n.t("saml.info.description") } %>
diff --git a/modules/auth_saml/app/components/saml/providers/sections/show_component.html.erb b/modules/auth_saml/app/components/saml/providers/sections/show_component.html.erb
index a747fa58d42..56d6f3d0a63 100644
--- a/modules/auth_saml/app/components/saml/providers/sections/show_component.html.erb
+++ b/modules/auth_saml/app/components/saml/providers/sections/show_component.html.erb
@@ -1,5 +1,5 @@
<%=
- grid_layout('op-saml-view-row',
+ grid_layout("op-saml-view-row",
tag: :div,
test_selector: "saml_provider_#{@target_state}",
align_items: :center) do |grid|
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 d2418fae63e..e373be01ced 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
@@ -34,7 +34,7 @@
end
component.with_row(scheme: :neutral, color: :muted) do
- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('saml.providers.label_automatic_configuration') }
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.label_automatic_configuration") }
end
component.with_row(scheme: :default) do
@@ -57,7 +57,7 @@
end
component.with_row(scheme: :neutral, color: :muted) do
- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('saml.providers.section_headers.configuration') }
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.section_headers.configuration") }
end
component.with_row(scheme: :default) do
@@ -106,7 +106,7 @@
end
component.with_row(scheme: :neutral, color: :muted) do
- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('saml.providers.section_headers.attributes') }
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.section_headers.attributes") }
end
component.with_row(scheme: :default) do
diff --git a/modules/auth_saml/app/views/saml/providers/_form.html.erb b/modules/auth_saml/app/views/saml/providers/_form.html.erb
index 82d9bf2e385..037dc7ba183 100644
--- a/modules/auth_saml/app/views/saml/providers/_form.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/_form.html.erb
@@ -1,105 +1,105 @@
<fieldset class="form--fieldset">
<div class="form--field -required">
- <%= f.text_field :name, required: true, disable: f.object.persisted?, container_class: '-middle' %>
+ <%= f.text_field :name, required: true, disable: f.object.persisted?, container_class: "-middle" %>
</div>
<div class="form--field -required">
- <%= f.text_field :display_name, required: true, container_class: '-middle' %>
+ <%= f.text_field :display_name, required: true, container_class: "-middle" %>
</div>
<div class="form--field">
- <%= f.text_field :sp_entity_id, required: false, container_class: '-middle' %>
+ <%= f.text_field :sp_entity_id, required: false, container_class: "-middle" %>
</div>
<div class="form--field -required">
- <%= f.text_field :idp_sso_service_url, required: true, container_class: '-xwide' %>
+ <%= f.text_field :idp_sso_service_url, required: true, container_class: "-xwide" %>
</div>
<div class="form--field">
- <%= f.text_field :idp_slo_service_url, required: false, container_class: '-xwide' %>
+ <%= f.text_field :idp_slo_service_url, required: false, container_class: "-xwide" %>
</div>
<div class="form--field">
<%= f.text_field :idp_cert_fingerprint,
required: false,
- container_class: '-xwide' %>
+ container_class: "-xwide" %>
</div>
<div class="form--field">
- <%= f.text_area :idp_cert, required: false, rows: 10, columns: 20, container_class: '-xwide' %>
+ <%= f.text_area :idp_cert, required: false, rows: 10, columns: 20, container_class: "-xwide" %>
</div>
<div class="form--field">
- <%= f.check_box :limit_self_registration, required: false, container_class: '-middle' %>
+ <%= f.check_box :limit_self_registration, required: false, container_class: "-middle" %>
<div class="form--field-instructions">
- <%= I18n.t('openid_connect.setting_instructions.limit_self_registration') %>
+ <%= I18n.t("openid_connect.setting_instructions.limit_self_registration") %>
</div>
</div>
<div class="form--field">
- <%= f.text_field :name_identifier_format, required: false, container_class: '-xwide' %>
+ <%= f.text_field :name_identifier_format, required: false, container_class: "-xwide" %>
</div>
</fieldset>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= t('saml.providers.attribute_mapping') %></legend>
- <p><%= t 'saml.providers.attribute_mapping_text' %></p>
+ <legend class="form--fieldset-legend"><%= t("saml.providers.attribute_mapping") %></legend>
+ <p><%= t "saml.providers.attribute_mapping_text" %></p>
<div class="form--field -required">
- <%= f.text_field 'login_mapping',
+ <%= f.text_field "login_mapping",
required: true,
size: 20,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.login_map') %>
+ <%= t("ldap_auth_sources.attribute_texts.login_map") %>
</span>
</div>
<div class="form--field">
- <%= f.text_field 'first_name_mapping',
+ <%= f.text_field "first_name_mapping",
size: 20,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.generic_map', attribute: ApplicationRecord.human_attribute_name(:firstname)) %>
+ <%= t("ldap_auth_sources.attribute_texts.generic_map", attribute: ApplicationRecord.human_attribute_name(:firstname)) %>
</span>
</div>
<div class="form--field">
- <%= f.text_field 'last_name_mapping',
+ <%= f.text_field "last_name_mapping",
size: 20,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.generic_map', attribute: ApplicationRecord.human_attribute_name(:lastname)) %>
+ <%= t("ldap_auth_sources.attribute_texts.generic_map", attribute: ApplicationRecord.human_attribute_name(:lastname)) %>
</span>
</div>
<div class="form--field">
- <%= f.text_field 'email_mapping',
+ <%= f.text_field "email_mapping",
size: 20,
- placeholder: 'mail',
- container_class: '-middle' %>
+ placeholder: "mail",
+ container_class: "-middle" %>
<span class="form--field-instructions">
- <%= t('ldap_auth_sources.attribute_texts.generic_map', attribute: ApplicationRecord.human_attribute_name(:mail)) %>
+ <%= t("ldap_auth_sources.attribute_texts.generic_map", attribute: ApplicationRecord.human_attribute_name(:mail)) %>
</span>
</div>
</fieldset>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= t('saml.providers.request_attributes.title') %></legend>
- <p><%= t 'saml.providers.request_attributes.legend' %></p>
+ <legend class="form--fieldset-legend"><%= t("saml.providers.request_attributes.title") %></legend>
+ <p><%= t "saml.providers.request_attributes.legend" %></p>
<% @provider.request_attributes.each do |request| %>
<% base_key = "saml_request_#{request['name']}" %>
<div class="form--field -required">
- <%= styled_label_tag "#{base_key}_name", t('saml.providers.requested_attributes.name') %>
+ <%= styled_label_tag "#{base_key}_name", t("saml.providers.requested_attributes.name") %>
<div class="form--field-container">
- <%= text_field_tag 'saml_provider[request_attributes][][name]',
- request['name'],
+ <%= text_field_tag "saml_provider[request_attributes][][name]",
+ request["name"],
id: "#{base_key}_name" %>
</div>
</div>
<div class="form--field -required">
- <%= styled_label_tag "#{base_key}_format", t('saml.providers.requested_attributes.format') %>
+ <%= styled_label_tag "#{base_key}_format", t("saml.providers.requested_attributes.format") %>
<div class="form--field-container">
- <%= text_field_tag 'saml_provider[request_attributes][][name_format]',
- request['name_format'],
+ <%= text_field_tag "saml_provider[request_attributes][][name_format]",
+ request["name_format"],
id: "#{base_key}_format" %>
</div>
</div>
diff --git a/modules/auth_saml/app/views/saml/providers/confirm_destroy.html.erb b/modules/auth_saml/app/views/saml/providers/confirm_destroy.html.erb
index a171a452953..1c37a2e87f0 100644
--- a/modules/auth_saml/app/views/saml/providers/confirm_destroy.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/confirm_destroy.html.erb
@@ -27,38 +27,38 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= styled_form_tag(saml_provider_path(@provider),
- class: 'danger-zone',
+ class: "danger-zone",
method: :delete) do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('saml.delete_title') %>
+ <%= t("saml.delete_title") %>
</h3>
<p>
- <%= t('provider.delete_warning.provider', name: content_tag(:strong, @provider.display_name)).html_safe %>
+ <%= t("provider.delete_warning.provider", name: content_tag(:strong, @provider.display_name)).html_safe %>
</p>
<ul class="mb-3">
- <li> <%= t('provider.delete_warning.delete_result_1') %>
- <li> <%= t('provider.delete_warning.delete_result_user_count', count: @provider.user_count) %>
+ <li> <%= t("provider.delete_warning.delete_result_1") %>
+ <li> <%= t("provider.delete_warning.delete_result_user_count", count: @provider.user_count) %>
<% if Setting.omniauth_direct_login_provider == @provider.slug %>
- <li> <%= t('provider.delete_warning.delete_result_direct') %>
+ <li> <%= t("provider.delete_warning.delete_result_direct") %>
<% end %>
</ul>
<p class="danger-zone--warning">
<span class="icon icon-error"></span>
- <span><%= t('provider.delete_warning.irreversible_notice') %></span>
+ <span><%= t("provider.delete_warning.irreversible_notice") %></span>
</p>
<p>
- <%= t('provider.delete_warning.input_delete_confirmation', name: "<em class=\"danger-zone--expected-value\">#{h(@provider.display_name)}</em>").html_safe %>
+ <%= t("provider.delete_warning.input_delete_confirmation", name: "<em class=\"danger-zone--expected-value\">#{h(@provider.display_name)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<%= text_field_tag :delete_confirmation %>
- <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to saml_providers_path,
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' do %>
+ class: "button -with-icon icon-cancel" do %>
<%= t(:button_cancel) %>
<% end %>
</div>
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 09f47ebefb2..ba85645df5c 100644
--- a/modules/auth_saml/app/views/saml/providers/edit.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/edit.html.erb
@@ -1,4 +1,4 @@
-<% page_title = t('saml.providers.label_edit', name: @provider.display_name) %>
+<% page_title = t("saml.providers.label_edit", name: @provider.display_name) %>
<% html_title(t(:label_administration), page_title) -%>
@@ -6,12 +6,12 @@
<% header.with_title { @provider.display_name } %>
<% header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },
- { href: saml_providers_path, text: t('saml.providers.plural') },
+ { href: saml_providers_path, text: t("saml.providers.plural") },
@provider.display_name]) %>
<% header.with_description do %>
<%= link_translate(
- 'saml.instructions.documentation_link',
+ "saml.instructions.documentation_link",
links: {
docs_url: ::OpenProject::Static::Links[:sysadmin_docs][:saml][:href],
},
diff --git a/modules/auth_saml/app/views/saml/providers/index.html.erb b/modules/auth_saml/app/views/saml/providers/index.html.erb
index b69808fbfb0..08d668488e8 100644
--- a/modules/auth_saml/app/views/saml/providers/index.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/index.html.erb
@@ -1,20 +1,20 @@
-<% html_title t(:label_administration), t('saml.providers.plural') %>
+<% html_title t(:label_administration), t("saml.providers.plural") %>
<%= content_for :content_header do %>
<%= render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('saml.providers.plural') }
+ header.with_title { t("saml.providers.plural") }
header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },
- t('saml.providers.plural')])
+ t("saml.providers.plural")])
end %>
<%= render(Primer::OpenProject::SubHeader.new) do |subheader|
subheader.with_action_button(scheme: :primary,
- aria: { label: I18n.t('saml.providers.label_add_new') },
- title: I18n.t('saml.providers.label_add_new'),
+ aria: { label: I18n.t("saml.providers.label_add_new") },
+ title: I18n.t("saml.providers.label_add_new"),
tag: :a,
href: new_saml_provider_path) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('saml.providers.singular')
+ t("saml.providers.singular")
end
end %>
<% end %>
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 8c66e670f24..da4a8a96bf5 100644
--- a/modules/auth_saml/app/views/saml/providers/new.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/new.html.erb
@@ -1,15 +1,15 @@
-<% html_title(t(:label_administration), t('saml.providers.label_add_new')) -%>
+<% html_title(t(:label_administration), t("saml.providers.label_add_new")) -%>
<%= render(Primer::OpenProject::PageHeader.new) do |header| %>
- <% header.with_title { t('saml.providers.label_add_new') } %>
+ <% header.with_title { t("saml.providers.label_add_new") } %>
<% header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration")},
- { href: saml_providers_path, text: t('saml.providers.plural') },
- t('saml.providers.label_add_new')]) %>
+ { href: saml_providers_path, text: t("saml.providers.plural") },
+ t("saml.providers.label_add_new")]) %>
<% header.with_description do %>
<%= link_translate(
- 'saml.instructions.documentation_link',
+ "saml.instructions.documentation_link",
links: {
docs_url: ::OpenProject::Static::Links[:sysadmin_docs][:saml][:href],
},
diff --git a/modules/auth_saml/app/views/saml/providers/show.html.erb b/modules/auth_saml/app/views/saml/providers/show.html.erb
index 89c532a1a65..fc14df2c213 100644
--- a/modules/auth_saml/app/views/saml/providers/show.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/show.html.erb
@@ -1,10 +1,10 @@
-<% html_title(t(:label_administration), t('saml.providers.plural'), @provider.display_name) -%>
+<% html_title(t(:label_administration), t("saml.providers.plural"), @provider.display_name) -%>
<%= render(Primer::OpenProject::PageHeader.new) do |header| %>
<% header.with_title { @provider.display_name } %>
<% header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },
- { href: saml_providers_path, text: t('saml.providers.plural') },
+ { href: saml_providers_path, text: t("saml.providers.plural") },
@provider.display_name]) %>
<%
diff --git a/modules/auth_saml/app/views/saml/providers/upsale.html.erb b/modules/auth_saml/app/views/saml/providers/upsale.html.erb
index 5a3b6742c1d..176663a7949 100644
--- a/modules/auth_saml/app/views/saml/providers/upsale.html.erb
+++ b/modules/auth_saml/app/views/saml/providers/upsale.html.erb
@@ -1,9 +1,9 @@
-<% html_title(t(:label_administration), t('saml.providers.plural')) -%>
+<% html_title(t(:label_administration), t("saml.providers.plural")) -%>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
- feature_title: t('saml.providers.plural'),
- feature_description: t('saml.providers.upsale.description'),
- feature_reference: 'enterprise-openid-connect',
- feature_image: 'enterprise/open-id-providers.jpg' # TODO
+ feature_title: t("saml.providers.plural"),
+ feature_description: t("saml.providers.upsale.description"),
+ feature_reference: "enterprise-openid-connect",
+ feature_image: "enterprise/open-id-providers.jpg" # TODO
} %>
diff --git a/modules/avatars/app/views/avatars/my/avatar.html.erb b/modules/avatars/app/views/avatars/my/avatar.html.erb
index 9953e63a5a7..da2a32af87f 100644
--- a/modules/avatars/app/views/avatars/my/avatar.html.erb
+++ b/modules/avatars/app/views/avatars/my/avatar.html.erb
@@ -10,6 +10,6 @@
<% @manager = ::OpenProject::Avatars::AvatarManager %>
<% @target_avatar_path = edit_my_avatar_path %>
-<%= form_tag(edit_my_avatar_path, method: :put, name: 'avatar_form', multipart: true) do %>
- <%= render partial: 'avatars/users/avatar' %>
+<%= form_tag(edit_my_avatar_path, method: :put, name: "avatar_form", multipart: true) do %>
+ <%= render partial: "avatars/users/avatar" %>
<% end %>
diff --git a/modules/avatars/app/views/avatars/users/_avatar.html.erb b/modules/avatars/app/views/avatars/users/_avatar.html.erb
index 93b5c01f27e..577e56f3035 100644
--- a/modules/avatars/app/views/avatars/users/_avatar.html.erb
+++ b/modules/avatars/app/views/avatars/users/_avatar.html.erb
@@ -1,8 +1,8 @@
<% @manager = ::OpenProject::Avatars::AvatarManager %>
<% if @manager.gravatar_enabled? %>
- <%= render partial: 'avatars/users/gravatars' %>
+ <%= render partial: "avatars/users/gravatars" %>
<% end %>
<% if @manager.local_avatars_enabled? %>
- <%= render partial: 'avatars/users/local_avatars' %>
+ <%= render partial: "avatars/users/local_avatars" %>
<% end %>
diff --git a/modules/avatars/app/views/avatars/users/_avatar_tab.html.erb b/modules/avatars/app/views/avatars/users/_avatar_tab.html.erb
index 344a246dd5a..2da01640a9d 100644
--- a/modules/avatars/app/views/avatars/users/_avatar_tab.html.erb
+++ b/modules/avatars/app/views/avatars/users/_avatar_tab.html.erb
@@ -1,5 +1,5 @@
<% @manager = ::OpenProject::Avatars::AvatarManager %>
<% @target_avatar_path = edit_user_avatar_path(@user) %>
-<%= form_tag(edit_user_avatar_path(@user), method: :put, name: 'avatar_form', multipart: true) do %>
- <%= render partial: 'avatars/users/avatar' %>
+<%= form_tag(edit_user_avatar_path(@user), method: :put, name: "avatar_form", multipart: true) do %>
+ <%= render partial: "avatars/users/avatar" %>
<% end %>
diff --git a/modules/avatars/app/views/avatars/users/_gravatars.html.erb b/modules/avatars/app/views/avatars/users/_gravatars.html.erb
index b617baf3783..db817e81675 100644
--- a/modules/avatars/app/views/avatars/users/_gravatars.html.erb
+++ b/modules/avatars/app/views/avatars/users/_gravatars.html.erb
@@ -1,7 +1,7 @@
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend" title="<%= t 'avatars.label_gravatar' %>"><%= t 'avatars.label_gravatar' %></legend>
+ <legend class="form--fieldset-legend" title="<%= t "avatars.label_gravatar" %>"><%= t "avatars.label_gravatar" %></legend>
<p>
- <%= t 'avatars.text_your_current_gravatar' %>
+ <%= t "avatars.text_your_current_gravatar" %>
</p>
<div class="avatars--current-gravatar">
<%= avatar @user %>
@@ -9,8 +9,8 @@
<% if @user == current_user %>
<p>
- <strong><%= t 'note' %></strong>:
- <%= t('avatars.text_change_gravatar_html', gravatar_url: link_to('gravatar.com', 'https://www.gravatar.com')).html_safe %>
+ <strong><%= t "note" %></strong>:
+ <%= t("avatars.text_change_gravatar_html", gravatar_url: link_to("gravatar.com", "https://www.gravatar.com")).html_safe %>
</p>
<% end %>
</fieldset>
diff --git a/modules/avatars/app/views/avatars/users/_local_avatars.html.erb b/modules/avatars/app/views/avatars/users/_local_avatars.html.erb
index 0d348ce4b17..f5c7444444b 100644
--- a/modules/avatars/app/views/avatars/users/_local_avatars.html.erb
+++ b/modules/avatars/app/views/avatars/users/_local_avatars.html.erb
@@ -1,10 +1,10 @@
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend" title="<%= t 'avatars.label_local_avatar' %>"><%= t 'avatars.label_local_avatar' %></legend>
+ <legend class="form--fieldset-legend" title="<%= t "avatars.label_local_avatar" %>"><%= t "avatars.label_local_avatar" %></legend>
<p>
- <%= t 'avatars.text_your_local_avatar' %>
+ <%= t "avatars.text_your_local_avatar" %>
<% if @manager.gravatar_enabled? %>
<br>
- <%= t 'avatars.text_local_avatar_over_gravatar' %>
+ <%= t "avatars.text_local_avatar_over_gravatar" %>
<% end %>
</p>
<div class="form--field">
@@ -24,7 +24,7 @@
<%= link_to t(:button_delete),
@target_avatar_path,
method: :delete,
- class: 'avatars--local-avatar-delete-link',
+ class: "avatars--local-avatar-delete-link",
data: { confirm: t(:are_you_sure_delete_avatar) } %>
<% end %>
</div>
diff --git a/modules/avatars/app/views/settings/_openproject_avatars.html.erb b/modules/avatars/app/views/settings/_openproject_avatars.html.erb
index e8cda83fb9c..e35b98e13df 100644
--- a/modules/avatars/app/views/settings/_openproject_avatars.html.erb
+++ b/modules/avatars/app/views/settings/_openproject_avatars.html.erb
@@ -1,24 +1,24 @@
<% manager = ::OpenProject::Avatars::AvatarManager %>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend" title="<%= t 'avatars.label_gravatar' %>"><%= t 'avatars.label_gravatar' %></legend>
+ <legend class="form--fieldset-legend" title="<%= t "avatars.label_gravatar" %>"><%= t "avatars.label_gravatar" %></legend>
<div class="form--field">
- <%= styled_label_tag 'settings-enable-gravatars', t('avatars.settings.enable_gravatars') %>
- <%= hidden_field_tag 'settings[enable_gravatars]', 0 %>
+ <%= styled_label_tag "settings-enable-gravatars", t("avatars.settings.enable_gravatars") %>
+ <%= hidden_field_tag "settings[enable_gravatars]", 0 %>
<div class="form--field-container">
- <%= styled_check_box_tag 'settings[enable_gravatars]', 1, manager.gravatar_enabled?, container_class: '-xslim', id: 'settings-enable-gravatars' %>
+ <%= styled_check_box_tag "settings[enable_gravatars]", 1, manager.gravatar_enabled?, container_class: "-xslim", id: "settings-enable-gravatars" %>
</div>
</div>
</fieldset>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend" title="<%= t 'avatars.label_local_avatar' %>"><%= t 'avatars.label_local_avatar' %></legend>
+ <legend class="form--fieldset-legend" title="<%= t "avatars.label_local_avatar" %>"><%= t "avatars.label_local_avatar" %></legend>
<div class="form--field">
- <%= styled_label_tag 'settings-enable-local-avatars', t('avatars.settings.enable_local_avatars') %>
- <%= hidden_field_tag 'settings[enable_local_avatars]', 0 %>
+ <%= styled_label_tag "settings-enable-local-avatars", t("avatars.settings.enable_local_avatars") %>
+ <%= hidden_field_tag "settings[enable_local_avatars]", 0 %>
<div class="form--field-container">
- <%= styled_check_box_tag 'settings[enable_local_avatars]', 1, manager.local_avatars_enabled?, container_class: '-xslim', id: 'settings-enable-local-avatars' %>
+ <%= styled_check_box_tag "settings[enable_local_avatars]", 1, manager.local_avatars_enabled?, container_class: "-xslim", id: "settings-enable-local-avatars" %>
</div>
</div>
</fieldset>
diff --git a/modules/backlogs/app/views/backlogs_settings/show.html.erb b/modules/backlogs/app/views/backlogs_settings/show.html.erb
index 07a988d24e7..5d1f681d49c 100644
--- a/modules/backlogs/app/views/backlogs_settings/show.html.erb
+++ b/modules/backlogs/app/views/backlogs_settings/show.html.erb
@@ -37,14 +37,14 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= form_tag(:admin_backlogs_settings, method: :put, name: 'admin_backlogs_form') do %>
+<%= form_tag(:admin_backlogs_settings, method: :put, name: "admin_backlogs_form") do %>
<div class="form--field">
<%= styled_label_tag("settings[story_types]", t(:backlogs_story_type)) %>
<div class="form--field-container">
<%= styled_select_tag("settings[story_types]",
options_from_collection_for_select(Type.all, :id, :name, Story.types),
multiple: true,
- container_class: '-slim') %>
+ container_class: "-slim") %>
</div>
</div>
<div class="form--field">
@@ -52,16 +52,16 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container">
<%= styled_select_tag("settings[task_type]",
options_from_collection_for_select(Type.all, :id, :name, Task.type),
- container_class: '-slim') %>
+ container_class: "-slim") %>
</div>
</div>
<div class="form--field">
<%= styled_label_tag("settings[points_burn_direction]", t(:backlogs_points_burn_direction)) %>
<div class="form--field-container">
<%= styled_select_tag("settings[points_burn_direction]",
- options_for_select([[t(:label_points_burn_up), 'up'], [t(:label_points_burn_down), 'down']],
+ options_for_select([[t(:label_points_burn_up), "up"], [t(:label_points_burn_down), "down"]],
Setting.plugin_openproject_backlogs["points_burn_direction"]),
- container_class: '-slim') %>
+ container_class: "-slim") %>
</div>
</div>
<div class="form--field">
@@ -69,9 +69,9 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container">
<%= styled_text_field_tag("settings[wiki_template]",
Setting.plugin_openproject_backlogs["wiki_template"],
- container_class: '-slim') %>
+ container_class: "-slim") %>
</div>
</div>
- <%= styled_submit_tag t(:button_apply), class: '-primary' %>
+ <%= styled_submit_tag t(:button_apply), class: "-primary" %>
<% end %>
diff --git a/modules/backlogs/app/views/layouts/backlogs.html.erb b/modules/backlogs/app/views/layouts/backlogs.html.erb
index 71a333c97ac..ffabbe11e6f 100644
--- a/modules/backlogs/app/views/layouts/backlogs.html.erb
+++ b/modules/backlogs/app/views/layouts/backlogs.html.erb
@@ -29,12 +29,12 @@ See COPYRIGHT and LICENSE files for more details.
<% content_for :header_tags do %>
<%= nonced_javascript_tag do %>
- <%= render(partial: 'shared/server_variables', formats: [:js]) %>
+ <%= render(partial: "shared/server_variables", formats: [:js]) %>
<% end %>
<%= frontend_stylesheet_link_tag "backlogs.css" %>
<% end %>
-<% content_controller 'backlogs',
+<% content_controller "backlogs",
dynamic: true %>
-<%= render template: 'layouts/base', locals: local_assigns.merge(turbo_opt_out: true) %>
+<%= render template: "layouts/base", locals: local_assigns.merge(turbo_opt_out: true) %>
diff --git a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
index ab0a4eb1b0e..566e906b6b2 100644
--- a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
+++ b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
@@ -29,10 +29,10 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('backlogs.definition_of_done') }
+ header.with_title { t("backlogs.definition_of_done") }
header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },
{ href: project_settings_general_path(@project.id), text: I18n.t(:label_project_settings) },
- t('backlogs.definition_of_done')])
+ t("backlogs.definition_of_done")])
end
%>
@@ -62,7 +62,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
- <%= t('backlogs.work_package_is_closed') %>
+ <%= t("backlogs.work_package_is_closed") %>
</span>
</div>
</div>
@@ -77,8 +77,8 @@ See COPYRIGHT and LICENSE files for more details.
</td>
<td style="text-align:left">
<% checkbox_id = status.name.parameterize.underscore %>
- <%= styled_label_tag checkbox_id, t('backlogs.label_is_done_status', status_name: status.name), class: 'hidden-for-sighted' %>
- <%= (styled_check_box_tag 'statuses[][status_id]', status.id.to_s, @statuses_done_for_project.include?(status.id), id: checkbox_id) %>
+ <%= styled_label_tag checkbox_id, t("backlogs.label_is_done_status", status_name: status.name), class: "hidden-for-sighted" %>
+ <%= (styled_check_box_tag "statuses[][status_id]", status.id.to_s, @statuses_done_for_project.include?(status.id), id: checkbox_id) %>
</td>
</tr>
<% end %>
@@ -87,13 +87,13 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
</div>
<% end %>
-<h3><%= t('backlogs.rebuild_positions') %></h3>
+<h3><%= t("backlogs.rebuild_positions") %></h3>
-<%= styled_form_tag(controller: '/projects/settings/backlogs', action: "rebuild_positions", id: @project) do %>
- <p><%= styled_button_tag t('backlogs.rebuild'), class: '-primary' %></p>
+<%= styled_form_tag(controller: "/projects/settings/backlogs", action: "rebuild_positions", id: @project) do %>
+ <p><%= styled_button_tag t("backlogs.rebuild"), class: "-primary" %></p>
<% end %>
diff --git a/modules/backlogs/app/views/rb_burndown_charts/show.html.erb b/modules/backlogs/app/views/rb_burndown_charts/show.html.erb
index 8e801563c45..3282a40457d 100644
--- a/modules/backlogs/app/views/rb_burndown_charts/show.html.erb
+++ b/modules/backlogs/app/views/rb_burndown_charts/show.html.erb
@@ -32,14 +32,14 @@ See COPYRIGHT and LICENSE files for more details.
</h2>
<% if @burndown %>
- <%= render partial: 'burndown', locals: { div: 'burndown_', burndown: @burndown } %>
+ <%= render partial: "burndown", locals: { div: "burndown_", burndown: @burndown } %>
- <div class="burndown_chart autoscroll" id="burndown_<%= @burndown.sprint_id %>" style="width:900px;height:450px;"><div class="loading"><%= t('backlogs.generating_chart') %></div></div>
+ <div class="burndown_chart autoscroll" id="burndown_<%= @burndown.sprint_id %>" style="width:900px;height:450px;"><div class="loading"><%= t("backlogs.generating_chart") %></div></div>
<fieldset class="burndown_control form--fieldset">
- <legend class="form--fieldset-legend"><%= t('backlogs.chart_options') %></legend>
+ <legend class="form--fieldset-legend"><%= t("backlogs.chart_options") %></legend>
<%= burndown_series_checkboxes(@burndown) %>
</fieldset>
<% else %>
- <%= t('backlogs.no_burndown_data') %>
+ <%= t("backlogs.no_burndown_data") %>
<% end %>
diff --git a/modules/backlogs/app/views/rb_impediments/_impediment.html.erb b/modules/backlogs/app/views/rb_impediments/_impediment.html.erb
index f20b055ef4d..4f630693c9d 100644
--- a/modules/backlogs/app/views/rb_impediments/_impediment.html.erb
+++ b/modules/backlogs/app/views/rb_impediments/_impediment.html.erb
@@ -30,9 +30,9 @@ See COPYRIGHT and LICENSE files for more details.
<%
project ||= impediment.project
prevent_edit = if User.current.allowed_in_project?(:edit_work_packages, project)
- ''
+ ""
else
- 'prevent_edit'
+ "prevent_edit"
end
%>
<div class="model work_package impediment <%= color_contrast_class(impediment) %> <%= prevent_edit %> <%= mark_if_closed(impediment) %><%= color_contrast_class(impediment) %>"
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="t"><%= assignee_name_or_empty(impediment) %></div>
<div class="v"><%= assignee_id_or_empty(impediment) %></div>
</div>
- <div class="remaining_hours editable<%= ' empty' if remaining_hours(impediment).blank? %>"
+ <div class="remaining_hours editable<%= " empty" if remaining_hours(impediment).blank? %>"
fieldname="remaining_hours"
fieldlabel="<%= WorkPackage.human_attribute_name(:remaining_hours) %>"
field_id="<%= impediment.id %>"><%= remaining_hours(impediment) %></div>
diff --git a/modules/backlogs/app/views/rb_master_backlogs/_backlog.html.erb b/modules/backlogs/app/views/rb_master_backlogs/_backlog.html.erb
index 1c90e2a98cd..77d2f4f2970 100644
--- a/modules/backlogs/app/views/rb_master_backlogs/_backlog.html.erb
+++ b/modules/backlogs/app/views/rb_master_backlogs/_backlog.html.erb
@@ -33,14 +33,14 @@ See COPYRIGHT and LICENSE files for more details.
%>
<div class="backlog" id="backlog_<%= backlog.sprint.id %>">
<div class="header">
- <% icon = folded ? 'icon-arrow-down1' : 'icon-arrow-up1' %>
- <div class="toggler <%= icon %> icon-small<%= ' closed' if folded %>"> </div>
+ <% icon = folded ? "icon-arrow-down1" : "icon-arrow-up1" %>
+ <div class="toggler <%= icon %> icon-small<%= " closed" if folded %>"> </div>
<%= render partial: "rb_sprints/sprint", object: backlog.sprint %>
<div class="velocity"> </div>
<%= render_backlog_menu backlog %>
</div>
- <ul class="stories<%= ' closed' if folded %><%= ' prevent_drag' unless editable %>">
- <% reset_cycle 'stories' %>
+ <ul class="stories<%= " closed" if folded %><%= " prevent_drag" unless editable %>">
+ <% reset_cycle "stories" %>
<% backlog.stories.each_with_index do |story, index| %>
<% higher_item = index == 0 ? nil : backlog.stories[index - 1] %>
diff --git a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb b/modules/backlogs/app/views/rb_master_backlogs/index.html.erb
index b52c3481588..77edd7de0c0 100644
--- a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb
+++ b/modules/backlogs/app/views/rb_master_backlogs/index.html.erb
@@ -44,15 +44,15 @@ See COPYRIGHT and LICENSE files for more details.
aria: { label: t(:label_version_new) },
title: t(:label_version_new),
tag: :a,
- href: url_for({ controller: '/versions', action: 'new', project_id: @project })) do |button|
+ href: url_for({ controller: "/versions", action: "new", project_id: @project })) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.version')
+ t("activerecord.models.version")
end
end %>
<% if (@owner_backlogs.empty? && @sprint_backlogs.empty?) %>
<%= no_results_box action_url: new_project_version_path(@project),
- display_action: authorize_for('versions', 'new'),
+ display_action: authorize_for("versions", "new"),
custom_title: t(:backlogs_empty_title),
custom_action_text: t(:backlogs_empty_action_text) %>
<% end %>
@@ -60,10 +60,10 @@ end %>
<div id="rb">
<div id="backlogs_container" class="clearfix">
<div id="owner_backlogs_container">
- <%= render partial: 'backlog', collection: @owner_backlogs %>
+ <%= render partial: "backlog", collection: @owner_backlogs %>
</div>
<div id="sprint_backlogs_container">
- <%= render partial: 'backlog', collection: @sprint_backlogs %>
+ <%= render partial: "backlog", collection: @sprint_backlogs %>
</div>
</div>
diff --git a/modules/backlogs/app/views/rb_sprints/_sprint.html.erb b/modules/backlogs/app/views/rb_sprints/_sprint.html.erb
index e50d04d0add..af87f44bda9 100644
--- a/modules/backlogs/app/views/rb_sprints/_sprint.html.erb
+++ b/modules/backlogs/app/views/rb_sprints/_sprint.html.erb
@@ -55,20 +55,20 @@ See COPYRIGHT and LICENSE files for more details.
<%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
value: sprint.effective_date,
- inputClassNames: 'effective_date editor',
+ inputClassNames: "effective_date editor",
id: "effective_date_#{sprint.id}",
name: :effective_date
} %>
<%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
value: sprint.start_date,
- inputClassNames: 'start_date editor',
+ inputClassNames: "start_date editor",
id: "start_date_#{sprint.id}",
name: :start_date
} %>
<%= text_field_tag :name,
sprint.name,
- class: 'name editor' %>
+ class: "name editor" %>
</div>
<% end %>
diff --git a/modules/backlogs/app/views/rb_stories/_helpers.html.erb b/modules/backlogs/app/views/rb_stories/_helpers.html.erb
index 4cefdc00537..34816d40855 100644
--- a/modules/backlogs/app/views/rb_stories/_helpers.html.erb
+++ b/modules/backlogs/app/views/rb_stories/_helpers.html.erb
@@ -71,5 +71,5 @@ See COPYRIGHT and LICENSE files for more details.
</select>
<div id="story_template">
- <%= render partial: 'rb_stories/story', object: template_story, locals: { project: @project, permission: :add_work_packages } %>
+ <%= render partial: "rb_stories/story", object: template_story, locals: { project: @project, permission: :add_work_packages } %>
</div>
diff --git a/modules/backlogs/app/views/rb_stories/_story.html.erb b/modules/backlogs/app/views/rb_stories/_story.html.erb
index c64968e6483..0f791ab2aac 100644
--- a/modules/backlogs/app/views/rb_stories/_story.html.erb
+++ b/modules/backlogs/app/views/rb_stories/_story.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
other_fields_editable = User.current.allowed_in_project?(permission, project)
status_field_editable = other_fields_editable || User.current.allowed_in_project?(:change_work_package_status, project)
%>
-<li class="model story <%= mark_if_closed(story) %> <%= cycle('odd', 'even', name: "stories") %>" id="<%= story_html_id_or_empty(story) %>">
+<li class="model story <%= mark_if_closed(story) %> <%= cycle("odd", "even", name: "stories") %>" id="<%= story_html_id_or_empty(story) %>">
<div class="id">
<div class="t"><%= work_package_link_or_empty(story) %></div>
<div class="v"><%= id_or_empty(story) %></div>
@@ -72,7 +72,7 @@ See COPYRIGHT and LICENSE files for more details.
title="<%= story.subject %>"
field_id="<%= story.id %>"><%= story.subject %></div>
<div class="version_id"><%= story.version_id %></div>
- <div class="higher_item_id"><%= !defined?(higher_item) || higher_item.nil? ? '' : higher_item.id %></div>
+ <div class="higher_item_id"><%= !defined?(higher_item) || higher_item.nil? ? "" : higher_item.id %></div>
<div class="meta">
<%= render(partial: "shared/model_errors", object: errors) if defined?(errors) && !errors.empty? %>
</div>
diff --git a/modules/backlogs/app/views/rb_taskboards/show.html.erb b/modules/backlogs/app/views/rb_taskboards/show.html.erb
index ad5c7d12ebe..ac3100869c1 100644
--- a/modules/backlogs/app/views/rb_taskboards/show.html.erb
+++ b/modules/backlogs/app/views/rb_taskboards/show.html.erb
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="toolbar toolbar_empty-title">
<li class="toolbar-item toolbar-input-group" id="col_width">
<div>
- <label for="col_width_input"><%= t('backlogs.column_width') %></label>
+ <label for="col_width_input"><%= t("backlogs.column_width") %></label>
</div>
<input type="text" id="col_width_input">
</li>
@@ -72,7 +72,7 @@ See COPYRIGHT and LICENSE files for more details.
<td class="add_new"></td>
<% end %>
<% @statuses.each do |status| %>
- <td class="swimlane list <%= status.is_closed? ? 'closed' : '' %>" id="impcell_<%= status.id %>">
+ <td class="swimlane list <%= status.is_closed? ? "closed" : "" %>" id="impcell_<%= status.id %>">
<%= render partial: "rb_impediments/impediment",
collection: impediments_by_position_for_status(@sprint, @project, status) %>
</td>
@@ -101,7 +101,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if story.assigned_to.present? %>
<%= link_to_user(story.assigned_to) %>
<% else %>
- <em><%= t('backlogs.unassigned') %></em>
+ <em><%= t("backlogs.unassigned") %></em>
<% end %>
</div>
<div class="story-points">
@@ -116,7 +116,7 @@ See COPYRIGHT and LICENSE files for more details.
<td class="add_new"></td>
<% end %>
<% @statuses.each do |status| %>
- <td class="swimlane list <%= status.is_closed? ? 'closed' : '' %>" id="<%= story.id %>_<%= status.id %>">
+ <td class="swimlane list <%= status.is_closed? ? "closed" : "" %>" id="<%= story.id %>_<%= status.id %>">
<%= render partial: "rb_tasks/task",
collection: tasks_by_status_id[status.id] %>
</td>
diff --git a/modules/backlogs/app/views/rb_tasks/_task.html.erb b/modules/backlogs/app/views/rb_tasks/_task.html.erb
index 88d33508f74..9a1cc0c1c49 100644
--- a/modules/backlogs/app/views/rb_tasks/_task.html.erb
+++ b/modules/backlogs/app/views/rb_tasks/_task.html.erb
@@ -30,9 +30,9 @@ See COPYRIGHT and LICENSE files for more details.
<%
project ||= task.project
prevent_edit = if User.current.allowed_in_project?(:edit_work_packages, project)
- ''
+ ""
else
- 'prevent_edit'
+ "prevent_edit"
end
%>
<div class="model work_package task <%= color_contrast_class(task) %> <%= prevent_edit %> <%= mark_if_closed(task) %>" id="work_package_<%= task.id %>" <%= build_inline_style(task) %>>
@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="t"><%= assignee_name_or_empty(task) %></div>
<div class="v"><%= assignee_id_or_empty(task) %></div>
</div>
- <div class="remaining_hours editable<%= ' empty' if remaining_hours(task).blank? %>"
+ <div class="remaining_hours editable<%= " empty" if remaining_hours(task).blank? %>"
fieldname="remaining_hours"
fieldlabel="<%= WorkPackage.human_attribute_name(:remaining_hours) %>"><%= remaining_hours(task) %></div>
<div class="indicator"> </div>
diff --git a/modules/backlogs/app/views/shared/_view_my_settings.html.erb b/modules/backlogs/app/views/shared/_view_my_settings.html.erb
index 88ce516a1ad..8a7d970162a 100644
--- a/modules/backlogs/app/views/shared/_view_my_settings.html.erb
+++ b/modules/backlogs/app/views/shared/_view_my_settings.html.erb
@@ -31,10 +31,10 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= t(:label_backlogs) %></legend>
<div class="form--field">
<%= styled_label_tag :backlogs_task_color, t(:'backlogs.task_color') %>
- <%= styled_text_field_tag :'backlogs[task_color]', color, container_class: '-middle' %>
+ <%= styled_text_field_tag :'backlogs[task_color]', color, container_class: "-middle" %>
</div>
<div class="form--field">
- <%= styled_label_tag :backlogs_versions_default_fold_state, I18n.t('backlogs.label_versions_default_fold_state') %>
+ <%= styled_label_tag :backlogs_versions_default_fold_state, I18n.t("backlogs.label_versions_default_fold_state") %>
<%= styled_check_box_tag :'backlogs[versions_default_fold_state]', "closed", versions_default_fold_state == "closed" %>
</div>
</fieldset>
diff --git a/modules/backlogs/app/views/version_settings/_form.html.erb b/modules/backlogs/app/views/version_settings/_form.html.erb
index a81da088e10..8fd6c512abf 100644
--- a/modules/backlogs/app/views/version_settings/_form.html.erb
+++ b/modules/backlogs/app/views/version_settings/_form.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'version' %>
+<%= error_messages_for "version" %>
<% if @project.enabled_modules.map(&:name).include?("backlogs") %>
<%= version_settings_fields @version, @project %>
diff --git a/modules/backlogs/app/views/version_settings/edit.html.erb b/modules/backlogs/app/views/version_settings/edit.html.erb
index 03ebc635ef3..09402068859 100644
--- a/modules/backlogs/app/views/version_settings/edit.html.erb
+++ b/modules/backlogs/app/views/version_settings/edit.html.erb
@@ -30,6 +30,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_version) %>
<% html_title t(:label_version) %>
<% labelled_tabular_form_for :version, @version, url: project_version_path(@project, @version), html: { method: :put } do |f| %>
-<%= render partial: 'form', locals: { f: } %>
-<%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+<%= render partial: "form", locals: { f: } %>
+<%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/_import_errors.html.erb b/modules/bim/app/views/bim/bcf/issues/_import_errors.html.erb
index 792fab26e81..a8da7e45cdb 100644
--- a/modules/bim/app/views/bim/bcf/issues/_import_errors.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/_import_errors.html.erb
@@ -1,8 +1,8 @@
-<%= render 'import_options_hidden_fields' %>
+<%= render "import_options_hidden_fields" %>
<p>
<span>
- <%= op_icon 'icon-context icon-warning' %>
+ <%= op_icon "icon-context icon-warning" %>
<strong><%= error_message %></strong>
</span>
</p>
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 f48dbe496b2..f3f4cc1a741 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
@@ -6,26 +6,26 @@
<% 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/bcf/issues/_import_solution.html.erb b/modules/bim/app/views/bim/bcf/issues/_import_solution.html.erb
index 35de6c1ac08..e2d780b00b7 100644
--- a/modules/bim/app/views/bim/bcf/issues/_import_solution.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/_import_solution.html.erb
@@ -1,7 +1,7 @@
<hr class="form--separator">
<div class="form--field">
- <%= hidden_field_tag "import_options[#{hidden_field_identifier}]", 'chose' %>
+ <%= hidden_field_tag "import_options[#{hidden_field_identifier}]", "chose" %>
<%= styled_label_tag "import_options[#{solution_select_id}][]", solution_text %>
<div class="form--field-container">
@@ -9,13 +9,13 @@
options_for_select(solution_options),
no_label: true,
tabIndex: 0,
- container_class: '-slim',
+ container_class: "-slim",
id: solution_select_id %>
</div>
</div>
-<%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-primary' %>
+<%= styled_submit_tag t("bcf.bcf_xml.import.button_proceed"), class: "-primary" %>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
- class: 'button' %>
+ class: "button" %>
diff --git a/modules/bim/app/views/bim/bcf/issues/_render_issues.html.erb b/modules/bim/app/views/bim/bcf/issues/_render_issues.html.erb
index b0204b9ed34..70c7421c270 100644
--- a/modules/bim/app/views/bim/bcf/issues/_render_issues.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/_render_issues.html.erb
@@ -2,8 +2,8 @@
<div class="bcf--issues">
<% issues.each do |issue| %>
<% status_id = issue.work_package&.status_id %>
- <% highlighting_class = status_id.present? ? "__hl_background_status_#{status_id}" : '' %>
- <% highlighting_class << ' -failed' if issue.errors.present? %>
+ <% highlighting_class = status_id.present? ? "__hl_background_status_#{status_id}" : "" %>
+ <% highlighting_class << " -failed" if issue.errors.present? %>
<div class="<%= highlighting_class %>">
<p>
<% if issue.work_package %>
@@ -23,7 +23,7 @@
</div>
<% else %>
<% if issue.viewpoints.empty? %>
- <p>(<%= t('bcf.no_viewpoints') %>)</p>
+ <p>(<%= t("bcf.no_viewpoints") %>)</p>
<% else %>
<img src="<%= API::V3::Utilities::PathHelper::ApiV3Path.attachment_content(issue.viewpoints.first.snapshot.id) %>">
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb
index 8f8587dd1a2..77bda36ff73 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb
@@ -8,18 +8,18 @@
%>
<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post) do %>
- <%= render partial: 'import_errors', locals: { error_message: t('bcf.bcf_xml.import.invalid_emails_found'),
+ <%= render partial: "import_errors", locals: { error_message: t("bcf.bcf_xml.import.invalid_emails_found"),
error_objects: @importer.aggregations.invalid_people,
- error_default_text: t('bcf.bcf_xml.import.unknown_property')} %>
+ error_default_text: t("bcf.bcf_xml.import.unknown_property")} %>
<hr class="form--separator">
<div class="form--field">
<input type="hidden" name="import_options[invalid_people_action]" value="anonymize">
- <%= t('bcf.bcf_xml.import.import_as_system_user') %>
+ <%= t("bcf.bcf_xml.import.import_as_system_user") %>
</div>
- <%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-primary' %>
+ <%= styled_submit_tag t("bcf.bcf_xml.import.button_proceed"), class: "-primary" %>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
- class: 'button' %>
+ class: "button" %>
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erb
index b9fc4a5716d..b9596c916fa 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erb
@@ -8,37 +8,37 @@
%>
<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post) do %>
- <%= render partial: 'import_errors', locals: { error_message: t('bcf.bcf_xml.import.non_members_found'),
+ <%= render partial: "import_errors", locals: { error_message: t("bcf.bcf_xml.import.non_members_found"),
error_objects: @importer.aggregations.non_members,
- error_default_text: t('bcf.bcf_xml.import.unknown_property')} %>
+ error_default_text: t("bcf.bcf_xml.import.unknown_property")} %>
<% if @roles.any? %>
<% if User.current.allowed_in_project?(:manage_members, @project) %>
- <%= render partial: 'import_solution', locals: { solution_select_id: 'non_members_chose_role_ids',
- hidden_field_identifier: 'non_members_action',
- solution_text: t('bcf.bcf_xml.import.add_as_members_with_role', project: @project.name),
+ <%= render partial: "import_solution", locals: { solution_select_id: "non_members_chose_role_ids",
+ hidden_field_identifier: "non_members_action",
+ solution_text: t("bcf.bcf_xml.import.add_as_members_with_role", project: @project.name),
solution_options: @roles.collect { |obj| [obj.name, obj.id] }} %>
<% else %>
<div class="op-toast -warning">
<div class="op-toast--content">
<input type="hidden" name="import_options[non_members_action]" value="cancel">
- <%= t('bcf.bcf_xml.import.contact_project_admin') %>
+ <%= t("bcf.bcf_xml.import.contact_project_admin") %>
</div>
</div>
<br>
<%= link_to t(:button_cancel),
project_work_packages_path(@project),
- class: 'button' %>
+ class: "button" %>
<% end %>
<% else %>
<div class="op-toast -error">
<div class="op-toast--content">
- <%= I18n.t('text_no_roles_defined') %>
+ <%= I18n.t("text_no_roles_defined") %>
</div>
</div>
<br>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
- class: 'button' %>
+ class: "button" %>
<% end %>
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb
index 79aafacc228..3ce70ed13e6 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb
@@ -8,28 +8,28 @@
%>
<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post) do %>
- <%= render partial: 'import_errors', locals: { error_message: t('bcf.bcf_xml.import.unknown_emails_found'),
+ <%= render partial: "import_errors", locals: { error_message: t("bcf.bcf_xml.import.unknown_emails_found"),
error_objects: @importer.aggregations.unknown_mails,
- error_default_text: t('bcf.bcf_xml.import.unknown_property')} %>
+ error_default_text: t("bcf.bcf_xml.import.unknown_property")} %>
<% if @roles.any? %>
<% if User.current.admin? %>
<hr class="form--separator">
- <p><%= t('bcf.bcf_xml.import.what_to_do') %></p>
+ <p><%= t("bcf.bcf_xml.import.what_to_do") %></p>
<div class="form--field -full-width">
<div class="form--field-container">
<label class="option-label">
<input type="radio" name="import_options[unknown_mails_action]" value="invite" checked>
- <%= t('bcf.bcf_xml.import.invite_as_members_with_role', project: @project.name) %>&nbsp;
+ <%= t("bcf.bcf_xml.import.invite_as_members_with_role", project: @project.name) %>&nbsp;
<% options = @roles.collect { |obj| [obj.name, obj.id] } %>
- <%= styled_select_tag 'import_options[unknown_mails_invite_role_ids][]',
+ <%= styled_select_tag "import_options[unknown_mails_invite_role_ids][]",
options_for_select(options),
no_label: true,
title: t(:label_role_search),
tabIndex: 0,
- container_class: '-slim',
- class: 'option-label--select',
- id: 'unknown_mails_invite_role_ids' %>
- (<%= t('bcf.recommended') %>)
+ container_class: "-slim",
+ class: "option-label--select",
+ id: "unknown_mails_invite_role_ids" %>
+ (<%= t("bcf.recommended") %>)
</label>
</div>
</div>
@@ -37,33 +37,33 @@
<div class="form--field-container">
<label class="option-label">
<input type="radio" name="import_options[unknown_mails_action]" value="anonymize">
- <%= t('bcf.bcf_xml.import.replace_with_system_user') %> (<%= t('bcf.not_recommended') %>).
+ <%= t("bcf.bcf_xml.import.replace_with_system_user") %> (<%= t("bcf.not_recommended") %>).
</label>
</div>
</div>
<% else %>
<div class="op-toast -warning">
<div class="op-toast--content">
- <%= t('bcf.bcf_xml.import.no_permission_to_add_members') %>
- <%= t('bcf.bcf_xml.import.contact_project_admin') %>
+ <%= t("bcf.bcf_xml.import.no_permission_to_add_members") %>
+ <%= t("bcf.bcf_xml.import.contact_project_admin") %>
</div>
</div>
<div class="form--field">
- <%= t('bcf.bcf_xml.import.continue_anyways') %>
+ <%= t("bcf.bcf_xml.import.continue_anyways") %>
<input type="hidden" name="import_options[unknown_mails_action]" value="anonymize">
- <%= t('bcf.bcf_xml.import.replace_with_system_user') %>.
+ <%= t("bcf.bcf_xml.import.replace_with_system_user") %>.
</div>
<% end %>
- <%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-primary' %>
+ <%= styled_submit_tag t("bcf.bcf_xml.import.button_proceed"), class: "-primary" %>
<% else %>
<div class="op-toast -error">
<div class="op-toast--content">
- <%= I18n.t('text_no_roles_defined') %>
+ <%= I18n.t("text_no_roles_defined") %>
</div>
</div>
<br>
<% end %>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
- class: 'button' %>
+ class: "button" %>
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erb
index a62a19feb03..2d33be8b592 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erb
@@ -7,12 +7,12 @@
end
%>
-<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: '-vertical') do %>
- <%= render partial: 'import_errors', locals: { error_message: t('bcf.bcf_xml.import.invalid_priorities_found'),
+<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: "-vertical") do %>
+ <%= render partial: "import_errors", locals: { error_message: t("bcf.bcf_xml.import.invalid_priorities_found"),
error_objects: @importer.aggregations.unknown_priorities,
- error_default_text: t('bcf.bcf_xml.import.no_priority_provided')} %>
- <%= render partial: 'import_solution', locals: { solution_select_id: 'unknown_priorities_chose_ids',
- hidden_field_identifier: 'unknown_priorities_action',
- solution_text: t('bcf.bcf_xml.import.import_priorities_as'),
+ error_default_text: t("bcf.bcf_xml.import.no_priority_provided")} %>
+ <%= render partial: "import_solution", locals: { solution_select_id: "unknown_priorities_chose_ids",
+ hidden_field_identifier: "unknown_priorities_action",
+ solution_text: t("bcf.bcf_xml.import.import_priorities_as"),
solution_options: IssuePriority.all.collect { |priority| [priority.name, priority.id] }} %>
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erb
index da24692033b..48e93af58f1 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erb
@@ -7,12 +7,12 @@
end
%>
-<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: '-vertical') do %>
- <%= render partial: 'import_errors', locals: { error_message: t('bcf.bcf_xml.import.invalid_statuses_found'),
+<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: "-vertical") do %>
+ <%= render partial: "import_errors", locals: { error_message: t("bcf.bcf_xml.import.invalid_statuses_found"),
error_objects: @importer.aggregations.unknown_statuses,
- error_default_text: t('bcf.bcf_xml.import.no_status_provided')} %>
- <%= render partial: 'import_solution', locals: { solution_select_id: 'unknown_statuses_chose_ids',
- hidden_field_identifier: 'unknown_statuses_action',
- solution_text: t('bcf.bcf_xml.import.import_statuses_as'),
+ error_default_text: t("bcf.bcf_xml.import.no_status_provided")} %>
+ <%= render partial: "import_solution", locals: { solution_select_id: "unknown_statuses_chose_ids",
+ hidden_field_identifier: "unknown_statuses_action",
+ solution_text: t("bcf.bcf_xml.import.import_statuses_as"),
solution_options: Status.all.collect { |status| [status.name, status.id] }} %>
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erb
index 23fd542d7ad..a20c78f608c 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erb
@@ -7,12 +7,12 @@
end
%>
-<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: '-vertical') do %>
- <%= render partial: 'import_errors', locals: { error_message: t('bcf.bcf_xml.import.invalid_types_found'),
+<%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: "-vertical") do %>
+ <%= render partial: "import_errors", locals: { error_message: t("bcf.bcf_xml.import.invalid_types_found"),
error_objects: @importer.aggregations.unknown_types,
- error_default_text: t('bcf.bcf_xml.import.no_type_provided')} %>
- <%= render partial: 'import_solution', locals: { solution_select_id: 'unknown_types_chose_ids',
- hidden_field_identifier: 'unknown_types_action',
- solution_text: t('bcf.bcf_xml.import.import_types_as'),
+ error_default_text: t("bcf.bcf_xml.import.no_type_provided")} %>
+ <%= render partial: "import_solution", locals: { solution_select_id: "unknown_types_chose_ids",
+ hidden_field_identifier: "unknown_types_action",
+ solution_text: t("bcf.bcf_xml.import.import_types_as"),
solution_options: Type.all.collect { |type| [type.name, type.id] }} %>
<% end %>
diff --git a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb
index 23b3fe754bd..cb6a90fc31b 100644
--- a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb
@@ -12,17 +12,17 @@
end
%>
-<%= link_to t('bcf.bcf_xml.import.button_back_to_list'),
+<%= link_to t("bcf.bcf_xml.import.button_back_to_list"),
defaults_bcf_project_ifc_models_path(@project),
- class: 'button -primary' %>
+ class: "button -primary" %>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= I18n.t('bcf.label_imported_successfully') %></legend>
+ <legend class="form--fieldset-legend"><%= I18n.t("bcf.label_imported_successfully") %></legend>
- <%= render partial: 'render_issues', locals: { issues: @issues[:successful] } %>
+ <%= render partial: "render_issues", locals: { issues: @issues[:successful] } %>
</fieldset>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= I18n.t('bcf.label_imported_failed') %></legend>
- <%= render partial: 'render_issues', locals: { issues: @issues[:failed] } %>
+ <legend class="form--fieldset-legend"><%= I18n.t("bcf.label_imported_failed") %></legend>
+ <%= render partial: "render_issues", locals: { issues: @issues[:failed] } %>
</fieldset>
diff --git a/modules/bim/app/views/bim/bcf/issues/upload.html.erb b/modules/bim/app/views/bim/bcf/issues/upload.html.erb
index 198f8aea688..d29f9f3d294 100644
--- a/modules/bim/app/views/bim/bcf/issues/upload.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/upload.html.erb
@@ -10,17 +10,17 @@
<%= form_tag({ action: :prepare_import }, multipart: true, method: :post) do %>
<div class="form--field">
- <%= styled_label_tag 'bcf_file', t('bcf.bcf_xml.xml_file') %>
+ <%= styled_label_tag "bcf_file", t("bcf.bcf_xml.xml_file") %>
<div class="form--field-container">
<%= styled_file_field_tag :bcf_file, required: true %>
</div>
<div class="form--field-instructions">
- <p><%= t('bcf.bcf_xml.import.description') %></p>
+ <p><%= t("bcf.bcf_xml.import.description") %></p>
</div>
</div>
- <%= submit_tag t('bcf.bcf_xml.import.button_prepare'), class: 'button -primary' %>
+ <%= submit_tag t("bcf.bcf_xml.import.button_prepare"), class: "button -primary" %>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
- class: 'button' %>
+ class: "button" %>
<% end %>
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb
index 78538e29687..0a23410ef44 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/_form.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<% unless @ifc_model.new_record? %>
<div class="form--field -required">
- <%= f.text_field :title, required: true, container_class: '-wide' %>
+ <%= f.text_field :title, required: true, container_class: "-wide" %>
</div>
<% end %>
@@ -39,16 +39,16 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% end %>
-<div class="form--field <%= @ifc_model.new_record? ? '-required': '' %>">
+<div class="form--field <%= @ifc_model.new_record? ? "-required": "" %>">
<% if OpenProject::Configuration.direct_uploads? %>
<input class="form--file-field" type="file" name="file" accept=".ifc">
<% else %>
- <%= f.file_field :ifc_attachment, accept: '.ifc' %>
+ <%= f.file_field :ifc_attachment, accept: ".ifc" %>
<% end %>
</div>
<div class="form--field">
- <%= f.check_box 'is_default' %>
+ <%= f.check_box "is_default" %>
</div>
<% if OpenProject::Configuration.direct_uploads? %>
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/_no_default_notice.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/_no_default_notice.html.erb
index 533ab03fe17..79a4d4f9ec5 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/_no_default_notice.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/_no_default_notice.html.erb
@@ -1,13 +1,13 @@
<div class="op-toast -info">
<div class="op-toast--content">
- <p><%= t('ifc_models.no_defaults_warning.title') %></p>
+ <p><%= t("ifc_models.no_defaults_warning.title") %></p>
<ul>
- <li><%= t('ifc_models.no_defaults_warning.check_1') %></li>
- <li><%= t('ifc_models.no_defaults_warning.check_2') %></li>
+ <li><%= t("ifc_models.no_defaults_warning.check_1") %></li>
+ <li><%= t("ifc_models.no_defaults_warning.check_2") %></li>
</ul>
<% unless current_page?(bcf_project_ifc_models_path(project)) %>
- <%= link_to(bcf_project_ifc_models_path(project), class: 'button', accesskey: accesskey(:edit)) do %>
- <%= op_icon('button--icon icon-edit') %> <%= t('ifc_models.label_edit_defaults') %>
+ <%= link_to(bcf_project_ifc_models_path(project), class: "button", accesskey: accesskey(:edit)) do %>
+ <%= op_icon("button--icon icon-edit") %> <%= t("ifc_models.label_edit_defaults") %>
<% end %>
<% end %>
</div>
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb
index e98dbc578d3..2e3b307dd7c 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb
@@ -37,8 +37,8 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= labelled_tabular_form_for @ifc_model, url: bcf_project_ifc_model_path(@project, @ifc_model), method: 'PATCH' do |f| -%>
+<%= labelled_tabular_form_for @ifc_model, url: bcf_project_ifc_model_path(@project, @ifc_model), method: "PATCH" do |f| -%>
<%= error_messages_for @ifc_model %>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
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 66d13427440..e1fee121adf 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
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title(t('ifc_models.label_ifc_models')) -%>
+<% html_title(t("ifc_models.label_ifc_models")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -65,7 +65,7 @@ See COPYRIGHT and LICENSE files for more details.
%>
<% if @ifc_models.defaults.empty? %>
- <%= render partial: 'no_default_notice', locals: { project: @project } %>
+ <%= render partial: "no_default_notice", locals: { project: @project } %>
<% end %>
<%= render ::Bim::IfcModels::TableComponent.new(rows: @ifc_models) %>
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 8bbea778edb..4f6ab6f45dc 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
@@ -38,6 +38,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/bim/app/views/bim/ifc_models/ifc_viewer/_unconverted_notice.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_viewer/_unconverted_notice.html.erb
index 59b333f03bb..784cd469f1b 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_viewer/_unconverted_notice.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_viewer/_unconverted_notice.html.erb
@@ -1,7 +1,7 @@
<div class="op-toast -info">
<a href="#" title="close" class="op-toast--close icon-context icon-close"></a>
<div class="op-toast--content">
- <p><%= t('ifc_models.processing_notice.processing_default') %></p>
+ <p><%= t("ifc_models.processing_notice.processing_default") %></p>
<ul>
<% unconverted.each do |model| %>
<li><%= model.title %></li>
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erb
index c1151392774..032c4e6f161 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<% unconverted = @shown_ifc_models.reject(&:converted?) %>
<% if unconverted.any? %>
- <%= render partial: 'unconverted_notice', locals: { unconverted: unconverted } %>
+ <%= render partial: "unconverted_notice", locals: { unconverted: unconverted } %>
<% end %>
<openproject-base></openproject-base>
diff --git a/modules/bim/app/views/bim/menus/_menu.html.erb b/modules/bim/app/views/bim/menus/_menu.html.erb
index e4afbbc2b52..d00464e1991 100644
--- a/modules/bim/app/views/bim/menus/_menu.html.erb
+++ b/modules/bim/app/views/bim/menus/_menu.html.erb
@@ -1,6 +1,6 @@
<%= turbo_frame_tag "bim_sidemenu",
src: bcf_project_bcf_menu_path(@project, **params.permit(:query_props, :query_id, :name)),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
diff --git a/modules/boards/app/views/boards/boards/_form.html.erb b/modules/boards/app/views/boards/boards/_form.html.erb
index 54b1af633be..b72e4aa633e 100644
--- a/modules/boards/app/views/boards/boards/_form.html.erb
+++ b/modules/boards/app/views/boards/boards/_form.html.erb
@@ -35,40 +35,40 @@ See COPYRIGHT and LICENSE files for more details.
label: t(:label_title),
required: true,
size: 60,
- container_class: '-wide' %>
+ container_class: "-wide" %>
</div>
<% if global_board_create_context? %>
<div class="form--field -required">
<label class="form--label" for="project_id"><%= Query.human_attribute_name(:project) %>:</label>
<div class="form--field-container">
- <%= angular_component_tag 'opce-project-autocompleter',
+ <%= angular_component_tag "opce-project-autocompleter",
inputs: {
- filters: [{ name: 'user_action', operator: '=', values: ['boards/create'] }],
- inputName: 'project_id',
+ 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',
+ id: "project_id",
+ class: "form--select-container -wide remote-field--input",
data: {
- 'test-selector': 'project_id'
+ 'test-selector': "project_id"
} %>
</div>
</div>
<% end %>
<div class="form--field -required -align-start">
- <label class="form--label" for="board_type"><%= t('boards.label_board_type') %></label>
+ <label class="form--label" for="board_type"><%= t("boards.label_board_type") %></label>
<div class="form--field-container -enterprise-restricted">
<% unless EnterpriseToken.allows_to?(:board_view) %>
<p class="boards-enterprise-banner-wide">
- <%= angular_component_tag 'opce-enterprise-banner',
+ <%= angular_component_tag "opce-enterprise-banner",
inputs: {
collapsible: false,
- opReferrer: 'boards',
- linkMessage: t('boards.upsale.upgrade'),
- textMessage: t('boards.upsale.teaser_text'),
+ opReferrer: "boards",
+ linkMessage: t("boards.upsale.upgrade"),
+ textMessage: t("boards.upsale.teaser_text"),
moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:boards][:href]
} %>
</p>
@@ -76,16 +76,16 @@ See COPYRIGHT and LICENSE files for more details.
<div class="op-tile-block">
<% board_types.each_with_index do |board_type, tile_number| %>
- <label class="op-tile-block--tile form--radio-button-container -wide <%= '-disabled' if board_type.disabled? %>"
+ <label class="op-tile-block--tile form--radio-button-container -wide <%= "-disabled" if board_type.disabled? %>"
for="boards_grid_attribute_<%= board_type.radio_button_value %>"
data-test-selector="op-tile-block">
<div class="op-tile-block--content">
- <%= styled_radio_button_tag 'boards_grid[attribute]',
+ <%= styled_radio_button_tag "boards_grid[attribute]",
board_type.radio_button_value,
tile_number == 0,
no_label: true,
disabled: board_type.disabled?,
- class: 'radio-button' %>
+ class: "radio-button" %>
<div>
<span data-test-selector="op-tile-block-title" class="op-tile-block--title">
<%= board_type.title %>
diff --git a/modules/boards/app/views/boards/boards/index.html.erb b/modules/boards/app/views/boards/boards/index.html.erb
index 256a0c4ae14..1c55ff78002 100644
--- a/modules/boards/app/views/boards/boards/index.html.erb
+++ b/modules/boards/app/views/boards/boards/index.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title(t('boards.label_boards')) -%>
+<% html_title(t("boards.label_boards")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
diff --git a/modules/boards/app/views/boards/boards/new.html.erb b/modules/boards/app/views/boards/boards/new.html.erb
index c96ec794a47..9d89e89cf89 100644
--- a/modules/boards/app/views/boards/boards/new.html.erb
+++ b/modules/boards/app/views/boards/boards/new.html.erb
@@ -27,28 +27,28 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t('boards.label_create_new_board') %>
+<% html_title t("boards.label_create_new_board") %>
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('boards.label_create_new_board') }
+ header.with_title { t("boards.label_create_new_board") }
header.with_breadcrumbs( [*([ href: home_path, text: organization_name ] unless @project),
*([ href: project_overview_path(@project.id), text: @project.name ] if @project),
*([ href: project_work_package_boards_path(@project.id), text: t("boards.label_boards") ] if @project),
- t('boards.label_create_new_board')
+ t("boards.label_create_new_board")
])
end
%>
<%= labelled_tabular_form_for @board_grid,
- url: { controller: '/boards/boards', action: 'create', project_id: @project },
+ url: { controller: "/boards/boards", action: "create", project_id: @project },
html: {
- id: 'board-form',
+ id: "board-form",
data: { turbo: false }
} do |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' %>
+ <%= 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" %>
<% end %>
diff --git a/modules/boards/app/views/boards/boards/show.html.erb b/modules/boards/app/views/boards/boards/show.html.erb
index 9439ef36b68..649a066695a 100644
--- a/modules/boards/app/views/boards/boards/show.html.erb
+++ b/modules/boards/app/views/boards/boards/show.html.erb
@@ -27,4 +27,4 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title(t('boards.label_boards')) -%>
+<% html_title(t("boards.label_boards")) -%>
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 bca91081ef5..4b429f94e87 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
@@ -8,7 +8,7 @@
mobile_icon: :pencil,
mobile_label: t(:button_edit),
size: :medium,
- href: url_for({ controller: 'budgets', action: 'edit', id: @budget }),
+ href: url_for({ controller: "budgets", action: "edit", id: @budget }),
aria: { label: t(:button_update) },
data: {test_selector: "budget-edit-button" },
title: t(:button_update)) do |button|
@@ -21,7 +21,7 @@
mobile_icon: :copy,
mobile_label: t(:button_copy),
size: :medium,
- href: url_for({ controller: 'budgets', action: 'copy', id: @budget }),
+ href: url_for({ controller: "budgets", action: "copy", id: @budget }),
aria: { label: I18n.t(:button_copy) },
data: {test_selector: "budget-copy-button" },
title: I18n.t(:button_copy)) do |button|
@@ -35,7 +35,7 @@
mobile_icon: :trash,
mobile_label: t(:button_delete),
size: :medium,
- href: url_for({ controller: 'budgets', action: 'destroy', id: @budget }),
+ href: url_for({ controller: "budgets", action: "destroy", id: @budget }),
aria: { label: I18n.t(:button_delete) },
data: {
confirm: I18n.t(:text_are_you_sure),
diff --git a/modules/budgets/app/views/budgets/_edit.html.erb b/modules/budgets/app/views/budgets/_edit.html.erb
index f2565add04f..c0a899a9bc4 100644
--- a/modules/budgets/app/views/budgets/_edit.html.erb
+++ b/modules/budgets/app/views/budgets/_edit.html.erb
@@ -31,10 +31,10 @@ See COPYRIGHT and LICENSE files for more details.
:as => :budget,
:url => budget_path(@budget),
:html => {:multipart => true,
- :id => 'budget_form',
- :class => 'form'} do |f| %>
- <%= render :partial => 'form', :locals => {:f => f} %>
+ :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' %>
+ <%= styled_button_tag t(:button_submit), class: "-with-icon icon-checkmark -primary", id: "budget-table--submit-button" %>
</div>
<% end %>
diff --git a/modules/budgets/app/views/budgets/_form.html.erb b/modules/budgets/app/views/budgets/_form.html.erb
index 395aac2b4cc..d0d5e86f65a 100644
--- a/modules/budgets/app/views/budgets/_form.html.erb
+++ b/modules/budgets/app/views/budgets/_form.html.erb
@@ -31,11 +31,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for @budget %>
<div class="form--field -required">
- <%= f.text_field :subject, required: true, autofocus: true, container_class: '-wide' %>
+ <%= f.text_field :subject, required: true, autofocus: true, container_class: "-wide" %>
</div>
<div class="form--field -visible-overflow">
<%= f.text_area :description,
- container_class: '-xxwide',
+ container_class: "-xxwide",
with_text_formatting: true,
resource: resource %>
</div>
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.date_picker :fixed_date %>
</div>
-<%= render partial: 'budgets/subform/material_budget_subform' %>
-<%= render partial: 'budgets/subform/labor_budget_subform' %>
+<%= render partial: "budgets/subform/material_budget_subform" %>
+<%= render partial: "budgets/subform/labor_budget_subform" %>
<div style="clear: both;"> </div>
diff --git a/modules/budgets/app/views/budgets/_list.html.erb b/modules/budgets/app/views/budgets/_list.html.erb
index bd13f1b203d..abc35959e95 100644
--- a/modules/budgets/app/views/budgets/_list.html.erb
+++ b/modules/budgets/app/views/budgets/_list.html.erb
@@ -42,7 +42,7 @@ See COPYRIGHT and LICENSE files for more details.
</colgroup>
<thead>
<tr>
- <%= sort_header_tag("id", :caption => '#', :default_order => 'desc') %>
+ <%= 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">
@@ -87,10 +87,10 @@ 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, 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
diff --git a/modules/budgets/app/views/budgets/destroy_info.html.erb b/modules/budgets/app/views/budgets/destroy_info.html.erb
index 2986837d068..51da84f99d2 100644
--- a/modules/budgets/app/views/budgets/destroy_info.html.erb
+++ b/modules/budgets/app/views/budgets/destroy_info.html.erb
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for="todo_delete"><%= t(:text_budget_delete) %></label>
<div class="form--field-container">
- <%= styled_radio_button_tag 'todo', 'delete', false %>
+ <%= styled_radio_button_tag "todo", "delete", false %>
</div>
</div>
@@ -53,19 +53,19 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<label class="form--label" for="todo_reassign"><%= t(:text_budget_reassign_to) %></label>
<div class="form--field-container">
- <%= styled_radio_button_tag 'todo', 'reassign', true %>
+ <%= styled_radio_button_tag "todo", "reassign", true %>
</div>
<%= label_tag "reassign_to_id", t(:text_budget_reassign_to), class: "hidden-for-sighted" %>
- <%= styled_select_tag 'reassign_to_id', options_from_collection_for_select(@possible_other_budgets, 'id', 'name'), container_class: '-middle' %>
+ <%= styled_select_tag "reassign_to_id", options_from_collection_for_select(@possible_other_budgets, "id", "name"), container_class: "-middle" %>
- <% csp_onclick("document.getElementById('todo_reassign').checked = true", '#reassign_to_id') %>
+ <% csp_onclick("document.getElementById('todo_reassign').checked = true", "#reassign_to_id") %>
</div>
<% end %>
</section>
- <%= styled_submit_tag t(:button_apply), class: '-primary' %>
+ <%= styled_submit_tag t(:button_apply), class: "-primary" %>
<%= link_to t(:button_cancel),
budget_path(@budget),
- class: 'button' %>
+ class: "button" %>
<% end %>
diff --git a/modules/budgets/app/views/budgets/edit.html.erb b/modules/budgets/app/views/budgets/edit.html.erb
index d8822528fa0..7fb86952e08 100644
--- a/modules/budgets/app/views/budgets/edit.html.erb
+++ b/modules/budgets/app/views/budgets/edit.html.erb
@@ -37,4 +37,4 @@ See COPYRIGHT and LICENSE files for more details.
t(:label_budget_id, id: @budget.id)])
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 39d04c5e8fd..e6d6d8acdb0 100644
--- a/modules/budgets/app/views/budgets/index.html.erb
+++ b/modules/budgets/app/views/budgets/index.html.erb
@@ -52,17 +52,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/_budget_override_cost_form.html.erb b/modules/budgets/app/views/budgets/items/_budget_override_cost_form.html.erb
index 101ee5b6e8a..8dfca2d20a8 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
@@ -6,7 +6,7 @@
<%= text_field_tag(
field_name,
unitless_currency_number(cost_value),
- class: 'currency form--text-field',
+ 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)),
) %>
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 123e0e4ec1f..fc6ce433586 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
@@ -30,13 +30,13 @@ See COPYRIGHT and LICENSE files for more details.
<%-
templated ||= false
index ||= "INDEX"
- new_or_existing = labor_budget_item.new_record? ? 'new' : 'existing'
+ new_or_existing = labor_budget_item.new_record? ? "new" : "existing"
id_or_index = labor_budget_item.new_record? ? index : labor_budget_item.id
prefix = "budget[#{new_or_existing}_labor_budget_item_attributes][]"
id_prefix = "budget_#{new_or_existing}_labor_budget_item_attributes_#{id_or_index}"
name_prefix = "budget[#{new_or_existing}_labor_budget_item_attributes][#{id_or_index}]"
- error_messages = error_messages_for 'labor_budget_item'
+ error_messages = error_messages_for "labor_budget_item"
-%>
<% unless error_messages.blank? %>
@@ -58,10 +58,10 @@ See COPYRIGHT and LICENSE files for more details.
# but show the appearance of a decimal field on mobile
inputmode: :decimal,
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
- class: 'budget-item-value form--text-field',
+ 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>
@@ -73,10 +73,10 @@ See COPYRIGHT and LICENSE files for more details.
{prompt: true},
{
index: id_or_index,
- class: 'form--select budget-item-value',
+ 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"
}
} %>
@@ -98,7 +98,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= number_to_currency(cost_value) %>
<% end %>
</a>
- <%= render partial: '/budgets/items/budget_override_cost_form',
+ <%= render partial: "/budgets/items/budget_override_cost_form",
locals: {
field_name: "#{name_prefix}[amount]",
cost_value: cost_value,
@@ -110,7 +110,7 @@ See COPYRIGHT and LICENSE files for more details.
title="<%= t(:button_delete) %>"
href="#"
data-action="costs--budget-subform#deleteRow">
- <%= op_icon('icon-context icon-delete') %>
+ <%= op_icon("icon-context icon-delete") %>
<span class="hidden-for-sighted"><%= t(:button_delete) %></span>
</a>
</td>
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 e6d4e1030c4..4e0ca49b916 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
@@ -30,13 +30,13 @@ See COPYRIGHT and LICENSE files for more details.
<%-
templated ||= false
index ||= "INDEX"
- new_or_existing = material_budget_item.new_record? ? 'new' : 'existing'
+ new_or_existing = material_budget_item.new_record? ? "new" : "existing"
id_or_index = material_budget_item.new_record? ? index : material_budget_item.id
prefix = "budget[#{new_or_existing}_material_budget_item_attributes][]"
id_prefix = "budget_#{new_or_existing}_material_budget_item_attributes_#{id_or_index}"
name_prefix = "budget[#{new_or_existing}_material_budget_item_attributes][#{id_or_index}]"
- error_messages = error_messages_for 'material_budget_item'
+ error_messages = error_messages_for "material_budget_item"
-%>
<% unless error_messages.blank? %>
@@ -58,10 +58,10 @@ See COPYRIGHT and LICENSE files for more details.
# but show the appearance of a decimal field on mobile
inputmode: :decimal,
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
- class: 'budget-item-value form--text-field',
+ 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>
@@ -76,10 +76,10 @@ See COPYRIGHT and LICENSE files for more details.
{},
{
index: id_or_index,
- class: 'form--select budget-item-value',
+ 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>
@@ -98,7 +98,7 @@ See COPYRIGHT and LICENSE files for more details.
<a id="<%= id_prefix %>_costs" class="costs--edit-planned-costs-btn icon-context icon-edit" role="button" title="<%= t(:help_click_to_edit) %>">
<%= number_to_currency(cost_value) %>
</a>
- <%= render partial: '/budgets/items/budget_override_cost_form',
+ <%= render partial: "/budgets/items/budget_override_cost_form",
locals: {
field_name: "#{name_prefix}[amount]",
cost_value: cost_value,
@@ -109,7 +109,7 @@ See COPYRIGHT and LICENSE files for more details.
<a class="delete-budget-item no-decoration-on-hover"
title="<%= t(:button_delete) %>"
data-action="costs--budget-subform#deleteRow">
- <%= op_icon('icon-context icon-delete') %>
+ <%= op_icon("icon-context icon-delete") %>
<span class="hidden-for-sighted"><%= t(:button_delete) %></span>
</a>
</td>
diff --git a/modules/budgets/app/views/budgets/new.html.erb b/modules/budgets/app/views/budgets/new.html.erb
index b4104b42060..b3a91f15796 100644
--- a/modules/budgets/app/views/budgets/new.html.erb
+++ b/modules/budgets/app/views/budgets/new.html.erb
@@ -41,9 +41,9 @@ 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} %>
- <%= 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',
- class: 'button -primary' %>
+ :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",
+ 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 9e9f6c94943..5449a6a8ea7 100644
--- a/modules/budgets/app/views/budgets/show.html.erb
+++ b/modules/budgets/app/views/budgets/show.html.erb
@@ -34,14 +34,14 @@ See COPYRIGHT and LICENSE files for more details.
<h3><%= h @budget.subject %></h3>
<p class="author">
<%= authoring @budget.created_at, @budget.author %>.
- <%= t(:label_updated_time, value: distance_of_time_in_words(Time.now, @budget.updated_at)) + '.' if @budget.created_at != @budget.updated_at %>
+ <%= t(:label_updated_time, value: distance_of_time_in_words(Time.now, @budget.updated_at)) + "." if @budget.created_at != @budget.updated_at %>
</p>
<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|
component.with_attribute(key: Budget.human_attribute_name(:type), value: @budget.type_label)
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
@@ -59,6 +59,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/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb b/modules/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb
index b16d3928969..ea99ac9b116 100644
--- a/modules/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb
+++ b/modules/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb
@@ -98,7 +98,7 @@ end -%>
class="budget-item-container"
data-costs--budget-subform-target="table">
<%- @budget.labor_budget_items.each_with_index do |labor_budget_item, index| -%>
- <%= render partial: 'budgets/items/labor_budget_item', object: labor_budget_item, locals: {index: index} %>
+ <%= render partial: "budgets/items/labor_budget_item", object: labor_budget_item, locals: {index: index} %>
<%- end -%>
</tbody>
</table>
@@ -111,7 +111,7 @@ end -%>
role="link"
title="<%= t(:button_add_budget_item) %>"
data-action="costs--budget-subform#addRow">
- <%= op_icon('icon icon-add') %>
+ <%= op_icon("icon icon-add") %>
</a>
</div>
<table style="display:none"
diff --git a/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb b/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb
index 17c1dc75d81..756646667f5 100644
--- a/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb
+++ b/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb
@@ -106,7 +106,7 @@ See COPYRIGHT and LICENSE files for more details.
class="budget-item-container"
data-costs--budget-subform-target="table">
<%- @budget.material_budget_items.each_with_index do |material_budget_item, index| -%>
- <%= render partial: 'budgets/items/material_budget_item', object: material_budget_item, locals: {index: index} %>
+ <%= render partial: "budgets/items/material_budget_item", object: material_budget_item, locals: {index: index} %>
<%- end -%>
</tbody>
</table>
@@ -118,7 +118,7 @@ See COPYRIGHT and LICENSE files for more details.
role="button"
title="<%= t(:button_add_budget_item) %>"
data-action="costs--budget-subform#addRow">
- <%= op_icon('icon icon-add') %>
+ <%= op_icon("icon icon-add") %>
</a>
</div>
<table style="display:none"
diff --git a/modules/calendar/app/views/calendar/calendars/_form.html.erb b/modules/calendar/app/views/calendar/calendars/_form.html.erb
index bc167ab6836..3f456333c29 100644
--- a/modules/calendar/app/views/calendar/calendars/_form.html.erb
+++ b/modules/calendar/app/views/calendar/calendars/_form.html.erb
@@ -36,55 +36,55 @@ See COPYRIGHT and LICENSE files for more details.
label: t(:label_title),
required: true,
size: 60,
- container_class: '-wide' %>
+ container_class: "-wide" %>
</div>
<div class="form--field -required">
<label class="form--label" for="project_id"><%= Query.human_attribute_name(:project) %>:</label>
<div class="form--field-container">
- <%= angular_component_tag 'opce-project-autocompleter',
+ <%= angular_component_tag "opce-project-autocompleter",
inputs: {
- filters: [{ name: :user_action, operator: '=', values: ['calendars/create'] }],
- inputName: 'project_id',
+ 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',
+ id: "project_id",
+ class: "form--select-container -wide remote-field--input",
data: {
- 'test-selector': 'project_id'
+ 'test-selector': "project_id"
} %>
</div>
<div class="form--field-instructions">
- <p><%= t 'help_texts.views.project',
+ <p><%= t "help_texts.views.project",
singular: t(:label_calendar).downcase,
plural: t(:label_calendar_plural) %></p>
</div>
</div>
<div class="form--field">
- <%= styled_label_tag 'query[public]',
+ <%= styled_label_tag "query[public]",
Query.human_attribute_name(:public) %>
<div class="form--field-container">
- <%= styled_check_box_tag 'query[public]',
- '1',
+ <%= styled_check_box_tag "query[public]",
+ "1",
@view.public %>
</div>
<div class="form--field-instructions">
- <p><%= t 'help_texts.views.public' %></p>
+ <p><%= t "help_texts.views.public" %></p>
</div>
</div>
<div class="form--field">
- <%= styled_label_tag 'query[starred]',
+ <%= styled_label_tag "query[starred]",
t(:label_favorite) %>
<div class="form--field-container">
- <%= styled_check_box_tag 'query[starred]',
- '1',
+ <%= styled_check_box_tag "query[starred]",
+ "1",
@view.starred %>
</div>
<div class="form--field-instructions">
- <p><%= t 'help_texts.views.favoured' %></p>
+ <p><%= t "help_texts.views.favoured" %></p>
</div>
</div>
</section>
diff --git a/modules/calendar/app/views/calendar/calendars/new.html.erb b/modules/calendar/app/views/calendar/calendars/new.html.erb
index d26aa576d87..d92ce608d95 100644
--- a/modules/calendar/app/views/calendar/calendars/new.html.erb
+++ b/modules/calendar/app/views/calendar/calendars/new.html.erb
@@ -39,9 +39,9 @@ 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} %>
- <%= styled_button_tag t(:button_create), class: '-primary' %>
- <%= link_to t(:button_cancel), { controller: 'calendar/calendars', action: 'index' },
- class: 'button' %>
+<%= 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" %>
<% end %>
diff --git a/modules/calendar/app/views/calendar/menus/_menu.html.erb b/modules/calendar/app/views/calendar/menus/_menu.html.erb
index 336ee33a79f..4ecb73e0680 100644
--- a/modules/calendar/app/views/calendar/menus/_menu.html.erb
+++ b/modules/calendar/app/views/calendar/menus/_menu.html.erb
@@ -1,5 +1,5 @@
<%= turbo_frame_tag "calendar_sidemenu",
src: menu_project_calendars_path(@project, **params.permit(:id)),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
diff --git a/modules/costs/app/views/cost_types/_list.html.erb b/modules/costs/app/views/cost_types/_list.html.erb
index 19fb91b5bea..170c4734624 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,15 +82,15 @@ 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" %>
<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,
- '',
+ "",
value: "",
name: :rate,
size: 7,
@@ -102,20 +102,20 @@ See COPYRIGHT and LICENSE files for more details.
</span>
<button type="submit"
class="button submit_cost_type">
- <%= icon_wrapper('icon icon-save', I18n.t(:caption_save_rate)) %>
+ <%= icon_wrapper("icon icon-save", I18n.t(:caption_save_rate)) %>
</button>
<% end %>
</td>
- <%= content_tag :td, cost_type.is_default? ? icon_wrapper('icon icon-checkmark', I18n.t(:general_text_Yes)) : "" %>
+ <%= content_tag :td, cost_type.is_default? ? icon_wrapper("icon icon-checkmark", I18n.t(:general_text_Yes)) : "" %>
<td class="buttons">
<%= form_for cost_type, url: cost_type_path(cost_type),
method: :delete,
html: { id: "delete_cost_type_#{cost_type.id}",
- class: 'delete_cost_type',
+ class: "delete_cost_type",
title: t(:button_lock) } do |f| %>
<button type="submit"
class="button--link submit_cost_type">
- <%= icon_wrapper('icon icon-locked', I18n.t(:button_lock)) %>
+ <%= icon_wrapper("icon icon-locked", I18n.t(:button_lock)) %>
</button>
<% end %>
</td>
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 7b618f93677..916ab0fc569 100644
--- a/modules/costs/app/views/cost_types/_list_deleted.html.erb
+++ b/modules/costs/app/views/cost_types/_list_deleted.html.erb
@@ -81,10 +81,10 @@ See COPYRIGHT and LICENSE files for more details.
<%= form_for cost_type, url: restore_cost_type_path(cost_type),
method: :patch,
html: { id: "restore_cost_type_#{cost_type.id}",
- class: 'restore_cost_type' } do |f| %>
+ class: "restore_cost_type" } do |f| %>
<button type="submit"
class="button--link submit_cost_type">
- <%= icon_wrapper('icon icon-unlocked', I18n.t(:button_unlock)) %>
+ <%= icon_wrapper("icon icon-unlocked", I18n.t(:button_unlock)) %>
</button>
<% end %>
</td>
diff --git a/modules/costs/app/views/cost_types/_rate.html.erb b/modules/costs/app/views/cost_types/_rate.html.erb
index 1372a9c97d5..95a03d24723 100644
--- a/modules/costs/app/views/cost_types/_rate.html.erb
+++ b/modules/costs/app/views/cost_types/_rate.html.erb
@@ -30,13 +30,13 @@ See COPYRIGHT and LICENSE files for more details.
<%-
templated ||= false
index ||= "INDEX"
- new_or_existing = rate.new_record? ? 'new' : 'existing'
+ new_or_existing = rate.new_record? ? "new" : "existing"
id_or_index = rate.new_record? ? index : rate.id
prefix = "cost_type[#{new_or_existing}_rate_attributes][]"
id_prefix = "cost_type_#{new_or_existing}_rate_attributes_#{id_or_index}"
@rate = rate
- error_messages = error_messages_for 'rate'
+ error_messages = error_messages_for "rate"
-%>
<% unless error_messages.blank? %>
@@ -45,14 +45,14 @@ See COPYRIGHT and LICENSE files for more details.
<%= fields_for prefix, rate, builder: TabularFormBuilder do |rate_form| %>
<%= content_tag(:tr,
id: id_prefix,
- data: templated ? { 'row-target': 'true' } : {},
- style: templated ? 'display: none;' : ''
+ data: templated ? { 'row-target': "true" } : {},
+ style: templated ? "display: none;" : ""
) do %>
<td class="-no-ellipsis">
<label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label>
<%= rate_form.date_picker :valid_from,
index: id_or_index,
- class: 'date costs-date-picker',
+ class: "date costs-date-picker",
no_field_container: true,
no_label: true,
required: templated ? false : true %>
@@ -78,7 +78,7 @@ See COPYRIGHT and LICENSE files for more details.
<a href="#"
class="delete-row-button no-decoration-on-hover"
data-action="subform#deleteRow">
- <%= op_icon('icon-context icon-delete', title: t(:button_delete)) %>
+ <%= op_icon("icon-context icon-delete", title: t(:button_delete)) %>
</a>
</td>
<% end %>
diff --git a/modules/costs/app/views/cost_types/edit.html.erb b/modules/costs/app/views/cost_types/edit.html.erb
index 7e2a83dab4c..a9586b0dcb9 100644
--- a/modules/costs/app/views/cost_types/edit.html.erb
+++ b/modules/costs/app/views/cost_types/edit.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<% title = @cost_type.name %>
<% else %>
<% html_title t(:label_administration), t(:label_cost_type_plural) %>
- <% title = t(:label_new) + ' ' + I18n.t('activerecord.models.cost_type.one') %>
+ <% title = t(:label_new) + " " + I18n.t("activerecord.models.cost_type.one") %>
<% end %>
<%=
@@ -46,18 +46,18 @@ See COPYRIGHT and LICENSE files for more details.
%>
<%= labelled_tabular_form_for @cost_type,
- data: { controller: 'subform', 'application-target': 'dynamic' } do |f| %>
- <%= error_messages_for 'cost_type' %>
+ data: { controller: "subform", 'application-target': "dynamic" } do |f| %>
+ <%= error_messages_for "cost_type" %>
<%= back_url_hidden_field_tag %>
<div class="form--field -required">
- <%= f.text_field :name, required: true, container_class: '-wide' %>
+ <%= f.text_field :name, required: true, container_class: "-wide" %>
</div>
<div class="form--field -required">
- <%= f.text_field :unit, required: true, container_class: '-middle' %>
+ <%= f.text_field :unit, required: true, container_class: "-middle" %>
</div>
<div class="form--field -required">
- <%= f.text_field :unit_plural, required: true, container_class: '-middle' %>
+ <%= f.text_field :unit_plural, required: true, container_class: "-middle" %>
</div>
<div class="form--field">
<%= f.check_box :default %>
@@ -109,7 +109,7 @@ See COPYRIGHT and LICENSE files for more details.
b.valid_from <=> a.valid_from
end
end.each_with_index do |rate, index| %>
- <%= render partial: 'rate', object: rate, locals: {index: index} %>
+ <%= render partial: "rate", object: rate, locals: {index: index} %>
<%- end -%>
</tbody>
</table>
@@ -123,9 +123,9 @@ See COPYRIGHT and LICENSE files for more details.
class="add-row-button wp-inline-create--add-link"
title="<%= t(:button_add_rate) %>"
data-action="subform#addRow">
- <%= op_icon('icon icon-add') %>
+ <%= op_icon("icon icon-add") %>
</a>
</div>
- <%= styled_button_tag t(:button_save), class: '-with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-with-icon icon-checkmark" %>
<% end %>
</costs-subform>
diff --git a/modules/costs/app/views/cost_types/index.html.erb b/modules/costs/app/views/cost_types/index.html.erb
index c5bfbaa0663..c6b3f0c6c8b 100644
--- a/modules/costs/app/views/cost_types/index.html.erb
+++ b/modules/costs/app/views/cost_types/index.html.erb
@@ -49,14 +49,14 @@ See COPYRIGHT and LICENSE files for more details.
end %>
<% subheader.with_bottom_pane_component do %>
- <%= styled_form_tag(cost_types_path, { method: :get, id: 'query_form' }) do %>
+ <%= styled_form_tag(cost_types_path, { method: :get, id: "query_form" }) do %>
<fieldset id="filters" class="simple-filters--container">
<legend><%= t(:label_filter_plural) %></legend>
<ul class="simple-filters--filters">
<li class="simple-filters--filter">
- <%= styled_label_tag :fixed_date, t(:'attributes.fixed_date'), class: 'simple-filters--filter-name' %>
+ <%= styled_label_tag :fixed_date, t(:'attributes.fixed_date'), class: "simple-filters--filter-name" %>
<div class='simple-filters--filter-value'>
- <%= angular_component_tag 'opce-basic-single-date-picker',
+ <%= angular_component_tag "opce-basic-single-date-picker",
inputs: {
value: @fixed_date,
id: :start_date,
@@ -65,14 +65,14 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</li>
<li class="simple-filters--filter">
- <%= styled_label_tag :include_deleted, t(:caption_show_locked), class: 'simple-filters--filter-name -small' %>
+ <%= styled_label_tag :include_deleted, t(:caption_show_locked), class: "simple-filters--filter-name -small" %>
<div class="simple-filters--filter-value">
<%= styled_check_box_tag :include_deleted, "1", @include_deleted, autocomplete: "off" %>
</div>
</li>
<li class="simple-filters--controls">
- <%= submit_tag t(:button_apply), class: 'button -primary -small' %>
- <%= link_to t(:button_clear), cost_types_path, class: 'button -small -with-icon icon-undo' %>
+ <%= submit_tag t(:button_apply), class: "button -primary -small" %>
+ <%= link_to t(:button_clear), cost_types_path, class: "button -small -with-icon icon-undo" %>
</li>
</ul>
</fieldset>
@@ -80,11 +80,11 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% end %>
-<%= render partial: 'list' %>
+<%= render partial: "list" %>
<% if @include_deleted %>
<div class="cost-types--list-deleted">
<h3><%= t(:label_locked_cost_types) %></h3>
- <%= render partial: 'list_deleted' %>
+ <%= render partial: "list_deleted" %>
</div>
<% end %>
diff --git a/modules/costs/app/views/costlog/edit.html.erb b/modules/costs/app/views/costlog/edit.html.erb
index b586f48fb9b..4501a3ba595 100644
--- a/modules/costs/app/views/costlog/edit.html.erb
+++ b/modules/costs/app/views/costlog/edit.html.erb
@@ -31,24 +31,24 @@ See COPYRIGHT and LICENSE files for more details.
<h2><%= t(:label_log_costs) %></h2>
<% url = @cost_entry.new_record? ?
- { action: 'create', project_id: @project.id } :
- { action: 'update', id: @cost_entry } %>
+ { action: "create", project_id: @project.id } :
+ { action: "update", id: @cost_entry } %>
<% method = @cost_entry.new_record? ?
:post :
:put %>
<%= labelled_tabular_form_for @cost_entry, url: url, html: { method: method } do |f| %>
- <%= error_messages_for 'cost_entry' %>
+ <%= 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,
size: 6,
required: true,
autofocus: true,
- container_class: '-xslim' %>
+ container_class: "-xslim" %>
<% if @cost_entry.work_package %>
<div class="form--field-instructions">
@@ -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 %>
@@ -69,7 +69,7 @@ See COPYRIGHT and LICENSE files for more details.
user_collection_for_select_options,
required: true,
prompt: true,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<% else %>
<%= f.hidden_field :user_id, value: User.current.id %>
@@ -79,11 +79,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.select :cost_type_id,
cost_types_collection_for_select_options,
{ prompt: true,
- container_class: '-middle' },
+ container_class: "-middle" },
{
required: true,
- class: 'remote-field--input',
- data: { :'remote-field-key' => 'cost_type_id' }
+ class: "remote-field--input",
+ data: { :'remote-field-key' => "cost_type_id" }
} %></p>
</div>
<div class="form--field -required">
@@ -92,7 +92,7 @@ See COPYRIGHT and LICENSE files for more details.
value: unitless_currency_number(@cost_entry.units),
size: 6,
required: true,
- container_class: '-slim' %>
+ container_class: "-slim" %>
<% else %>
<% suffix = @cost_entry.units == 1 ? @cost_entry.cost_type.unit : @cost_entry.cost_type.unit_plural %>
<%= f.text_field :units,
@@ -100,10 +100,10 @@ See COPYRIGHT and LICENSE files for more details.
value: unitless_currency_number(@cost_entry.units),
required: true,
suffix: h(suffix),
- suffix_id: 'cost_entry_unit_name',
- class: 'remote-field--input',
- data: { :'remote-field-key' => 'units' },
- container_class: '-slim' %>
+ suffix_id: "cost_entry_unit_name",
+ class: "remote-field--input",
+ data: { :'remote-field-key' => "units" },
+ container_class: "-slim" %>
<% end %>
</div>
@@ -118,7 +118,7 @@ See COPYRIGHT and LICENSE files for more details.
title="<%= t(:help_click_to_edit) %>">
<%= number_to_currency(@cost_entry.real_costs) %>
</a>
- <%= render partial: '/budgets/items/budget_override_cost_form',
+ <%= render partial: "/budgets/items/budget_override_cost_form",
locals: {
field_name: "cost_entry[overridden_costs]",
cost_value: unitless_currency_number(@cost_entry.real_costs),
@@ -128,12 +128,12 @@ See COPYRIGHT and LICENSE files for more details.
<% else %>
<span class="form--field-container">
<%= f.text_field :overridden_costs,
- value: @cost_entry.overridden_costs ? unitless_currency_number(@cost_entry.overridden_costs).strip : '',
+ value: @cost_entry.overridden_costs ? unitless_currency_number(@cost_entry.overridden_costs).strip : "",
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
no_label: true,
suffix: Setting.costs_currency,
- id: 'cost_entry_cost_value',
- container_class: '-middle',
+ id: "cost_entry_cost_value",
+ container_class: "-middle",
size: 7 %>
</span>
<div class="form--field-instructions">
@@ -143,10 +143,10 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="form--field">
- <%= f.text_field :comments, size: 100, container_class: '-wide' %>
+ <%= f.text_field :comments, size: 100, container_class: "-wide" %>
</div>
- <%= styled_button_tag t(:button_save), class: '-with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-with-icon icon-checkmark" %>
<opce-remote-field-updater data-url="<%= url_for(controller: :budgets, action: :update_material_budget_item, project_id: @cost_entry.project) %>"
data-mode="json">
diff --git a/modules/costs/app/views/costs_settings/show.html.erb b/modules/costs/app/views/costs_settings/show.html.erb
index 55efa3ee5b9..7125ea549c4 100644
--- a/modules/costs/app/views/costs_settings/show.html.erb
+++ b/modules/costs/app/views/costs_settings/show.html.erb
@@ -40,7 +40,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_form_tag(
admin_costs_settings_path,
method: :patch,
- class: 'op-costs-admin-settings'
+ class: "op-costs-admin-settings"
) do %>
<section class="form--section">
@@ -63,5 +63,5 @@ See COPYRIGHT and LICENSE files for more details.
<%- end %>
</section>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/modules/costs/app/views/hourly_rates/_list.html.erb b/modules/costs/app/views/hourly_rates/_list.html.erb
index df54cd6e45c..8cb816bc530 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 609dc98ecba..913df2f14b0 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? %>
@@ -79,7 +79,7 @@ See COPYRIGHT and LICENSE files for more details.
<tr>
<td style="padding-right: 1em;"><%= rate.valid_from %></td>
<td class="currency"><%= number_to_currency(rate.rate) %></td>
- <td><%= rate == current_rate ? icon_wrapper('icon-context icon-checkmark',I18n.t(:general_text_Yes)) : "" %></td>
+ <td><%= rate == current_rate ? icon_wrapper("icon-context icon-checkmark",I18n.t(:general_text_Yes)) : "" %></td>
</tr>
<%- end -%>
</tbody>
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 76100eee53a..b1441b79248 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>
@@ -91,7 +91,7 @@ See COPYRIGHT and LICENSE files for more details.
<tr>
<td style="padding-right: 1em;"><%= rate.valid_from %></td>
<td class="currency"><%= number_to_currency(rate.rate) %></td>
- <td><%= rate == current_rate ? icon_wrapper('icon-context icon-checkmark',I18n.t(:general_text_Yes)) : "" %></td>
+ <td><%= rate == current_rate ? icon_wrapper("icon-context icon-checkmark",I18n.t(:general_text_Yes)) : "" %></td>
</tr>
<%- end -%>
</tbody>
diff --git a/modules/costs/app/views/hourly_rates/_rate.html.erb b/modules/costs/app/views/hourly_rates/_rate.html.erb
index 63f6755b886..ff7802b55bf 100644
--- a/modules/costs/app/views/hourly_rates/_rate.html.erb
+++ b/modules/costs/app/views/hourly_rates/_rate.html.erb
@@ -30,7 +30,7 @@ See COPYRIGHT and LICENSE files for more details.
<%-
templated ||= false
index ||= "INDEX"
- new_or_existing = rate.new_record? ? 'new' : 'existing'
+ new_or_existing = rate.new_record? ? "new" : "existing"
id_or_index = rate.new_record? ? index : rate.id
prefix = "user[#{new_or_existing}_rate_attributes][]"
id_prefix = "user_#{new_or_existing}_rate_attributes_#{id_or_index}"
@@ -40,14 +40,14 @@ See COPYRIGHT and LICENSE files for more details.
<%= content_tag(:tr,
class: "subform-row",
id: id_prefix,
- data: templated ? { 'row-target': 'true' } : {},
- style: templated ? 'display: none;' : ''
+ data: templated ? { 'row-target': "true" } : {},
+ style: templated ? "display: none;" : ""
) do %>
<td>
<label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label>
<%= rate_form.date_picker :valid_from,
index: id_or_index,
- class: 'date costs-date-picker',
+ class: "date costs-date-picker",
no_label: true,
no_field_container: true %>
</td>
@@ -67,7 +67,7 @@ See COPYRIGHT and LICENSE files for more details.
</td>
<td class="buttons">
<a href="#" class="delete-row-button no-decoration-on-hover" data-action="subform#deleteRow">
- <%= op_icon('icon-context icon-delete', title: t(:button_delete)) %>
+ <%= op_icon("icon-context icon-delete", title: t(:button_delete)) %>
</a>
</td>
<% end %>
diff --git a/modules/costs/app/views/hourly_rates/edit.html.erb b/modules/costs/app/views/hourly_rates/edit.html.erb
index 79ec32fe306..e912ce45dd0 100644
--- a/modules/costs/app/views/hourly_rates/edit.html.erb
+++ b/modules/costs/app/views/hourly_rates/edit.html.erb
@@ -52,14 +52,14 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<%= labelled_tabular_form_for @user,
- url: {action: 'update', project_id: @project},
- data: { controller: 'subform', 'application-target': 'dynamic' },
+ url: {action: "update", project_id: @project},
+ data: { controller: "subform", 'application-target': "dynamic" },
method: :put do |f| %>
<%= back_url_hidden_field_tag %>
- <%= error_messages_for 'user' %>
+ <%= error_messages_for "user" %>
<%- @rates.each do |rate| -%>
<%- @rate = rate -%>
- <%= error_messages_for 'rate' %>
+ <%= error_messages_for "rate" %>
<%- end -%>
<div class="generic-table--container">
<div class="generic-table--results-container">
@@ -95,7 +95,7 @@ See COPYRIGHT and LICENSE files for more details.
<tbody id="rates_body" class="subform-container" data-subform-target="table">
<%= render partial: "hourly_rates/rate", object: HourlyRate.new(valid_from: Date.current), locals: { templated: true } %>
<%- @rates.each_with_index do |rate, index| -%>
- <%= render partial: 'rate', object: rate, locals: {index: index} %>
+ <%= render partial: "rate", object: rate, locals: {index: index} %>
<%- end -%>
</tbody>
</table>
@@ -104,11 +104,11 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="wp-inline-create-button">
<a href="#" class="add-row-button wp-inline-create--add-link" data-action="subform#addRow">
- <%= op_icon('icon icon-add') %>
+ <%= op_icon("icon icon-add") %>
<%= t(:button_add_rate) %>
</a>
</div>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_save), class: '-with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-with-icon icon-checkmark" %>
</div>
<% end %>
diff --git a/modules/costs/app/views/hourly_rates/show.html.erb b/modules/costs/app/views/hourly_rates/show.html.erb
index 58ff0dee390..21ad8bff7f7 100644
--- a/modules/costs/app/views/hourly_rates/show.html.erb
+++ b/modules/costs/app/views/hourly_rates/show.html.erb
@@ -49,8 +49,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/my/timer/_menu.html.erb b/modules/costs/app/views/my/timer/_menu.html.erb
index 4dbdc7a8944..7ca61540218 100644
--- a/modules/costs/app/views/my/timer/_menu.html.erb
+++ b/modules/costs/app/views/my/timer/_menu.html.erb
@@ -1 +1 @@
-<%= angular_component_tag 'opce-timer-account-menu' %>
+<%= angular_component_tag "opce-timer-account-menu" %>
diff --git a/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb b/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb
index 3e02229fcfc..232505fab8e 100644
--- a/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb
+++ b/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb
@@ -45,5 +45,5 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
</div>
diff --git a/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb b/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb
index ba7f44a3210..330c8ae0263 100644
--- a/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb
+++ b/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb
@@ -40,11 +40,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @project,
url: project_settings_time_entry_activities_path(@project) do %>
- <%= render partial: '/projects/settings/time_entry_activities/activities',
+ <%= render partial: "/projects/settings/time_entry_activities/activities",
locals: { project: @project } %>
<% end %>
<br>
<% else %>
- <%= no_results_box custom_title: t('projects.settings.activities.no_results_title_text') %>
+ <%= no_results_box custom_title: t("projects.settings.activities.no_results_title_text") %>
<% end %>
diff --git a/modules/costs/app/views/users/_rates.html.erb b/modules/costs/app/views/users/_rates.html.erb
index 356eae0392c..890669441c8 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 0fd5be2373e..ec74b1afbcd 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/_form.html.erb b/modules/documents/app/views/documents/_form.html.erb
index daf5fdab999..1b5cc0a3f33 100644
--- a/modules/documents/app/views/documents/_form.html.erb
+++ b/modules/documents/app/views/documents/_form.html.erb
@@ -33,16 +33,16 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.select :category_id,
DocumentCategory.all.map { |c| [c.name, c.id] },
required: true,
- container_class: '-slim' %>
+ container_class: "-slim" %>
</div>
<div class="form--field -required">
- <%= f.text_field :title, required: true, container_class: '-wide' %>
+ <%= f.text_field :title, required: true, container_class: "-wide" %>
</div>
<div class="form--field -visible-overflow">
<%= f.text_area :description,
- container_class: '-xxwide',
+ container_class: "-xxwide",
label_options: {
- class: '-top'
+ class: "-top"
},
with_text_formatting: true,
resource: api_v3_document_resource(f.object),
diff --git a/modules/documents/app/views/documents/edit.html.erb b/modules/documents/app/views/documents/edit.html.erb
index 24085fae3c5..e35b9f04f31 100644
--- a/modules/documents/app/views/documents/edit.html.erb
+++ b/modules/documents/app/views/documents/edit.html.erb
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
end
%>
-<%= labelled_tabular_form_for @document, url: document_path(@document), method: 'PATCH' do |f| -%>
+<%= labelled_tabular_form_for @document, url: document_path(@document), method: "PATCH" do |f| -%>
<%= render partial: "documents/form", locals: { f: f } %>
<%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/modules/documents/app/views/documents/index.html.erb b/modules/documents/app/views/documents/index.html.erb
index e12bba89f88..d92bd4fb4c0 100644
--- a/modules/documents/app/views/documents/index.html.erb
+++ b/modules/documents/app/views/documents/index.html.erb
@@ -42,9 +42,9 @@ 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})) do |button|
+ href: url_for({:controller => "/documents", :action => "new", :project_id => @project})) do |button|
button.with_leading_visual_icon(icon: :plus)
- t('activerecord.models.document')
+ t("activerecord.models.document")
end
end
%>
@@ -58,32 +58,32 @@ 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>
- <%= radio_button_tag 'group_by', 'category', (@group_by == 'category'), class: 'submit-this-form' %>
+ <%= radio_button_tag "group_by", "category", (@group_by == "category"), class: "submit-this-form" %>
<label for="group_by_category">
<%= Document.human_attribute_name(:category) %>
</label><br>
- <%= radio_button_tag 'group_by', 'date', (@group_by == 'date'), class: 'submit-this-form' %>
+ <%= radio_button_tag "group_by", "date", (@group_by == "date"), class: "submit-this-form" %>
<label for="group_by_date">
<%= t(:label_date) %>
</label><br>
- <%= radio_button_tag 'group_by', 'title', (@group_by == 'title'), class: 'submit-this-form' %>
+ <%= radio_button_tag "group_by", "title", (@group_by == "title"), class: "submit-this-form" %>
<label for="group_by_title">
<%= Document.human_attribute_name(:title) %>
</label><br>
- <%= radio_button_tag 'group_by', 'author', (@group_by == 'author'), class: 'submit-this-form' %>
+ <%= radio_button_tag "group_by", "author", (@group_by == "author"), class: "submit-this-form" %>
<label for="group_by_author">
- <%= t 'documents.label_attachment_author' %>
+ <%= t "documents.label_attachment_author" %>
</label>
</p>
</fieldset>
diff --git a/modules/documents/app/views/documents/new.html.erb b/modules/documents/app/views/documents/new.html.erb
index da9df9c9d7e..e14f84127a6 100644
--- a/modules/documents/app/views/documents/new.html.erb
+++ b/modules/documents/app/views/documents/new.html.erb
@@ -37,6 +37,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/documents/app/views/documents/show.html.erb b/modules/documents/app/views/documents/show.html.erb
index 383648819a8..5e2e35795a5 100644
--- a/modules/documents/app/views/documents/show.html.erb
+++ b/modules/documents/app/views/documents/show.html.erb
@@ -42,7 +42,7 @@ See COPYRIGHT and LICENSE files for more details.
mobile_icon: :pencil,
mobile_label: t(:button_edit),
size: :medium,
- href: url_for({controller: '/documents', action: 'edit', id: @document}),
+ href: url_for({controller: "/documents", action: "edit", id: @document}),
aria: { label: t(:button_edit) },
title: t(:button_edit)) do |button|
button.with_leading_visual_icon(icon: :pencil)
@@ -55,7 +55,7 @@ See COPYRIGHT and LICENSE files for more details.
mobile_icon: :trash,
mobile_label: t(:button_delete),
size: :medium,
- href: url_for({controller: '/documents', action: 'destroy', id: @document}),
+ href: url_for({controller: "/documents", action: "destroy", id: @document}),
aria: { label: I18n.t(:button_delete) },
data: {
confirm: I18n.t(:text_are_you_sure),
diff --git a/modules/documents/app/views/help/wiki_syntax_detailed.html.erb b/modules/documents/app/views/help/wiki_syntax_detailed.html.erb
index 09a38b53cf1..2444b4e1614 100644
--- a/modules/documents/app/views/help/wiki_syntax_detailed.html.erb
+++ b/modules/documents/app/views/help/wiki_syntax_detailed.html.erb
@@ -257,7 +257,6 @@ To go live, all you need to add is a database and a web server.
<pre><code>{{include(Foo)}}</code></pre></dd><dt><code>macro_list</code></dt><dd><p>Displays a list of all available macros, including description if available.</p></dd></dl></p>
-
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2>
<p>Code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, cpp, css, delphi, groovy, html, java, javascript, json, php, python, rhtml, ruby, scheme, sql, xml and yaml languages.</p>
diff --git a/modules/gantt/app/views/gantt/gantt/index.html.erb b/modules/gantt/app/views/gantt/gantt/index.html.erb
index bd3bbc4a4d4..50f1cdad2e3 100644
--- a/modules/gantt/app/views/gantt/gantt/index.html.erb
+++ b/modules/gantt/app/views/gantt/gantt/index.html.erb
@@ -27,10 +27,10 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title(t('label_gantt_chart_plural')) -%>
+<% html_title(t("label_gantt_chart_plural")) -%>
<%= call_hook(:view_work_packages_index_bottom, { project: project, query: query }) %>
<% content_for :header_tags do %>
- <%= auto_discovery_link_tag(:atom, { query_id: query, format: 'atom', page: nil, key: User.current.rss_key }, title: t(:label_gantt_chart_plural)) %>
- <%= auto_discovery_link_tag(:atom, {controller: '/journals', action: 'index', query_id: query, format: 'atom', page: nil, key: User.current.rss_key}, title: t(:label_changes_details)) %>
+ <%= auto_discovery_link_tag(:atom, { query_id: query, format: "atom", page: nil, key: User.current.rss_key }, title: t(:label_gantt_chart_plural)) %>
+ <%= auto_discovery_link_tag(:atom, {controller: "/journals", action: "index", query_id: query, format: "atom", page: nil, key: User.current.rss_key}, title: t(:label_changes_details)) %>
<% end %>
diff --git a/modules/gantt/app/views/gantt/menus/_menu.html.erb b/modules/gantt/app/views/gantt/menus/_menu.html.erb
index a2167a1442c..0652e09d7f6 100644
--- a/modules/gantt/app/views/gantt/menus/_menu.html.erb
+++ b/modules/gantt/app/views/gantt/menus/_menu.html.erb
@@ -1,5 +1,5 @@
<%= turbo_frame_tag "gantt_menu",
src: @project ? menu_project_gantt_index_path(@project, params.permit(:query_props, :query_id, :name)) : gantt_menu_path(params.permit(:query_props, :query_id, :name)),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
diff --git a/modules/github_integration/app/views/deploy_targets/_form.html.erb b/modules/github_integration/app/views/deploy_targets/_form.html.erb
index 2f9b59dbd28..0f60dab4f14 100644
--- a/modules/github_integration/app/views/deploy_targets/_form.html.erb
+++ b/modules/github_integration/app/views/deploy_targets/_form.html.erb
@@ -28,13 +28,13 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<section class="form--section" id="deploy_target_form">
<div class="form--field -required" id="deploy_target_host_attributes">
- <%= f.text_field :host, required: true, container_class: '-middle' %>
+ <%= f.text_field :host, required: true, container_class: "-middle" %>
</div>
<div class="form--field -required">
<%= f.select :type,
- ['OpenProject'],
- { container_class: '-slim' },
+ ["OpenProject"],
+ { container_class: "-slim" },
disabled: true,
required: true %>
<span class="form--field-instructions">
@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.
<%# This field is specific to the only type of DeployTarget we support for now, which is OpenProject. %>
<div class="form--field">
- <%= f.text_field "api_key", container_class: '-wide' %>
+ <%= f.text_field "api_key", container_class: "-wide" %>
<span class="form--field-instructions">
<%= link_translate(
:text_deploy_target_api_key_info,
diff --git a/modules/github_integration/app/views/deploy_targets/new.html.erb b/modules/github_integration/app/views/deploy_targets/new.html.erb
index fb9f88eda73..9aaf3a7a2ab 100644
--- a/modules/github_integration/app/views/deploy_targets/new.html.erb
+++ b/modules/github_integration/app/views/deploy_targets/new.html.erb
@@ -41,6 +41,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= error_messages_for @deploy_target %>
<%= labelled_tabular_form_for @deploy_target, url: deploy_targets_path do |f| %>
- <%= render partial: 'deploy_targets/form', locals: { f: f, deploy_target: @deploy_target } %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= render partial: "deploy_targets/form", locals: { f: f, deploy_target: @deploy_target } %>
+ <%= styled_button_tag t(:button_save), class: "-highlight -with-icon icon-checkmark" %>
<% end %>
diff --git a/modules/job_status/app/components/job_status/dialog/body_component.html.erb b/modules/job_status/app/components/job_status/dialog/body_component.html.erb
index d5d4fe05401..13945775b29 100644
--- a/modules/job_status/app/components/job_status/dialog/body_component.html.erb
+++ b/modules/job_status/app/components/job_status/dialog/body_component.html.erb
@@ -18,15 +18,15 @@
flex.with_row { render(Primer::Beta::Link.new(
href: redirect_url,
data: {
- action: 'job-status-polling#redirectClick',
+ action: "job-status-polling#redirectClick",
"job-status-polling-target": job_errors.present? ? nil : "redirect"
}
- )) { I18n.t('job_status_dialog.redirect_link') } }
+ )) { I18n.t("job_status_dialog.redirect_link") } }
end
if download_url.present?
- flex.with_row { render(Primer::Beta::Text.new) { I18n.t('job_status_dialog.download_starts') } }
+ flex.with_row { render(Primer::Beta::Text.new) { I18n.t("job_status_dialog.download_starts") } }
flex.with_row { render(Primer::Beta::Text.new) {
- I18n.t('job_status_dialog.link_to_download',
+ I18n.t("job_status_dialog.link_to_download",
link: (render(Primer::Beta::Link.new(
href: download_url,
target: "_blank",
@@ -37,7 +37,7 @@
data: {
"job-status-polling-target": "download"
}
- )) { I18n.t('job_status_dialog.click_here') })
+ )) { I18n.t("job_status_dialog.click_here") })
).html_safe
} }
end
diff --git a/modules/job_status/app/components/job_status/dialog/dialog_component.html.erb b/modules/job_status/app/components/job_status/dialog/dialog_component.html.erb
index d8f7d3632bf..dfb35457324 100644
--- a/modules/job_status/app/components/job_status/dialog/dialog_component.html.erb
+++ b/modules/job_status/app/components/job_status/dialog/dialog_component.html.erb
@@ -1,11 +1,11 @@
<%= render(Primer::Alpha::Dialog.new(
- title: I18n.t('job_status_dialog.title'),
+ title: I18n.t("job_status_dialog.title"),
visually_hide_title: true,
size: :large,
id: MODAL_ID,
data: {
"application-target": "dynamic",
- controller: 'job-status-polling',
+ controller: "job-status-polling",
"job-status-polling-back-on-close-value": back_on_close
}
)) do |dialog| %>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/_form.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/_form.html.erb
index 59c1e7987d4..6e057ea7e21 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/_form.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/_form.html.erb
@@ -6,24 +6,24 @@
<div class="form--field -required">
<%= f.text_field :name,
required: true,
- container_class: '-middle' %>
+ container_class: "-middle" %>
</div>
<div class="form--field -required">
<%= f.text_field :group_name_attribute,
required: true,
- placeholder: 'cn',
- container_class: '-middle' %>
+ placeholder: "cn",
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_filters.form.group_name_attribute_text') %>
+ <%= t("ldap_groups.synchronized_filters.form.group_name_attribute_text") %>
</div>
</div>
<div class="form--field -required">
<%= f.check_box :sync_users,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_groups.form.sync_users_text') %>
+ <%= t("ldap_groups.synchronized_groups.form.sync_users_text") %>
</div>
</div>
</fieldset>
@@ -36,18 +36,18 @@
LdapAuthSource.pluck(:name, :id),
required: true,
include_blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_groups.form.auth_source_text') %>
+ <%= t("ldap_groups.synchronized_groups.form.auth_source_text") %>
</div>
</div>
<div class="form--field">
<%= f.text_field :base_dn,
required: false,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_filters.form.base_dn_text') %>
+ <%= t("ldap_groups.synchronized_filters.form.base_dn_text") %>
</div>
</div>
</fieldset>
@@ -58,9 +58,9 @@
required: true,
cols: 200,
rows: 10,
- container_class: '-large' %>
+ container_class: "-large" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_filters.form.filter_string_text') %>
+ <%= t("ldap_groups.synchronized_filters.form.filter_string_text") %>
</div>
</div>
</fieldset>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
index 4b04606caeb..caab807b8bd 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
@@ -1,28 +1,28 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_filters.destroy.title')) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_filters.destroy.title")) -%>
<%= styled_form_tag({ action: :destroy, ldap_group_id: @filter.id },
- class: 'danger-zone',
+ class: "danger-zone",
method: :delete) do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('ldap_groups.synchronized_filters.destroy.title', name: @filter.name) %>
+ <%= t("ldap_groups.synchronized_filters.destroy.title", name: @filter.name) %>
</h3>
<p>
</p>
<p class="danger-zone--warning">
<span class="icon icon-info2"></span>
- <%= t('ldap_groups.synchronized_filters.destroy.confirmation', name: @filter.name, groups_count: @filter.groups.count) %>
+ <%= t("ldap_groups.synchronized_filters.destroy.confirmation", name: @filter.name, groups_count: @filter.groups.count) %>
</p>
<% if @filter.groups.count > 0 %>
- <p><%= t('ldap_groups.synchronized_filters.destroy.removed_groups') %></p>
+ <p><%= t("ldap_groups.synchronized_filters.destroy.removed_groups") %></p>
<div class="generic-table--container">
<div class="generic-table--results-container">
<table class="generic-table" data-controller="table-highlighting">
<thead>
<th>
<div class="generic-table--sort-header-outer">
- <span class="generic-table--sort-header"><%= t('attributes.name') %>
+ <span class="generic-table--sort-header"><%= t("attributes.name") %>
</span>
</div>
</th>
@@ -37,7 +37,7 @@
<tr>
<td><%= link_to synced_group.group.name,
edit_group_path(synced_group.group),
- target: '_blank' %>
+ target: "_blank" %>
</td>
<td><%= synced_group.dn %></td>
</tr>
@@ -48,20 +48,20 @@
</div>
<% end %>
<p>
- <%= t('ldap_groups.synchronized_filters.destroy.verification',
+ <%= t("ldap_groups.synchronized_filters.destroy.verification",
name: "<em class=\"danger-zone--expected-value\">#{h(@filter.name)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<input type="text"><input>
- <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to t(:button_cancel),
ldap_groups_synchronized_groups_path,
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' %>
+ class: "button -with-icon icon-cancel" %>
</div>
</section>
<% end %>
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 0d27bc4e3da..fe9deafe415 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
@@ -18,10 +18,10 @@
as: :synchronized_filter,
url: { action: :update } do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :show }, class: 'button -with-icon icon-cancel' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), { action: :show }, class: "button -with-icon icon-cancel" %>
</p>
<% end %>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb
index ba63fd13a4e..b03613438d7 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_filters.add_new')) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_filters.add_new")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -14,10 +14,10 @@
as: :synchronized_filter,
url: { action: :create } do |f| %>
- <%= render partial: 'form', locals: { f: f } %>
+ <%= render partial: "form", locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), ldap_groups_synchronized_groups_path, class: 'button -with-icon icon-cancel' %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), ldap_groups_synchronized_groups_path, class: "button -with-icon icon-cancel" %>
</p>
<% end %>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/show.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/show.html.erb
index c1a2a801f2e..75a16d942d2 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/show.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/show.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_filters.plural'), h(@filter.name)) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_filters.plural"), h(@filter.name)) -%>
<%= render LdapGroups::SynchronizedFilters::ShowPageHeaderComponent.new(filter: @filter) %>
@@ -29,17 +29,17 @@
end)
component.with_attribute(key: @filter.class.human_attribute_name(:filter_string),
value: @filter.filter_string)
- component.with_attribute(key: t('ldap_groups.synchronized_groups.plural'),
+ component.with_attribute(key: t("ldap_groups.synchronized_groups.plural"),
value: @filter.groups.count)
end %>
</section>
<section class="admin--edit-section">
- <%= toolbar(title: t('ldap_groups.synchronized_groups.plural')) do %>
+ <%= toolbar(title: t("ldap_groups.synchronized_groups.plural")) do %>
<li class="toolbar-item">
<%= link_to({ action: :synchronize },
- class: 'button') do %>
- <span class="button--text"><%= t('ldap_groups.label_synchronize') %></span>
+ class: "button") do %>
+ <span class="button--text"><%= t("ldap_groups.label_synchronize") %></span>
<% end %>
</li>
<% end %>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb
index d03bb9dd92a..31cf5b0ae97 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb
@@ -1,34 +1,34 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_groups.destroy.title')) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_groups.destroy.title")) -%>
<%= styled_form_tag({ action: :destroy, ldap_group_id: @group.id },
- class: 'danger-zone',
+ class: "danger-zone",
method: :delete) do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('ldap_groups.synchronized_groups.destroy.title', name: @group.dn) %>
+ <%= t("ldap_groups.synchronized_groups.destroy.title", name: @group.dn) %>
</h3>
<p>
</p>
<p class="danger-zone--warning">
<span class="icon icon-info2"></span>
- <%= t('ldap_groups.synchronized_groups.destroy.confirmation', name: @group.dn, users_count: @group.users.count) %>
+ <%= t("ldap_groups.synchronized_groups.destroy.confirmation", name: @group.dn, users_count: @group.users.count) %>
</p>
<p>
- <span><%= t('ldap_groups.synchronized_groups.destroy.info') %></span>
+ <span><%= t("ldap_groups.synchronized_groups.destroy.info") %></span>
<br>
- <%= t('ldap_groups.synchronized_groups.destroy.verification',
+ <%= t("ldap_groups.synchronized_groups.destroy.verification",
name: "<em class=\"danger-zone--expected-value\">#{h(@group.dn)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<input type="text"><input>
- <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to t(:button_cancel),
{ action: :index },
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' %>
+ class: "button -with-icon icon-cancel" %>
</div>
</section>
<% end %>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/index.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/index.html.erb
index 5ec8a97472f..c83eec27f0b 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/index.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/index.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_groups.plural')) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_groups.plural")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -37,17 +37,17 @@ end %>
<div class="op-toast -info">
<div class="op-toast--content">
- <strong><%= t('note') %></strong>
- <%= t('ldap_groups.synchronized_groups.help_text_html') %>
+ <strong><%= t("note") %></strong>
+ <%= t("ldap_groups.synchronized_groups.help_text_html") %>
</div>
</div>
<section class="admin--edit-section">
- <h3 class="form--section-title"><%= t('ldap_groups.synchronized_filters.plural') %></h3>
+ <h3 class="form--section-title"><%= t("ldap_groups.synchronized_filters.plural") %></h3>
<%= render ::LdapGroups::SynchronizedFilters::TableComponent.new(rows: @filters) %>
</section>
<section class="admin--edit-section">
- <h3 class="form--section-title"><%= t('ldap_groups.synchronized_groups.plural') %></h3>
+ <h3 class="form--section-title"><%= t("ldap_groups.synchronized_groups.plural") %></h3>
<%= render ::LdapGroups::SynchronizedGroups::TableComponent.new(rows: @groups) %>
</section>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
index ad6f038b098..b2ec62f75f7 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_groups.add_new')) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_groups.add_new")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -17,16 +17,16 @@
url: { action: :create } do |f| %>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= @group.class.human_attribute_name 'auth_source' %></legend>
+ <legend class="form--fieldset-legend"><%= @group.class.human_attribute_name "auth_source" %></legend>
<div class="form--field -required">
<%= f.select :ldap_auth_source_id,
LdapAuthSource.pluck(:name, :id),
required: true,
include_blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_groups.form.auth_source_text') %>
+ <%= t("ldap_groups.synchronized_groups.form.auth_source_text") %>
</div>
</div>
</fieldset>
@@ -36,17 +36,17 @@
<div class="form--field -required">
<%= f.text_field :dn,
required: true,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_groups.form.dn_text') %>
+ <%= t("ldap_groups.synchronized_groups.form.dn_text") %>
</div>
</div>
<div class="form--field -required">
<%= f.check_box :sync_users,
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_groups.form.sync_users_text') %>
+ <%= t("ldap_groups.synchronized_groups.form.sync_users_text") %>
</div>
</div>
@@ -55,15 +55,15 @@
Group.pluck(:lastname, :id),
required: true,
include_blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
- container_class: '-middle' %>
+ container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('ldap_groups.synchronized_groups.form.group_text') %>
+ <%= t("ldap_groups.synchronized_groups.form.group_text") %>
</div>
</div>
</fieldset>
<p>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), url_for(action: :index), class: 'button -with-icon icon-cancel' %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), url_for(action: :index), class: "button -with-icon icon-cancel" %>
</p>
<% end %>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/show.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/show.html.erb
index 57fea9be78c..1271fdd257c 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/show.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/show.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_groups.plural'), h(@group.dn)) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_groups.plural"), h(@group.dn)) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/upsale.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/upsale.html.erb
index e4553a97cf1..eead66f02ac 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/upsale.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/upsale.html.erb
@@ -1,9 +1,9 @@
-<% html_title(t(:label_administration), t('ldap_groups.synchronized_groups.plural')) -%>
+<% html_title(t(:label_administration), t("ldap_groups.synchronized_groups.plural")) -%>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
- feature_title: t('ldap_groups.synchronized_groups.plural'),
- feature_description: t('ldap_groups.synchronized_groups.upsale.description'),
- feature_reference: 'enterprise-ldap-groups',
- feature_image: 'enterprise/ldap-groups.jpg'
+ feature_title: t("ldap_groups.synchronized_groups.plural"),
+ feature_description: t("ldap_groups.synchronized_groups.upsale.description"),
+ feature_reference: "enterprise-ldap-groups",
+ feature_image: "enterprise/ldap-groups.jpg"
} %>
diff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb
index e0456e27b2a..f5c89e14fac 100644
--- a/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb
@@ -5,7 +5,7 @@
method: @method,
url: @submit_path
) do |f|
- grid_layout('op-meeting-agenda-item-form', tag: :div) do |grid|
+ grid_layout("op-meeting-agenda-item-form", tag: :div) do |grid|
grid.with_area(:title) do
case @type
when :simple
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
index 0a6b32f1d99..5a0776a105b 100644
--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
@@ -1,9 +1,9 @@
<%=
component_wrapper do
- grid_layout('op-meeting-agenda-item', tag: :div, id: "item-#{@meeting_agenda_item.id}") do |grid|
+ grid_layout("op-meeting-agenda-item", tag: :div, id: "item-#{@meeting_agenda_item.id}") do |grid|
if drag_and_drop_enabled?
grid.with_area(:'drag-handle', tag: :div, classes: "hide-when-print") do
- render(Primer::OpenProject::DragHandle.new(classes: 'handle'))
+ render(Primer::OpenProject::DragHandle.new(classes: "handle"))
end
end
@@ -11,15 +11,15 @@
if @meeting_agenda_item.visible_work_package?
render(WorkPackages::InfoLineComponent.new(work_package: @meeting_agenda_item.work_package))
elsif @meeting_agenda_item.linked_work_package?
- render(Primer::Beta::Text.new(font_size: :small, mr: 2, color: :subtle, test_selector: 'op-meeting-agenda-title')) do
+ render(Primer::Beta::Text.new(font_size: :small, mr: 2, color: :subtle, test_selector: "op-meeting-agenda-title")) do
I18n.t(:label_agenda_item_undisclosed_wp, id: @meeting_agenda_item.work_package_id)
end
elsif @meeting_agenda_item.deleted_work_package?
- render(Primer::Beta::Text.new(tag: :s, font_size: :small, mr: 2, color: :danger, test_selector: 'op-meeting-agenda-title')) do
+ render(Primer::Beta::Text.new(tag: :s, font_size: :small, mr: 2, color: :danger, test_selector: "op-meeting-agenda-title")) do
I18n.t(:label_agenda_item_deleted_wp)
end
else
- render(Primer::Beta::Text.new(font_size: :normal, mr: 2, font_weight: :bold, test_selector: 'op-meeting-agenda-title')) do
+ render(Primer::Beta::Text.new(font_size: :normal, mr: 2, font_weight: :bold, test_selector: "op-meeting-agenda-title")) do
@meeting_agenda_item.title
end
end
@@ -28,7 +28,7 @@
grid.with_area(:title, tag: :div) do
if @meeting_agenda_item.visible_work_package?
render(Primer::Beta::Link.new(href: work_package_path(@meeting_agenda_item.work_package), underline: false,
- test_selector: 'op-meeting-agenda-title',
+ test_selector: "op-meeting-agenda-title",
font_size: :normal, font_weight: :bold, target: "_blank")) do
@meeting_agenda_item.work_package.subject
end
@@ -37,15 +37,15 @@
if @meeting_agenda_item.duration_in_minutes.present? && @meeting_agenda_item.duration_in_minutes > 0
grid.with_area(:duration, Primer::Beta::Text, color: duration_color_scheme, mr: 2) do
- I18n.t('datetime.distance_in_words.x_minutes_abbreviated', count: @meeting_agenda_item.duration_in_minutes)
+ I18n.t("datetime.distance_in_words.x_minutes_abbreviated", count: @meeting_agenda_item.duration_in_minutes)
end
end
if @meeting_agenda_item.presenter
- grid.with_area(:presenter, tag: :div, classes: 'ellipsis') do
+ grid.with_area(:presenter, tag: :div, classes: "ellipsis") do
flex_layout(align_items: :flex_end) do |flex|
- flex.with_column(classes: 'ellipsis custom-presenter-flex') do
- render(Users::AvatarComponent.new(user: @meeting_agenda_item.presenter, size: 'mini', title:, classes: 'op-principal_flex'))
+ flex.with_column(classes: "ellipsis custom-presenter-flex") do
+ render(Users::AvatarComponent.new(user: @meeting_agenda_item.presenter, size: "mini", title:, classes: "op-principal_flex"))
end
end
end
@@ -58,7 +58,7 @@
'aria-label': I18n.t(:label_agenda_item_actions),
scheme: :invisible,
ml: 2,
- test_selector: 'op-meeting-agenda-actions')
+ test_selector: "op-meeting-agenda-actions")
edit_action_item(menu) if @meeting_agenda_item.editable?
add_note_action_item(menu) if @meeting_agenda_item.editable? && @meeting_agenda_item.notes.blank?
unless first? && last?
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 4bda5a476f4..638ddfa4861 100644
--- a/modules/meeting/app/components/meeting_sections/header_component.html.erb
+++ b/modules/meeting/app/components/meeting_sections/header_component.html.erb
@@ -1,10 +1,10 @@
<%=
component_wrapper(class: "op-meeting-section-container", data: wrapper_data_attributes) do
if @state == :show
- grid_layout('op-meeting-section', tag: :div) do |grid|
+ grid_layout("op-meeting-section", tag: :div) do |grid|
grid.with_area(:'drag-handle', tag: :div, classes: "hide-when-print") do
if editable?
- render(Primer::OpenProject::DragHandle.new(classes: 'handle'))
+ render(Primer::OpenProject::DragHandle.new(classes: "handle"))
end
end
grid.with_area(:content, tag: :span) do
diff --git a/modules/meeting/app/components/meetings/header_component.html.erb b/modules/meeting/app/components/meetings/header_component.html.erb
index f4ae73d211b..9b45421d4b8 100644
--- a/modules/meeting/app/components/meetings/header_component.html.erb
+++ b/modules/meeting/app/components/meetings/header_component.html.erb
@@ -49,7 +49,7 @@
button_arguments: { icon: "kebab-horizontal",
"aria-label": t("label_meeting_actions"),
classes: "hide-when-print",
- test_selector: 'op-meetings-header-action-trigger'}) do |menu|
+ test_selector: "op-meetings-header-action-trigger"}) do |menu|
menu.with_item(label: t("label_meeting_edit_title"),
href: edit_meeting_path(@meeting),
content_arguments: {
@@ -74,9 +74,9 @@
if @meeting.open? &&User.current.allowed_in_project?(:send_meeting_agendas_notification, @meeting.project
)
- menu.with_item(label: t('meeting.label_mail_all_participants'),
+ menu.with_item(label: t("meeting.label_mail_all_participants"),
href: notify_meeting_path(@meeting),
- form_arguments: { method: :post, data: { turbo: 'false' } }) do |item|
+ form_arguments: { method: :post, data: { turbo: "false" } }) do |item|
item.with_leading_visual_icon(icon: :mail)
end
end
diff --git a/modules/meeting/app/components/meetings/index/dialog_component.html.erb b/modules/meeting/app/components/meetings/index/dialog_component.html.erb
index cad7e1d5cf9..4fcdb4d98c2 100644
--- a/modules/meeting/app/components/meetings/index/dialog_component.html.erb
+++ b/modules/meeting/app/components/meetings/index/dialog_component.html.erb
@@ -24,7 +24,7 @@
modal_footer.with_component(
Primer::ButtonComponent.new(
scheme: :primary,
- form: 'meeting-form',
+ form: "meeting-form",
type: :submit
)) do
if @meeting.persisted?
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 35d903565c0..6996d35a4e4 100644
--- a/modules/meeting/app/components/meetings/index/form_component.html.erb
+++ b/modules/meeting/app/components/meetings/index/form_component.html.erb
@@ -13,7 +13,7 @@
"application-target": "dynamic"
},
html: {
- id: 'meeting-form'
+ id: "meeting-form"
},
url: {
controller: form_controller,
diff --git a/modules/meeting/app/components/meetings/side_panel/attachments_component.html.erb b/modules/meeting/app/components/meetings/side_panel/attachments_component.html.erb
index 480ae708c87..5ad41f3be65 100644
--- a/modules/meeting/app/components/meetings/side_panel/attachments_component.html.erb
+++ b/modules/meeting/app/components/meetings/side_panel/attachments_component.html.erb
@@ -4,9 +4,9 @@
section.with_title { t(:label_attachment_plural) }
section.with_description do
if @meeting.templated?
- I18n.t('meeting.attachments.template')
+ I18n.t("meeting.attachments.template")
else
- I18n.t('meeting.attachments.text')
+ I18n.t("meeting.attachments.text")
end
end
section.with_counter(count: @meeting.attachments.count)
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 c9d94216d66..b8629b8c944 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
@@ -21,7 +21,7 @@
tag: :a,
href:,
classes: "hide-when-print",
- data: { controller: 'async-dialog' },
+ data: { controller: "async-dialog" },
'aria-label': t(:label_meeting_details_edit),
test_selector: "edit-meeting-details-button",
)
@@ -111,7 +111,7 @@
end
end
- details.with_row(mt: 2, classes: 'meeting-detail-participants hide-when-print', display: [nil, nil, :none]) do
+ details.with_row(mt: 2, classes: "meeting-detail-participants hide-when-print", display: [nil, nil, :none]) do
render_meeting_attribute_row(:people) do
flex_layout(align_items: :center) do |people|
people.with_column(mr: 2) do
@@ -130,7 +130,7 @@
tag: :a,
href: participants_dialog_meeting_path(@meeting),
classes: "hide-when-print",
- data: { controller: 'async-dialog' }
+ data: { controller: "async-dialog" }
)) do
t("label_meeting_show_all_participants")
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 89ea9685416..d1641e09cf8 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
@@ -5,7 +5,7 @@
section.with_counter(count: @meeting.invited_or_attended_participants.count)
if @meeting.templated?
- section.with_description { I18n.t('meeting.participants.template') }
+ section.with_description { I18n.t("meeting.participants.template") }
end
if @meeting.editable?
@@ -15,7 +15,7 @@
tag: :a,
href: participants_dialog_meeting_path(@meeting),
classes: "hide-when-print",
- data: { controller: 'async-dialog' },
+ data: { controller: "async-dialog" },
'aria-label': t("label_meeting_manage_participants"),
test_selector: "manage-participants-button",
)
@@ -41,7 +41,7 @@
tag: :a,
href: participants_dialog_meeting_path(@meeting),
classes: "hide-when-print",
- data: { controller: 'async-dialog' }
+ data: { controller: "async-dialog" }
)) do |button|
button.with_leading_visual_icon(icon: "person-add")
t("label_meeting_add_participants")
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 524433d6eb4..73cf765c110 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
@@ -7,14 +7,14 @@
d.with_header(variant: :large)
d.with_body do
- component_wrapper(class: 'Overlay-form') do
+ component_wrapper(class: "Overlay-form") do
primer_form_with(
id: "edit_participants_form",
model: @meeting,
method: :put,
url: update_participants_meeting_path(@meeting),
data: { turbo: true, turbo_stream: true },
- class: 'Overlay-form'
+ class: "Overlay-form"
) do |f|
flex_layout do |form_container|
@@ -47,10 +47,10 @@
existing_participant_container.with_row do
flex_layout(align_items: :center) do |existing_participant|
- existing_participant.with_column(flex: 1, classes: 'ellipsis') do
+ existing_participant.with_column(flex: 1, classes: "ellipsis") do
render(Users::AvatarComponent.new(
user: participant.user,
- classes: 'op-principal_flex',
+ classes: "op-principal_flex",
hover_card: { active: true, target: :custom }
))
end
@@ -87,10 +87,10 @@
end
else
flex_layout(align_items: :center) do |new_participant|
- new_participant.with_column(flex: 1, classes: 'ellipsis') do
+ new_participant.with_column(flex: 1, classes: "ellipsis") do
render(Users::AvatarComponent.new(
user:,
- classes: 'op-principal_flex',
+ classes: "op-principal_flex",
hover_card: { active: true, target: :custom }
))
end
@@ -120,7 +120,7 @@
end
form_container.with_row do
- helpers.angular_component_tag 'opce-custom-modal-overlay'
+ helpers.angular_component_tag "opce-custom-modal-overlay"
end
end
end
diff --git a/modules/meeting/app/components/meetings/side_panel/state_component.html.erb b/modules/meeting/app/components/meetings/side_panel/state_component.html.erb
index 275739d2569..d051cd7c136 100644
--- a/modules/meeting/app/components/meetings/side_panel/state_component.html.erb
+++ b/modules/meeting/app/components/meetings/side_panel/state_component.html.erb
@@ -6,7 +6,7 @@
case @meeting.state
when "open"
section.with_description(display: [:none, nil, :block]) { t("text_meeting_open_description") }
- flex_layout(classes: 'op-meeting-sidebar-state') do |open_state|
+ flex_layout(classes: "op-meeting-sidebar-state") do |open_state|
open_state.with_row do
render(Primer::Beta::State.new(title: "state", scheme: :open)) do
flex_layout do |open_state_label|
@@ -24,9 +24,9 @@
if edit_enabled?
section.with_footer_button(
tag: :a,
- href: change_state_meeting_path(@meeting, state: 'closed'),
+ href: change_state_meeting_path(@meeting, state: "closed"),
classes: "hide-when-print",
- data: { 'turbo-stream': true, 'turbo-method': 'put' },
+ data: { 'turbo-stream': true, 'turbo-method': "put" },
test_selector: "close-meeting-button"
) do |button|
button.with_leading_visual_icon(icon: :unlock)
@@ -37,7 +37,7 @@
when "closed"
section.with_description(display: [:none, nil, :block]) { t("text_meeting_closed_description") }
- flex_layout(classes: 'op-meeting-sidebar-state') do |closed_state|
+ flex_layout(classes: "op-meeting-sidebar-state") do |closed_state|
closed_state.with_row do
render(Primer::Beta::State.new(title: "state", scheme: :default)) do
flex_layout do |closed_state_label|
@@ -55,9 +55,9 @@
if edit_enabled?
section.with_footer_button(
tag: :a,
- href: change_state_meeting_path(@meeting, state: 'open'),
+ href: change_state_meeting_path(@meeting, state: "open"),
classes: "hide-when-print",
- data: { 'turbo-stream': true, 'turbo-method': 'put' }
+ data: { 'turbo-stream': true, 'turbo-method': "put" }
) do |button|
button.with_leading_visual_icon(icon: :unlock)
t("label_meeting_reopen_action")
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 ff87c48517b..9707f23f512 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
@@ -23,7 +23,7 @@
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",
@@ -39,7 +39,7 @@
end
menu.with_item(
- label: t('meeting.label_mail_all_participants'),
+ label: t("meeting.label_mail_all_participants"),
href: notify_recurring_meeting_path(@meeting),
form_arguments: { method: :post }
) do |item|
@@ -52,7 +52,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")
@@ -65,7 +65,7 @@
scheme: :danger,
tag: :a,
content_arguments: {
- data: { controller: 'async-dialog' }
+ data: { controller: "async-dialog" }
}
) do |item|
item.with_leading_visual_icon(icon: :trash)
diff --git a/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_dialog_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_dialog_component.html.erb
index f5fb18c671e..432461034c4 100644
--- a/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_dialog_component.html.erb
+++ b/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_dialog_component.html.erb
@@ -1,7 +1,7 @@
<%=
render(Primer::Alpha::Dialog.new(title: t("label_add_work_package_to_meeting_dialog_title"),
size: :xlarge,
- id: 'add-work-package-to-meeting-dialog')) do |d|
+ id: "add-work-package-to-meeting-dialog")) do |d|
d.with_header(variant: :large)
d.with_body do
render(WorkPackageMeetingsTab::AddWorkPackageToMeetingFormComponent.new(
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 b530a7ba08a..abb1023401c 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
@@ -13,7 +13,7 @@
end
end
flex.with_row do
- render(MeetingAgendaItem::MeetingForm.new(f, wrapper_id: 'add-work-package-to-meeting-dialog'))
+ render(MeetingAgendaItem::MeetingForm.new(f, wrapper_id: "add-work-package-to-meeting-dialog"))
end
flex.with_row(mt: 3) do
render(MeetingAgendaItem::Notes.new(f))
diff --git a/modules/meeting/app/components/work_package_meetings_tab/heading_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/heading_component.html.erb
index 9e8c510d41a..a74a414d891 100644
--- a/modules/meeting/app/components/work_package_meetings_tab/heading_component.html.erb
+++ b/modules/meeting/app/components/work_package_meetings_tab/heading_component.html.erb
@@ -9,7 +9,7 @@
render(Primer::Beta::Button.new(
tag: :a,
href: dialog_work_package_meeting_agenda_items_path(@work_package),
- data: { controller: 'async-dialog' },
+ data: { controller: "async-dialog" },
test_selector: "op-add-work-package-to-meeting-dialog-trigger"
)) do |button|
button.with_leading_visual_icon(icon: :plus)
diff --git a/modules/meeting/app/components/work_package_meetings_tab/index_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/index_component.html.erb
index 47fb9b95c0a..b2059cb3f48 100644
--- a/modules/meeting/app/components/work_package_meetings_tab/index_component.html.erb
+++ b/modules/meeting/app/components/work_package_meetings_tab/index_component.html.erb
@@ -1,7 +1,7 @@
<%=
content_tag("turbo-frame", id: "work-package-meetings-tab-content") do
component_wrapper do
- flex_layout(test_selector: 'op-work-package-meetings-tab-container') do |flex|
+ flex_layout(test_selector: "op-work-package-meetings-tab-container") do |flex|
flex.with_row do
render(WorkPackageMeetingsTab::HeadingComponent.new(work_package: @work_package))
end
@@ -11,13 +11,13 @@
href: work_package_meetings_tab_index_path(@work_package,
direction: :upcoming)) do |tab|
tab.with_text { t("label_upcoming_meetings_short") }
- tab.with_counter(count: @upcoming_meetings_count, test_selector: 'op-upcoming-meetings-counter')
+ tab.with_counter(count: @upcoming_meetings_count, test_selector: "op-upcoming-meetings-counter")
end
component.with_tab(selected: @direction == :past,
href: work_package_meetings_tab_index_path(@work_package,
direction: :past)) do |tab|
tab.with_text { t("label_past_meetings_short") }
- tab.with_counter(count: @past_meetings_count, test_selector: 'op-past-meetings-counter')
+ tab.with_counter(count: @past_meetings_count, test_selector: "op-past-meetings-counter")
end
end
end
diff --git a/modules/meeting/app/components/work_package_meetings_tab/meeting_agenda_item_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/meeting_agenda_item_component.html.erb
index b4b8699c630..0669eb361b6 100644
--- a/modules/meeting/app/components/work_package_meetings_tab/meeting_agenda_item_component.html.erb
+++ b/modules/meeting/app/components/work_package_meetings_tab/meeting_agenda_item_component.html.erb
@@ -11,11 +11,11 @@
end
flex.with_row(mt: 3, font_size: :small, flex_layout: true, align_items: :center) do |authoring|
- authoring.with_column(mr: 1, style: 'white-space: nowrap') do
+ authoring.with_column(mr: 1, style: "white-space: nowrap") do
render(Primer::Beta::Text.new(color: :subtle)) { t("label_added_by", author: nil) }
end
- authoring.with_column(mr: 1, classes: 'ellipsis') do
- render(Users::AvatarComponent.new(user: @meeting_agenda_item.author, size: 'mini', classes: 'op-principal_flex'))
+ authoring.with_column(mr: 1, classes: "ellipsis") do
+ render(Users::AvatarComponent.new(user: @meeting_agenda_item.author, size: "mini", classes: "op-principal_flex"))
end
authoring.with_column do
render(Primer::Beta::RelativeTime.new(color: :subtle, datetime: @meeting_agenda_item.created_at))
diff --git a/modules/meeting/app/views/meeting_contents/diff.html.erb b/modules/meeting/app/views/meeting_contents/diff.html.erb
index db0aae05d2a..d8231afa533 100644
--- a/modules/meeting/app/views/meeting_contents/diff.html.erb
+++ b/modules/meeting/app/views/meeting_contents/diff.html.erb
@@ -32,8 +32,8 @@ See COPYRIGHT and LICENSE files for more details.
link_to: link_to(@meeting, @meeting) do %>
<% if authorize_for(@content_type.pluralize, :history) %>
<li class="toolbar-item">
- <%= link_to({controller: "/#{@content_type.pluralize}", action: 'history', meeting_id: @meeting }, class: 'button') do %>
- <%= op_icon('button--icon icon-wiki') %>
+ <%= link_to({controller: "/#{@content_type.pluralize}", action: "history", meeting_id: @meeting }, class: "button") do %>
+ <%= op_icon("button--icon icon-wiki") %>
<span class="button--text"><%= t(:label_history) %></span>
<% end %>
</li>
diff --git a/modules/meeting/app/views/meeting_contents/history.html.erb b/modules/meeting/app/views/meeting_contents/history.html.erb
index af80a061b1e..4a1dcce8caa 100644
--- a/modules/meeting/app/views/meeting_contents/history.html.erb
+++ b/modules/meeting/app/views/meeting_contents/history.html.erb
@@ -99,30 +99,30 @@ 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">
<% if show_diff && (index < @content_versions.size-1) %>
- <%= radio_button_tag('version_from',
+ <%= radio_button_tag("version_from",
content_version.version,
(index==0),
- class: 'meetings--checkbox-version-to',
+ class: "meetings--checkbox-version-to",
data: {
- 'journal-history-target': 'fromVersion',
- action: 'journal-history#selectToVersion'
+ 'journal-history-target': "fromVersion",
+ action: "journal-history#selectToVersion"
}) %>
<label class="hidden-for-sighted" for="checkbox-from-<%= index %>"><%= t(:description_compare_from) %> <%= index %></label>
<% end %>
</td>
<td class="checkbox -short">
<% if show_diff && (index > 0) %>
- <%= radio_button_tag('version_to',
+ <%= radio_button_tag("version_to",
content_version.version,
(index==1),
data: {
- 'journal-history-target': 'toVersion',
- action: 'journal-history#selectFromVersion'
+ 'journal-history-target': "toVersion",
+ action: "journal-history#selectFromVersion"
}) %>
<label class="hidden-for-sighted" for="checkbox-to-<%= index %>"><%= t(:description_compare_to) %> <%= index %></label>
<% end %>
@@ -137,6 +137,6 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
-<%= styled_button_tag t(:label_view_diff), class: '-small -primary' if show_diff %>
+<%= styled_button_tag t(:label_view_diff), class: "-small -primary" if show_diff %>
<%= pagination_links_full @content_versions %>
<% end %>
diff --git a/modules/meeting/app/views/meeting_mailer/invited.html.erb b/modules/meeting/app/views/meeting_mailer/invited.html.erb
index 499075a3b73..3537e10ec1f 100644
--- a/modules/meeting/app/views/meeting_mailer/invited.html.erb
+++ b/modules/meeting/app/views/meeting_mailer/invited.html.erb
@@ -27,21 +27,21 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render layout: 'mailer/spacer_table' do %>
- <%= render partial: 'mailer/mailer_header',
+<%= render layout: "mailer/spacer_table" do %>
+ <%= render partial: "mailer/mailer_header",
locals: {
user: @user,
- summary: I18n.t('meeting.email.invited.summary', title: @meeting.title, actor: @actor),
+ summary: I18n.t("meeting.email.invited.summary", title: @meeting.title, actor: @actor),
bottom_spacing: false
} %>
- <%= render layout: 'mailer/border_table' do %>
+ <%= render layout: "mailer/border_table" do %>
<tr>
- <%= placeholder_cell('24px', vertical: true) %>
+ <%= placeholder_cell("24px", vertical: true) %>
<td>
<table>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= I18n.t(:label_meeting_date_time) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% if @meeting.location.present? %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:location) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% end %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:project) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -69,7 +69,7 @@ See COPYRIGHT and LICENSE files for more details.
</td>
</tr>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:author) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -78,7 +78,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% if @meeting.participants.exists? %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:participants_invited) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -86,7 +86,7 @@ See COPYRIGHT and LICENSE files for more details.
</td>
</tr>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:participants_attended) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -101,14 +101,14 @@ See COPYRIGHT and LICENSE files for more details.
<table>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
<%= action_button do %>
<%= link_to I18n.t(:'meeting.email.open_meeting_link'),
meeting_url(@meeting),
- target: '_blank',
+ target: "_blank",
style: "color: #333333; text-decoration: none; font-size: 14px;white-space: nowrap;" %>
<% end %>
<% end %>
diff --git a/modules/meeting/app/views/meeting_mailer/invited.text.erb b/modules/meeting/app/views/meeting_mailer/invited.text.erb
index 36f7ce7116a..021ad77f12e 100644
--- a/modules/meeting/app/views/meeting_mailer/invited.text.erb
+++ b/modules/meeting/app/views/meeting_mailer/invited.text.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= I18n.t('meeting.email.invited.summary', title: @meeting.title, actor: @actor) %>
+<%= I18n.t("meeting.email.invited.summary", title: @meeting.title, actor: @actor) %>
<%= @meeting.project.name %>: <%= @meeting.title %> (<%= meeting_url(@meeting) %>)
<%= @meeting.author %>
diff --git a/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb b/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb
index b0cd462ebbb..68dcb7bb5cd 100644
--- a/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb
+++ b/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb
@@ -27,22 +27,22 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render layout: 'mailer/spacer_table' do %>
- <%= render partial: 'mailer/mailer_header',
+<%= render layout: "mailer/spacer_table" do %>
+ <%= render partial: "mailer/mailer_header",
locals: {
user: @user,
- summary: I18n.t('meeting.email.rescheduled.summary', title: @meeting.title, actor: @actor),
+ summary: I18n.t("meeting.email.rescheduled.summary", title: @meeting.title, actor: @actor),
bottom_spacing: false
} %>
- <%= render layout: 'mailer/border_table' do %>
+ <%= render layout: "mailer/border_table" do %>
<tr>
- <%= placeholder_cell('24px', vertical: true) %>
+ <%= placeholder_cell("24px", vertical: true) %>
<td>
<table>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
- <%= t('meeting.email.rescheduled.old_date_time') %>
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
+ <%= t("meeting.email.rescheduled.old_date_time") %>
</td>
<td style="<%= placeholder_text_styles %>">
<s>
@@ -53,10 +53,10 @@ See COPYRIGHT and LICENSE files for more details.
</td>
</tr>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
- <%= t('meeting.email.rescheduled.new_date_time') %>
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
+ <%= t("meeting.email.rescheduled.new_date_time") %>
</td>
- <td style="<%= placeholder_text_styles('font-weight': 'bold') %>">
+ <td style="<%= placeholder_text_styles('font-weight': "bold") %>">
<%= format_time_as_date @changes[:new_start] %> <%= format_time @changes[:new_start], include_date: false %>
-
<%= format_time (@changes[:new_start] + @changes[:new_duration].hours), include_date: false %> (<%= formatted_time_zone_offset %>)
@@ -64,7 +64,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% if @meeting.location.present? %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:location) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -73,7 +73,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% end %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:project) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -81,7 +81,7 @@ See COPYRIGHT and LICENSE files for more details.
</td>
</tr>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:author) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -90,7 +90,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% if @meeting.participants.exists? %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:participants_invited) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -98,7 +98,7 @@ See COPYRIGHT and LICENSE files for more details.
</td>
</tr>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:participants_attended) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -113,14 +113,14 @@ See COPYRIGHT and LICENSE files for more details.
<table>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
<%= action_button do %>
<%= link_to I18n.t(:'meeting.email.open_meeting_link'),
meeting_url(@meeting),
- target: '_blank',
+ target: "_blank",
style: "color: #333333; text-decoration: none; font-size: 14px;white-space: nowrap;" %>
<% end %>
<% end %>
diff --git a/modules/meeting/app/views/meeting_mailer/rescheduled.text.erb b/modules/meeting/app/views/meeting_mailer/rescheduled.text.erb
index 78810123703..c02e3fd3eea 100644
--- a/modules/meeting/app/views/meeting_mailer/rescheduled.text.erb
+++ b/modules/meeting/app/views/meeting_mailer/rescheduled.text.erb
@@ -30,12 +30,12 @@ See COPYRIGHT and LICENSE files for more details.
<%= @meeting.project.name %>: <%= @meeting.title %> (<%= meeting_url(@meeting) %>)
<%= @meeting.author %>
-<%= t('meeting.email.rescheduled.body',
+<%= t("meeting.email.rescheduled.body",
actor: @actor,
title: @meeting.title) %>
-<%= t('meeting.email.rescheduled.old_date_time') %>:
+<%= t("meeting.email.rescheduled.old_date_time") %>:
<%= format_time_as_date @changes[:old_start] %> <%= format_time @changes[:old_start], include_date: false %> - <%= format_time (@changes[:old_start] + @changes[:old_duration]), include_date: false %> (<%= formatted_time_zone_offset %>}
-<%= t('meeting.email.rescheduled.new_date_time') %>:
+<%= t("meeting.email.rescheduled.new_date_time") %>:
<%= format_time_as_date @changes[:new_start] %> <%= format_time @changes[:new_start], include_date: false %> - <%= format_time (@changes[:new_start] + @changes[:new_duration]), include_date: false %> (<%= formatted_time_zone_offset %>}
diff --git a/modules/meeting/app/views/meeting_series_mailer/template_completed.html.erb b/modules/meeting/app/views/meeting_series_mailer/template_completed.html.erb
index fb9726fd4f1..db78c3743da 100644
--- a/modules/meeting/app/views/meeting_series_mailer/template_completed.html.erb
+++ b/modules/meeting/app/views/meeting_series_mailer/template_completed.html.erb
@@ -27,21 +27,21 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render layout: 'mailer/spacer_table' do %>
- <%= render partial: 'mailer/mailer_header',
+<%= render layout: "mailer/spacer_table" do %>
+ <%= render partial: "mailer/mailer_header",
locals: {
user: @user,
- summary: I18n.t('meeting.email.series.summary', title: @series.title, actor: @actor),
+ summary: I18n.t("meeting.email.series.summary", title: @series.title, actor: @actor),
bottom_spacing: false
} %>
- <%= render layout: 'mailer/border_table' do %>
+ <%= render layout: "mailer/border_table" do %>
<tr>
- <%= placeholder_cell('24px', vertical: true) %>
+ <%= placeholder_cell("24px", vertical: true) %>
<td>
<table>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= I18n.t(:label_recurring_meeting_schedule) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% if @next_occurrence %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= I18n.t(:label_recurring_meeting_next_occurrence) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% if @template.location.present? %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:location) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -70,7 +70,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% end %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:project) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -78,7 +78,7 @@ See COPYRIGHT and LICENSE files for more details.
</td>
</tr>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:author) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -87,7 +87,7 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% if @template.participants.exists? %>
<tr>
- <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <td style="<%= placeholder_text_styles(width: "30%") %>">
<%= Meeting.human_attribute_name(:participants_invited) %>
</td>
<td style="<%= placeholder_text_styles %>">
@@ -102,14 +102,14 @@ See COPYRIGHT and LICENSE files for more details.
<table>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
<%= action_button do %>
<%= link_to I18n.t(:'meeting.email.open_meeting_link'),
recurring_meeting_url(@series),
- target: '_blank',
+ target: "_blank",
style: "color: #333333; text-decoration: none; font-size: 14px;white-space: nowrap;" %>
<% end %>
<% end %>
diff --git a/modules/meeting/app/views/meeting_series_mailer/template_completed.text.erb b/modules/meeting/app/views/meeting_series_mailer/template_completed.text.erb
index c86fa4bece0..b1945bd120e 100644
--- a/modules/meeting/app/views/meeting_series_mailer/template_completed.text.erb
+++ b/modules/meeting/app/views/meeting_series_mailer/template_completed.text.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= I18n.t('meeting.email.series.summary', title: @series.title, actor: @actor) %>
+<%= I18n.t("meeting.email.series.summary", title: @series.title, actor: @actor) %>
<%= @series.project.name %>: <%= @series.title %> (<%= meeting_url(@series) %>)
<%= @series.author %>
diff --git a/modules/meeting/app/views/meetings/_form.html.erb b/modules/meeting/app/views/meetings/_form.html.erb
index 143cdd25d52..3f7f2aada86 100644
--- a/modules/meeting/app/views/meetings/_form.html.erb
+++ b/modules/meeting/app/views/meetings/_form.html.erb
@@ -27,12 +27,12 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= error_messages_for 'meeting' %>
+<%= error_messages_for "meeting" %>
<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] %>
@@ -40,29 +40,29 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.hidden_field :type, value: copy_from.type %>
<%= hidden_field_tag "copied_from_meeting_id", copy_from.id %>
<div class="form--field">
- <%= styled_label_tag 'copy_agenda', t('meeting.copy.agenda') %>
+ <%= styled_label_tag "copy_agenda", t("meeting.copy.agenda") %>
<div class="form--field-container">
- <%= styled_check_box_tag 'copy_agenda',
+ <%= styled_check_box_tag "copy_agenda",
1,
true,
no_label: true,
- class: 'radio-button' %>
+ class: "radio-button" %>
</div>
<div class="form--field-instructions">
- <%= t('meeting.copy.agenda_text') %>
+ <%= t("meeting.copy.agenda_text") %>
</div>
</div>
<div class="form--field">
- <%= styled_label_tag 'copy_attachments', t('meeting.copy.attachments') %>
+ <%= styled_label_tag "copy_attachments", t("meeting.copy.attachments") %>
<div class="form--field-container">
- <%= styled_check_box_tag 'copy_attachments',
+ <%= styled_check_box_tag "copy_attachments",
1,
false,
no_label: true,
- class: 'radio-button' %>
+ class: "radio-button" %>
</div>
<div class="form--field-instructions">
- <%= t('meeting.copy.attachments_text') %>
+ <%= t("meeting.copy.attachments_text") %>
</div>
</div>
<% elsif @meeting.new_record? %>
@@ -73,25 +73,25 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -required">
<label class="form--label" for="project_id"><%= Meeting.human_attribute_name(:project) %>:</label>
<div class="form--field-container">
- <%= angular_component_tag 'opce-project-autocompleter',
+ <%= angular_component_tag "opce-project-autocompleter",
inputs: {
- filters: [{ name: 'user_action', operator: '=', values: ['meetings/create'] }],
- inputName: 'project_id',
+ filters: [{ name: "user_action", operator: "=", values: ["meetings/create"] }],
+ inputName: "project_id",
inputValue: @project&.id,
- appendTo: 'body',
- hiddenFieldAction: 'change->refresh-on-form-changes#triggerTurboStream',
+ appendTo: "body",
+ hiddenFieldAction: "change->refresh-on-form-changes#triggerTurboStream",
},
- id: 'project_id',
- class: 'form--select-container -wide remote-field--input',
+ id: "project_id",
+ class: "form--select-container -wide remote-field--input",
data: {
- 'test-selector': 'project_id'
+ 'test-selector': "project_id"
} %>
</div>
</div>
<% 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">
@@ -103,7 +103,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container -visible-overflow">
<%= f.date_picker :start_date,
- id: 'meeting-form-start-date',
+ id: "meeting-form-start-date",
required: true,
no_label: true %>
<label for="meeting-form-start-time" class="hidden-for-sighted">
@@ -114,13 +114,13 @@ See COPYRIGHT and LICENSE files for more details.
</label>
</label>
<%= f.text_field :start_time_hour,
- id: 'meeting-form-start-time',
+ id: "meeting-form-start-time",
required: true,
- type: 'time',
+ type: "time",
no_label: true,
step: 5.minutes,
suffix: formatted_time_zone_offset,
- container_class: '-xslim' %>
+ container_class: "-xslim" %>
</div>
</div>
@@ -128,7 +128,7 @@ See COPYRIGHT and LICENSE files for more details.
<label for="meeting-form-duration" class="form--label"><%= Meeting.human_attribute_name(:duration) %></label>
<div class="form--field-container">
<%= f.number_field :duration,
- id: 'meeting-form-duration',
+ id: "meeting-form-duration",
required: true,
size: 5,
no_label: true,
@@ -136,16 +136,16 @@ See COPYRIGHT and LICENSE files for more details.
step: 0.25,
max: 168,
suffix: t(:text_in_hours),
- container_class: '-xslim' %>
+ container_class: "-xslim" %>
</div>
</div>
- <%= render partial: 'meetings/participants_section' %>
+ <%= render partial: "meetings/participants_section" %>
<div class="form--field">
- <%= styled_label_tag 'send_notfications', t(:"meeting.email.send_emails") %>
+ <%= styled_label_tag "send_notfications", t(:"meeting.email.send_emails") %>
<div class="form--field-container">
- <%= styled_check_box_tag 'send_notifications',
+ <%= styled_check_box_tag "send_notifications",
1,
false %>
</div>
diff --git a/modules/meeting/app/views/meetings/edit.html.erb b/modules/meeting/app/views/meetings/edit.html.erb
index 2dcc189094c..0f8eeba2724 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} %>
-<%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
-<%= link_to t(:button_cancel), { :action => 'show', :id => @meeting },
- class: 'button -with-icon icon-cancel' %>
+<%= 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 },
+ class: "button -with-icon icon-cancel" %>
<% end if @project %>
diff --git a/modules/meeting/app/views/meetings/history.html.erb b/modules/meeting/app/views/meetings/history.html.erb
index 3a5a46331b7..bf9615c8337 100644
--- a/modules/meeting/app/views/meetings/history.html.erb
+++ b/modules/meeting/app/views/meetings/history.html.erb
@@ -1,6 +1,6 @@
<%= content_tag("turbo-frame",
id: "meetings-history-dialog-frame",
- class: 'Overlay-form',
+ class: "Overlay-form",
data: { 'op-turbo-op-primer-async-dialog-target': "frameElement" }) do
render(Primer::Alpha::Dialog::Body.new) do
render(Activities::DaysComponent.new(events: @events, current_project: @project, activity_page: @activity_page))
diff --git a/modules/meeting/app/views/meetings/history.turbo_stream.erb b/modules/meeting/app/views/meetings/history.turbo_stream.erb
index 9cf32b7c3cf..d31e3db6a79 100644
--- a/modules/meeting/app/views/meetings/history.turbo_stream.erb
+++ b/modules/meeting/app/views/meetings/history.turbo_stream.erb
@@ -2,7 +2,7 @@
turbo_stream.dialog do
render(Primer::Alpha::Dialog.new(title: t(:label_history),
size: :xlarge,
- id: 'meeting-history-dialog')) do |d|
+ id: "meeting-history-dialog")) do |d|
d.with_header(variant: :large)
d.with_body do
render(Activities::DaysComponent.new(events: @events, current_project: @project, activity_page: @activity_page))
diff --git a/modules/meeting/app/views/meetings/menus/_menu.html.erb b/modules/meeting/app/views/meetings/menus/_menu.html.erb
index c5575c7167b..15df478bbaa 100644
--- a/modules/meeting/app/views/meetings/menus/_menu.html.erb
+++ b/modules/meeting/app/views/meetings/menus/_menu.html.erb
@@ -3,6 +3,6 @@
.merge(current_href: request.path) %>
<%= turbo_frame_tag "meeting_sidemenu",
src: @project.present? ? menu_project_meetings_path(@project, **request_params) : meetings_menu_path(**request_params),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
diff --git a/modules/meeting/app/views/meetings/new.html.erb b/modules/meeting/app/views/meetings/new.html.erb
index 3a390efbaf3..6b1e2a95d3e 100644
--- a/modules/meeting/app/views/meetings/new.html.erb
+++ b/modules/meeting/app/views/meetings/new.html.erb
@@ -28,8 +28,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% copy_from = local_assigns[:copy_from] %>
<% if copy_from
- page_title = t('meeting.copy.title', title: copy_from.title)
- breadcrumb_element = t('meeting.copy.title', title: "<b>#{copy_from.title}</b>")
+ page_title = t("meeting.copy.title", title: copy_from.title)
+ breadcrumb_element = t("meeting.copy.title", title: "<b>#{copy_from.title}</b>")
else
page_title = t(:label_meeting_new)
breadcrumb_element = t(:label_meeting_new)
@@ -51,19 +51,19 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @meeting,
as: :meeting,
- url: { controller: '/meetings', action: 'create', project_id: @project },
+ url: { controller: "/meetings", action: "create", project_id: @project },
html: {
- :id => 'meeting-form',
- target: '_top',
+ :id => "meeting-form",
+ target: "_top",
:data => {
turbo: false,
- controller: 'refresh-on-form-changes',
- 'refresh-on-form-changes-target': 'form',
+ 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: } %>
- <%= styled_button_tag t(:button_create), class: '-primary' %>
- <%= link_to t(:button_cancel), { :action => 'index', :project_id => @project },
- class: 'button' %>
+ <%= 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 },
+ class: "button" %>
<% end %>
diff --git a/modules/meeting/app/views/meetings/new.turbo_stream.erb b/modules/meeting/app/views/meetings/new.turbo_stream.erb
index 9ed70222259..73dff758e4c 100644
--- a/modules/meeting/app/views/meetings/new.turbo_stream.erb
+++ b/modules/meeting/app/views/meetings/new.turbo_stream.erb
@@ -27,4 +27,4 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= turbo_stream.replace 'participants-section', partial: 'meetings/participants_section' %>
+<%= turbo_stream.replace "participants-section", partial: "meetings/participants_section" %>
diff --git a/modules/meeting/app/views/meetings/show.html.erb b/modules/meeting/app/views/meetings/show.html.erb
index c5130779ee0..f7dd4c43218 100644
--- a/modules/meeting/app/views/meetings/show.html.erb
+++ b/modules/meeting/app/views/meetings/show.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_meeting),
link_to: link_to(@meeting),
- html: { class: 'meeting--main-toolbar -with-dropdown' } do %>
+ html: { class: "meeting--main-toolbar -with-dropdown" } do %>
<% unless User.current.anonymous? %>
<li class="toolbar-item hidden-for-tablet">
<div class="button">
@@ -39,8 +39,8 @@ 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 %>
- <%= op_icon('button--icon icon-edit') %>
+ <%= 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 %>
</li>
@@ -53,14 +53,14 @@ See COPYRIGHT and LICENSE files for more details.
title="<%= t(:label_more) %>"
class="button"
data-test-selector="meetings-more-dropdown-menu">
- <%= op_icon('button--icon icon-show-more') %>
+ <%= op_icon("button--icon icon-show-more") %>
</a>
<ul style="display:none;" class="menu-drop-down-container">
<% if authorize_for(:meetings, :notify) %>
<li>
- <%= link_to t('meeting.label_mail_all_participants'),
+ <%= link_to t("meeting.label_mail_all_participants"),
notify_meeting_path(@meeting),
- class: 'icon-context icon-mail1',
+ class: "icon-context icon-mail1",
method: :post %>
</li>
<% end %>
@@ -68,21 +68,21 @@ See COPYRIGHT and LICENSE files for more details.
<li>
<%= link_to t(:label_icalendar_download),
download_ics_meeting_path(@meeting),
- class: 'icon-context icon-calendar2' %>
+ class: "icon-context icon-calendar2" %>
</li>
<% end %>
<% if authorize_for(:meetings, :copy) %>
<li>
<%= link_to(t(:button_copy),
copy_meeting_path(@meeting),
- class: 'icon-context icon-copy') %>
+ class: "icon-context icon-copy") %>
</li>
<% end %>
<% if authorize_for(:meetings, :destroy) %>
<li>
<%= link_to(t(:button_delete),
polymorphic_path([@project, @meeting]),
- class: 'icon-context icon-delete',
+ class: "icon-context icon-delete",
method: :delete,
data: { confirm: t(:text_are_you_sure) }) %>
</li>
@@ -104,7 +104,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="grid-content small-6">
<p>
- <strong><%= Meeting.human_attribute_name(:location) %></strong>: <%= auto_link(h(@meeting.location), link: :all, html: { target: '_blank' }) %>
+ <strong><%= Meeting.human_attribute_name(:location) %></strong>: <%= auto_link(h(@meeting.location), link: :all, html: { target: "_blank" }) %>
</p>
</div>
<div class="grid-content small-12">
@@ -120,8 +120,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 90c2c6701ac..ddb349196bd 100644
--- a/modules/meeting/app/views/recurring_meetings/new.html.erb
+++ b/modules/meeting/app/views/recurring_meetings/new.html.erb
@@ -41,8 +41,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= primer_form_with(
model: @recurring_meeting,
- url: { :controller => '/recurring_meetings', :action => 'create', :project_id => @project }) do |f| %>
- <%= render :partial => 'form', locals: { f: f } %>
+ url: { :controller => "/recurring_meetings", :action => "create", :project_id => @project }) do |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/openid_connect/app/components/openid_connect/providers/sections/show_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/sections/show_component.html.erb
index f0a6c588f4f..50dc92de8ec 100644
--- a/modules/openid_connect/app/components/openid_connect/providers/sections/show_component.html.erb
+++ b/modules/openid_connect/app/components/openid_connect/providers/sections/show_component.html.erb
@@ -1,5 +1,5 @@
<%=
- grid_layout('op-saml-view-row',
+ grid_layout("op-saml-view-row",
tag: :div,
test_selector: "openid_connect_provider_#{@target_state}",
align_items: :center) do |grid|
diff --git a/modules/openid_connect/app/components/openid_connect/providers/view_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/view_component.html.erb
index 1d14dbcb9f8..c7c738096da 100644
--- a/modules/openid_connect/app/components/openid_connect/providers/view_component.html.erb
+++ b/modules/openid_connect/app/components/openid_connect/providers/view_component.html.erb
@@ -13,7 +13,7 @@
end
case provider.oidc_provider
- when 'google'
+ when "google"
component.with_row(scheme: :default) do
basic_details_component = if edit_state == :name
OpenIDConnect::Providers::Sections::FormComponent.new(
@@ -59,7 +59,7 @@
))
end
end
- when 'microsoft_entra'
+ when "microsoft_entra"
component.with_row(scheme: :default) do
basic_details_component = if edit_state == :name
OpenIDConnect::Providers::Sections::FormComponent.new(
@@ -130,7 +130,7 @@
end
component.with_row(scheme: :neutral, color: :muted) do
- render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t('openid_connect.providers.label_automatic_configuration') }
+ render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t("openid_connect.providers.label_automatic_configuration") }
end
component.with_row(scheme: :default) do
@@ -158,7 +158,7 @@
end
component.with_row(scheme: :neutral, color: :muted) do
- render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t('openid_connect.providers.label_advanced_configuration') }
+ render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t("openid_connect.providers.label_advanced_configuration") }
end
component.with_row(scheme: :default) do
@@ -210,7 +210,7 @@
end
component.with_row(scheme: :neutral, color: :muted) do
- render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t('openid_connect.providers.label_optional_configuration') }
+ render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t("openid_connect.providers.label_optional_configuration") }
end
component.with_row(scheme: :default) do
diff --git a/modules/openid_connect/app/views/openid_connect/providers/confirm_destroy.html.erb b/modules/openid_connect/app/views/openid_connect/providers/confirm_destroy.html.erb
index dc39743da18..e1f62c47631 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/confirm_destroy.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/confirm_destroy.html.erb
@@ -27,38 +27,38 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= styled_form_tag(openid_connect_provider_path(@provider),
- class: 'danger-zone',
+ class: "danger-zone",
method: :delete) do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('openid_connect.delete_title') %>
+ <%= t("openid_connect.delete_title") %>
</h3>
<p>
- <%= t('provider.delete_warning.provider', name: content_tag(:strong, @provider.display_name)).html_safe %>
+ <%= t("provider.delete_warning.provider", name: content_tag(:strong, @provider.display_name)).html_safe %>
</p>
<ul class="mb-3">
- <li> <%= t('provider.delete_warning.delete_result_1') %>
- <li> <%= t('provider.delete_warning.delete_result_user_count', count: @provider.user_count) %>
+ <li> <%= t("provider.delete_warning.delete_result_1") %>
+ <li> <%= t("provider.delete_warning.delete_result_user_count", count: @provider.user_count) %>
<% if Setting.omniauth_direct_login_provider == @provider.slug %>
- <li> <%= t('provider.delete_warning.delete_result_direct') %>
+ <li> <%= t("provider.delete_warning.delete_result_direct") %>
<% end %>
</ul>
<p class="danger-zone--warning">
<span class="icon icon-error"></span>
- <span><%= t('provider.delete_warning.irreversible_notice') %></span>
+ <span><%= t("provider.delete_warning.irreversible_notice") %></span>
</p>
<p>
- <%= t('provider.delete_warning.input_delete_confirmation', name: "<em class=\"danger-zone--expected-value\">#{h(@provider.display_name)}</em>").html_safe %>
+ <%= t("provider.delete_warning.input_delete_confirmation", name: "<em class=\"danger-zone--expected-value\">#{h(@provider.display_name)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<%= text_field_tag :delete_confirmation %>
- <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to openid_connect_providers_path,
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' do %>
+ class: "button -with-icon icon-cancel" do %>
<%= t(:button_cancel) %>
<% end %>
</div>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
index f697fa0d63a..9c52688df22 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
@@ -1,4 +1,4 @@
-<% page_title = t('openid_connect.providers.label_edit', name: @provider.display_name) %>
+<% page_title = t("openid_connect.providers.label_edit", name: @provider.display_name) %>
<% local_assigns[:additional_breadcrumb] = @provider.display_name %>
<% html_title(t(:label_administration), page_title) -%>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/show.html.erb b/modules/openid_connect/app/views/openid_connect/providers/show.html.erb
index 846ccd519fe..8e0ff0b9f95 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/show.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/show.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('openid_connect.providers.plural'), @provider.display_name) -%>
+<% html_title(t(:label_administration), t("openid_connect.providers.plural"), @provider.display_name) -%>
<% html_title(t(:label_administration), page_title) -%>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/upsale.html.erb b/modules/openid_connect/app/views/openid_connect/providers/upsale.html.erb
index 09125636802..cbf93055085 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/upsale.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/upsale.html.erb
@@ -1,9 +1,9 @@
-<% html_title(t(:label_administration), t('openid_connect.providers.plural')) -%>
+<% html_title(t(:label_administration), t("openid_connect.providers.plural")) -%>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
- feature_title: t('openid_connect.providers.plural'),
- feature_description: t('openid_connect.providers.upsale.description'),
- feature_reference: 'enterprise-openid-connect',
- feature_image: 'enterprise/open-id-providers.jpg'
+ feature_title: t("openid_connect.providers.plural"),
+ feature_description: t("openid_connect.providers.upsale.description"),
+ feature_reference: "enterprise-openid-connect",
+ feature_image: "enterprise/open-id-providers.jpg"
} %>
diff --git a/modules/openid_connect/app/views/session/logout_warning.html.erb b/modules/openid_connect/app/views/session/logout_warning.html.erb
index 5fe0c741051..9e00e7d2a35 100644
--- a/modules/openid_connect/app/views/session/logout_warning.html.erb
+++ b/modules/openid_connect/app/views/session/logout_warning.html.erb
@@ -1,5 +1,5 @@
<div id="logout-warning" class="top-shelf icon icon-warning">
- <h1><%= t('title.warning') %></h1>
+ <h1><%= t("title.warning") %></h1>
<p>
<%= message %>
</p>
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 28189882934..e1959f29b6e 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
@@ -1,4 +1,4 @@
-<%= helpers.angular_component_tag 'opce-custom-modal-overlay' %>
+<%= helpers.angular_component_tag "opce-custom-modal-overlay" %>
<%=
component_wrapper do
primer_form_with(
diff --git a/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb
index dc4d4e8e8f9..e57793165e6 100644
--- a/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb
+++ b/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb
@@ -20,7 +20,7 @@
type: :submit,
form: "project-section-edit-form",
data: {
- test_selector: 'save-project-attributes-button',
+ test_selector: "save-project-attributes-button",
turbo: true
}
)) do
diff --git a/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb
index 060e2ed501b..59b777daa5b 100644
--- a/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb
+++ b/modules/overviews/app/components/project_custom_fields/sections/project_custom_fields/show_component.html.erb
@@ -1,7 +1,7 @@
<%=
flex_layout(align_items: :flex_start,
justify_content: :space_between,
- classes: 'op-project-custom-field-container',
+ classes: "op-project-custom-field-container",
data: {
test_selector: "project-custom-field-#{@project_custom_field.id}"
}) do |custom_field_value_container|
@@ -21,7 +21,7 @@
custom_field_value_container.with_row(w: :full) do
if not_set?
- render(Primer::Beta::Text.new()) { t('placeholders.default') }
+ render(Primer::Beta::Text.new()) { t("placeholders.default") }
else
render_value
end
diff --git a/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erb
index 7279b183365..c525f306954 100644
--- a/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erb
+++ b/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erb
@@ -1,7 +1,7 @@
<%=
component_wrapper do
render(Primer::OpenProject::SidePanel::Section.new(
- classes: 'op-project-custom-field-section-container',
+ classes: "op-project-custom-field-section-container",
test_selector: "project-custom-field-section-#{@project_custom_field_section.id}"
)) do |section|
section.with_title { @project_custom_field_section.name }
@@ -12,7 +12,7 @@
tag: :a,
href: project_custom_field_section_dialog_path(project_id: @project.id, section_id: @project_custom_field_section.id),
data: {
- controller: 'async-dialog'
+ controller: "async-dialog"
},
test_selector: "project-custom-field-section-edit-button",
aria: { label: I18n.t(:label_edit) }
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 63d2c6cf5a9..8f264167ad5 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
@@ -1,4 +1,4 @@
-<%= helpers.angular_component_tag 'opce-custom-modal-overlay' %>
+<%= helpers.angular_component_tag "opce-custom-modal-overlay" %>
<%=
component_wrapper do
primer_form_with(
diff --git a/modules/overviews/app/components/project_life_cycles/sections/edit_dialog_component.html.erb b/modules/overviews/app/components/project_life_cycles/sections/edit_dialog_component.html.erb
index b7d6fd2db05..3da9d470496 100644
--- a/modules/overviews/app/components/project_life_cycles/sections/edit_dialog_component.html.erb
+++ b/modules/overviews/app/components/project_life_cycles/sections/edit_dialog_component.html.erb
@@ -20,7 +20,7 @@
type: :submit,
form: "project-life-cycles-edit-form",
data: {
- test_selector: 'save-project-life-cycles-button',
+ test_selector: "save-project-life-cycles-button",
turbo: true
}
)) do
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 ea3f87c3b8a..55fc0e5b90f 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
@@ -1,7 +1,7 @@
<%=
flex_layout(align_items: :flex_start,
justify_content: :space_between,
- classes: 'op-project-life-cycle-container',
+ classes: "op-project-life-cycle-container",
data: {
test_selector: "project-life-cycle-#{model.id}"
}) do |life_cycle_container|
@@ -19,7 +19,7 @@
life_cycle_container.with_row(w: :full) do
if not_set?
- render(Primer::Beta::Text.new()) { t('placeholders.default') }
+ render(Primer::Beta::Text.new()) { t("placeholders.default") }
else
render_value
end
diff --git a/modules/overviews/app/components/project_life_cycles/sections/show_component.html.erb b/modules/overviews/app/components/project_life_cycles/sections/show_component.html.erb
index c8a801c9f9d..486d62e049c 100644
--- a/modules/overviews/app/components/project_life_cycles/sections/show_component.html.erb
+++ b/modules/overviews/app/components/project_life_cycles/sections/show_component.html.erb
@@ -1,7 +1,7 @@
<%=
component_wrapper do
render(Primer::OpenProject::SidePanel::Section.new(
- classes: 'op-project-life-cyle-section-container',
+ classes: "op-project-life-cyle-section-container",
test_selector: "project-life-cycle-section"
)) do |section|
section.with_title { t("label_life_cycle_step_plural") }
@@ -12,7 +12,7 @@
tag: :a,
href: project_life_cycles_dialog_path(project_id: @project.id),
data: {
- controller: 'async-dialog'
+ controller: "async-dialog"
},
test_selector: "project-life-cycles-edit-button",
aria: { label: I18n.t(:label_edit) }
diff --git a/modules/overviews/app/views/overviews/overviews/show.html.erb b/modules/overviews/app/views/overviews/overviews/show.html.erb
index a323d0ca45e..ed31d0a7489 100644
--- a/modules/overviews/app/views/overviews/overviews/show.html.erb
+++ b/modules/overviews/app/views/overviews/overviews/show.html.erb
@@ -23,7 +23,7 @@
classes: favored ? "op-primer--star-icon" : "",
label: favored ? I18n.t(:button_unfavorite) : I18n.t(:button_favorite),
aria: { label: favored ? I18n.t(:button_unfavorite) : I18n.t(:button_favorite) },
- test_selector: 'project-favorite-button'
+ test_selector: "project-favorite-button"
)
header.with_action_menu(menu_arguments: { anchor_align: :end },
@@ -42,9 +42,9 @@
if User.current.allowed_in_project?(:archive_project, @project)
menu.with_item(
label: t(:label_archive_project),
- href: project_archive_path(@project, status: '', name: @project.name),
+ 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/admin/show.html.erb b/modules/recaptcha/app/views/recaptcha/admin/show.html.erb
index 5e52fea1e19..c8a96ce5a65 100644
--- a/modules/recaptcha/app/views/recaptcha/admin/show.html.erb
+++ b/modules/recaptcha/app/views/recaptcha/admin/show.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('recaptcha.label_recaptcha')) -%>
+<% html_title(t(:label_administration), t("recaptcha.label_recaptcha")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -12,54 +12,54 @@
<section class="admin--edit-section">
<%= styled_form_tag({ action: :update },
method: :post,
- id: 'update-recaptcha-settings-form') do %>
+ id: "update-recaptcha-settings-form") do %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:label_setting_plural) %></legend>
<div class="form--field">
- <label class="form--label" for='recaptcha_type'><%= t('recaptcha.settings.type') %></label>
+ <label class="form--label" for='recaptcha_type'><%= t("recaptcha.settings.type") %></label>
<div class="form--field-container">
- <%= styled_select_tag 'recaptcha_type',
- options_for_select(recaptcha_available_options, Setting.plugin_openproject_recaptcha['recaptcha_type']),
- container_class: '-middle' %>
+ <%= styled_select_tag "recaptcha_type",
+ options_for_select(recaptcha_available_options, Setting.plugin_openproject_recaptcha["recaptcha_type"]),
+ container_class: "-middle" %>
</div>
<div class="form--field-instructions">
- <%= I18n.t('recaptcha.settings.captcha_description_html',
- hcaptcha_link: link_to('https://docs.hcaptcha.com/switch/', 'https://docs.hcaptcha.com/switch/', target: '_blank'),
- recaptcha_link: link_to('https://www.google.com/recaptcha', 'https://www.google.com/recaptcha', target: '_blank'),
- turnstile_link: link_to('https://developers.cloudflare.com/turnstile/', 'https://developers.cloudflare.com/turnstile/', target: '_blank')).html_safe %>
+ <%= I18n.t("recaptcha.settings.captcha_description_html",
+ hcaptcha_link: link_to("https://docs.hcaptcha.com/switch/", "https://docs.hcaptcha.com/switch/", target: "_blank"),
+ recaptcha_link: link_to("https://www.google.com/recaptcha", "https://www.google.com/recaptcha", target: "_blank"),
+ turnstile_link: link_to("https://developers.cloudflare.com/turnstile/", "https://developers.cloudflare.com/turnstile/", target: "_blank")).html_safe %>
</div>
</div>
<div class="form--field">
- <label class="form--label" for='website_key'><%= t('recaptcha.settings.website_key') %></label>
+ <label class="form--label" for='website_key'><%= t("recaptcha.settings.website_key") %></label>
<div class="form--field-container">
- <%= styled_text_field_tag 'website_key',
- Setting.plugin_openproject_recaptcha['website_key'] %>
+ <%= styled_text_field_tag "website_key",
+ Setting.plugin_openproject_recaptcha["website_key"] %>
</div>
<div class="form--field-instructions">
- <%= I18n.t('recaptcha.settings.website_key_text') %>
+ <%= I18n.t("recaptcha.settings.website_key_text") %>
</div>
</div>
<div class="form--field">
- <label class="form--label" for='secret_key'><%= t('recaptcha.settings.secret_key') %></label>
+ <label class="form--label" for='secret_key'><%= t("recaptcha.settings.secret_key") %></label>
<div class="form--field-container">
- <%= styled_text_field_tag 'secret_key',
- Setting.plugin_openproject_recaptcha['secret_key'] %>
+ <%= styled_text_field_tag "secret_key",
+ Setting.plugin_openproject_recaptcha["secret_key"] %>
</div>
<div class="form--field-instructions">
- <%= I18n.t('recaptcha.settings.secret_key_text') %>
+ <%= I18n.t("recaptcha.settings.secret_key_text") %>
</div>
</div>
<div class="form--field">
- <label class="form--label" for='secret_key'><%= t('recaptcha.settings.response_limit') %></label>
+ <label class="form--label" for='secret_key'><%= t("recaptcha.settings.response_limit") %></label>
<div class="form--field-container">
- <%= styled_text_field_tag 'response_limit',
- Setting.plugin_openproject_recaptcha['response_limit'] %>
+ <%= styled_text_field_tag "response_limit",
+ Setting.plugin_openproject_recaptcha["response_limit"] %>
</div>
<div class="form--field-instructions">
- <%= I18n.t('recaptcha.settings.response_limit_text') %>
+ <%= I18n.t("recaptcha.settings.response_limit_text") %>
</div>
</div>
</fieldset>
- <%= styled_submit_tag t(:button_apply), class: '-primary' %>
+ <%= styled_submit_tag t(:button_apply), class: "-primary" %>
<% end %>
</section>
diff --git a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb b/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
index 88f02dde13a..82a1680627f 100644
--- a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
+++ b/modules/recaptcha/app/views/recaptcha/request/perform.html.erb
@@ -1,15 +1,15 @@
-<% html_title t('recaptcha.label_recaptcha') %>
-<% breadcrumb_paths(t('recaptcha.label_recaptcha')) %>
+<% html_title t("recaptcha.label_recaptcha") %>
+<% 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 %>
+ <h2 class="mb-3"><%= t "recaptcha.verify_account" %></h2>
+ <%= 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 %>">
<%= recaptcha_tags(
nonce: content_security_policy_script_nonce,
- callback: 'submitRecaptchaForm',
- site_key: recaptcha_settings['website_key'],
+ callback: "submitRecaptchaForm",
+ site_key: recaptcha_settings["website_key"],
) %>
<%= nonced_javascript_tag do %>
@@ -29,12 +29,12 @@
}
<% end %>
<% elsif recaptcha_settings['recaptcha_type'] == ::OpenProject::Recaptcha::TYPE_V3 %>
- <%= recaptcha_v3 action: 'login',
+ <%= recaptcha_v3 action: "login",
nonce: content_security_policy_script_nonce,
- callback: 'submitRecaptchaForm',
- site_key: recaptcha_settings['website_key'] %>
+ callback: "submitRecaptchaForm",
+ site_key: recaptcha_settings["website_key"] %>
- <p><%= t('recaptcha.button_please_wait') %></p>
+ <p><%= t("recaptcha.button_please_wait") %></p>
<%= nonced_javascript_tag do %>
function submitRecaptchaForm(id, val) {
document.getElementById(id).value = val;
@@ -57,7 +57,7 @@
window.onloadTurnstileCallback = function () {
turnstile.render('#turnstile-container', {
- sitekey: '<%= recaptcha_settings['website_key'] %>',
+ sitekey: '<%= recaptcha_settings["website_key"] %>',
callback: submitTurnstileForm,
});
};
diff --git a/modules/reporting/app/components/cost_reports/index_page_header_component.html.erb b/modules/reporting/app/components/cost_reports/index_page_header_component.html.erb
index 92d133f1d00..cf363707658 100644
--- a/modules/reporting/app/components/cost_reports/index_page_header_component.html.erb
+++ b/modules/reporting/app/components/cost_reports/index_page_header_component.html.erb
@@ -10,11 +10,11 @@
mobile_icon: "op-file-xls-descriptions",
mobile_label: t(:export_to_excel),
tag: :a,
- href: url_for({ controller: "cost_reports", action: :index, format: 'xls', project_id: @project }),
+ href: url_for({ controller: "cost_reports", action: :index, format: "xls", project_id: @project }),
data: {
controller: "costs--export",
"application-target": "dynamic",
- "costs--export-job-status-dialog-url-value": job_status_dialog_path('_job_uuid_'),
+ "costs--export-job-status-dialog-url-value": job_status_dialog_path("_job_uuid_"),
action: "click->costs--export#download"
}
) do |button|
@@ -27,11 +27,11 @@
mobile_icon: "op-file-xls-descriptions",
mobile_label: t("export.timesheet.button"),
tag: :a,
- href: url_for({ controller: "cost_reports", action: :index, format: 'pdf', project_id: @project }),
+ href: url_for({ controller: "cost_reports", action: :index, format: "pdf", project_id: @project }),
data: {
controller: "costs--export",
"application-target": "dynamic",
- "costs--export-job-status-dialog-url-value": job_status_dialog_path('_job_uuid_'),
+ "costs--export-job-status-dialog-url-value": job_status_dialog_path("_job_uuid_"),
action: "click->costs--export#download"
}
) do |button|
diff --git a/modules/storages/app/components/storages/admin/access_management_component.html.erb b/modules/storages/app/components/storages/admin/access_management_component.html.erb
index d91a65e7dcf..25ea1e9af13 100644
--- a/modules/storages/app/components/storages/admin/access_management_component.html.erb
+++ b/modules/storages/app/components/storages/admin/access_management_component.html.erb
@@ -1,17 +1,17 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
- grid_layout('op-storage-view--row',
+ component_wrapper(tag: "turbo-frame") do
+ grid_layout("op-storage-view--row",
tag: :div,
- test_selector: 'storage-access-management-section',
+ test_selector: "storage-access-management-section",
align_items: :center) do |grid|
grid.with_area(:item, tag: :div, mr: 3) do
- concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'access-management-label')) do
- I18n.t('storages.file_storage_view.access_management.subtitle')
+ concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: "access-management-label")) do
+ I18n.t("storages.file_storage_view.access_management.subtitle")
end)
concat(configuration_check_label_for(:access_management_configured))
end
- grid.with_area(:description, tag: :div, color: :subtle, test_selector: 'access-management-description') do
+ grid.with_area(:description, tag: :div, color: :subtle, test_selector: "access-management-description") do
render(Primer::Beta::Text.new) { access_management_description }
end
@@ -25,8 +25,8 @@
tag: :a,
scheme: :invisible,
href: edit_admin_settings_storage_access_management_path(storage),
- aria: { label: I18n.t('storages.label_edit_storage_access_management') },
- test_selector: 'storage-edit-access-management-button',
+ aria: { label: I18n.t("storages.label_edit_storage_access_management") },
+ test_selector: "storage-edit-access-management-button",
data: { turbo_stream: true }
)
)
diff --git a/modules/storages/app/components/storages/admin/automatically_managed_project_folders_info_component.html.erb b/modules/storages/app/components/storages/admin/automatically_managed_project_folders_info_component.html.erb
index fa01dfba65a..ec10d365514 100644
--- a/modules/storages/app/components/storages/admin/automatically_managed_project_folders_info_component.html.erb
+++ b/modules/storages/app/components/storages/admin/automatically_managed_project_folders_info_component.html.erb
@@ -1,13 +1,13 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
- grid_layout('op-storage-view--row', tag: :div, align_items: :center) do |grid|
+ component_wrapper(tag: "turbo-frame") do
+ grid_layout("op-storage-view--row", tag: :div, align_items: :center) do |grid|
grid.with_area(:item, tag: :div, mr: 3) do
- concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'storage-managed-project-folders-label')) { I18n.t('storages.file_storage_view.automatically_managed_folders') })
+ concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: "storage-managed-project-folders-label")) { I18n.t("storages.file_storage_view.automatically_managed_folders") })
concat(automatically_managed_project_folders_status_label)
end
- grid.with_area(:description, tag: :div, color: :subtle, test_selector: 'storage-automatically-managed-project-folders-description') do
- render(Primer::Beta::Text.new) { I18n.t('storages.page_titles.managed_project_folders.subtitle_short') }
+ grid.with_area(:description, tag: :div, color: :subtle, test_selector: "storage-automatically-managed-project-folders-description") do
+ render(Primer::Beta::Text.new) { I18n.t("storages.page_titles.managed_project_folders.subtitle_short") }
end
if editable_storage?
@@ -20,8 +20,8 @@
tag: :a,
href: edit_button_path,
scheme: :invisible,
- aria: { label: I18n.t('storages.label_edit_storage_automatically_managed_folders') },
- test_selector: 'storage-edit-automatically-managed-project-folders-button',
+ aria: { label: I18n.t("storages.label_edit_storage_automatically_managed_folders") },
+ test_selector: "storage-edit-automatically-managed-project-folders-button",
data: { turbo_stream: true }
)
)
diff --git a/modules/storages/app/components/storages/admin/edit_form_header_component.html.erb b/modules/storages/app/components/storages/admin/edit_form_header_component.html.erb
index 1d0f82b935c..6976d189087 100644
--- a/modules/storages/app/components/storages/admin/edit_form_header_component.html.erb
+++ b/modules/storages/app/components/storages/admin/edit_form_header_component.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
) do %>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title(test_selector: 'storage-new-page-header--title') do
+ header.with_title(test_selector: "storage-new-page-header--title") do
render OpTurbo::FrameComponent.new(@storage, context: :edit_storage_header) do
label_storage_name_with_provider_label
end
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 d7b5ef58f3f..22af82f0e4d 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
@@ -1,6 +1,6 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
- render(Primer::Beta::Text.new(tag: :div, test_selector: 'storage-automatically-managed-project-folders-form')) do
+ component_wrapper(tag: "turbo-frame") do
+ render(Primer::Beta::Text.new(tag: :div, test_selector: "storage-automatically-managed-project-folders-form")) do
primer_form_with(
model:,
url: form_url,
diff --git a/modules/storages/app/components/storages/admin/general_info_component.html.erb b/modules/storages/app/components/storages/admin/general_info_component.html.erb
index 9ae186e91d6..3408b0ee493 100644
--- a/modules/storages/app/components/storages/admin/general_info_component.html.erb
+++ b/modules/storages/app/components/storages/admin/general_info_component.html.erb
@@ -1,18 +1,18 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
- grid_layout('op-storage-view--row', tag: :div, align_items: :center) do |grid|
+ component_wrapper(tag: "turbo-frame") do
+ grid_layout("op-storage-view--row", tag: :div, align_items: :center) do |grid|
grid.with_area(:item, tag: :div, mr: 3) do
- concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'storage-provider-label')) { I18n.t('storages.file_storage_view.storage_provider') })
+ concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: "storage-provider-label")) { I18n.t("storages.file_storage_view.storage_provider") })
concat(configuration_check_label)
end
- grid.with_area(:description, tag: :div, color: :subtle, test_selector: 'storage-description') do
+ grid.with_area(:description, tag: :div, color: :subtle, test_selector: "storage-description") do
concat(render(Primer::Beta::Text.new) { storage_description })
if can_show_open_link?
concat(render(Primer::Beta::Text.new) { " - " })
concat(render(Primer::Beta::Link.new(href: open_href, target: "_blank")) do |link|
link.with_trailing_visual_icon(icon: "link-external", size: :small)
- I18n.t('storages.buttons.open_storage')
+ I18n.t("storages.buttons.open_storage")
end)
end
end
@@ -27,8 +27,8 @@
tag: :a,
scheme: :invisible,
href: edit_host_admin_settings_storage_path(storage),
- aria: { label: I18n.t('storages.label_edit_storage_host') },
- test_selector: 'storage-edit-host-button',
+ aria: { label: I18n.t("storages.label_edit_storage_host") },
+ test_selector: "storage-edit-host-button",
data: { turbo_stream: true }
)
)
diff --git a/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb b/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb
index 58ba704f68f..297646f0f6f 100644
--- a/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb
+++ b/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb
@@ -1,21 +1,21 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
- grid_layout('op-storage-view--row', tag: :div, align_items: :center) do |grid|
+ component_wrapper(tag: "turbo-frame") do
+ grid_layout("op-storage-view--row", tag: :div, align_items: :center) do |grid|
grid.with_area(:item, tag: :div, mr: 3) do
- concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'storage-openproject-oauth-label')) { I18n.t('storages.file_storage_view.openproject_oauth') })
+ concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: "storage-openproject-oauth-label")) { I18n.t("storages.file_storage_view.openproject_oauth") })
concat(configuration_check_label_for(:openproject_oauth_application_configured))
end
grid.with_area(:description,
- classes: 'wb-break-word',
+ classes: "wb-break-word",
tag: :div,
color: :subtle,
- test_selector: 'storage-openproject-oauth-application-description') do
+ test_selector: "storage-openproject-oauth-application-description") do
render(Primer::Beta::Text.new) { openproject_oauth_client_description }
end
if editable_storage?
- grid.with_area(:"icon-button", tag: :div, color: :muted, test_selector: 'storage-replace-openproject-oauth-application') do
+ grid.with_area(:"icon-button", tag: :div, color: :muted, test_selector: "storage-replace-openproject-oauth-application") do
flex_layout(justify_content: :flex_end) do |icons_container|
icons_container.with_column do
primer_form_with(
@@ -28,9 +28,9 @@
icon: :sync,
scheme: :invisible,
type: :submit,
- aria: { label: I18n.t('storages.buttons.replace_oauth_application') },
- data: { confirm: I18n.t('storages.confirm_replace_oauth_application') },
- test_selector: 'storage-replace-openproject-oauth-application-button'
+ aria: { label: I18n.t("storages.buttons.replace_oauth_application") },
+ data: { confirm: I18n.t("storages.confirm_replace_oauth_application") },
+ test_selector: "storage-replace-openproject-oauth-application-button"
)
)
end
diff --git a/modules/storages/app/components/storages/admin/oauth_application_info_copy_component.html.erb b/modules/storages/app/components/storages/admin/oauth_application_info_copy_component.html.erb
index 392c72c6742..d511e0c37f5 100644
--- a/modules/storages/app/components/storages/admin/oauth_application_info_copy_component.html.erb
+++ b/modules/storages/app/components/storages/admin/oauth_application_info_copy_component.html.erb
@@ -1,24 +1,24 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
- render(Primer::Beta::Text.new(tag: :div, test_selector: 'storage-openproject-oauth-application-form')) do
+ component_wrapper(tag: "turbo-frame") do
+ render(Primer::Beta::Text.new(tag: :div, test_selector: "storage-openproject-oauth-application-form")) do
flex_layout(flex_items: :center) do |credentials_row|
- credentials_row.with_row(mb: 3, test_selector: 'storage-openproject_oauth_application_warning') do
+ credentials_row.with_row(mb: 3, test_selector: "storage-openproject_oauth_application_warning") do
render(Primer::Alpha::Banner.new(icon: :alert, scheme: :warning)) do
- I18n.t('storages.instructions.oauth_application_details', oauth_application_details_link: oauth_application_details_link).html_safe
+ I18n.t("storages.instructions.oauth_application_details", oauth_application_details_link: oauth_application_details_link).html_safe
end
end
credentials_row.with_row(mb: 3) do
render(Primer::OpenProject::InputGroup.new(input_width: :large)) do |input_group|
input_group.with_text_input(name: :openproject_oauth_application_uid,
- label: I18n.t('storages.label_openproject_oauth_application_id'),
+ label: I18n.t("storages.label_openproject_oauth_application_id"),
visually_hide_label: false,
value: oauth_application.uid,
required: true)
input_group.with_trailing_action_clipboard_copy_button(
value: oauth_application.uid,
aria: {
- label: I18n.t('button_copy_to_clipboard')
+ label: I18n.t("button_copy_to_clipboard")
})
end
end
@@ -26,20 +26,20 @@
credentials_row.with_row(mb: 3) do
render(Primer::OpenProject::InputGroup.new(input_width: :large)) do |input_group|
input_group.with_text_input(name: :openproject_oauth_application_secret,
- label: I18n.t('storages.label_openproject_oauth_application_secret'),
+ label: I18n.t("storages.label_openproject_oauth_application_secret"),
visually_hide_label: false,
value: oauth_application.plaintext_secret,
required: true)
input_group.with_trailing_action_clipboard_copy_button(
value: oauth_application.plaintext_secret,
aria: {
- label: I18n.t('button_copy_to_clipboard')
+ label: I18n.t("button_copy_to_clipboard")
})
end
end
credentials_row.with_row do
- concat(render(Primer::Beta::Button.new(**submit_button_options)) { I18n.t('storages.buttons.done_continue') })
+ concat(render(Primer::Beta::Button.new(**submit_button_options)) { I18n.t("storages.buttons.done_continue") })
end
end
end
diff --git a/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb b/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
index 04c67a9394b..1510626b792 100644
--- a/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
+++ b/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
@@ -1,20 +1,20 @@
<%=
- component_wrapper(tag: 'turbo-frame') do
- grid_layout('op-storage-view--row', tag: :div, align_items: :center) do |grid|
+ component_wrapper(tag: "turbo-frame") do
+ grid_layout("op-storage-view--row", tag: :div, align_items: :center) do |grid|
grid.with_area(:item, tag: :div, mr: 3) do
concat(
render(
- Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'storage-oauth-client-label')
+ Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: "storage-oauth-client-label")
) { I18n.t("storages.file_storage_view.#{storage}_oauth") }
)
concat(configuration_check_label_for(:storage_oauth_client_configured))
end
grid.with_area(:description,
- classes: 'wb-break-word',
+ classes: "wb-break-word",
tag: :div,
color: :subtle,
- test_selector: 'storage-oauth-client-id-description') do
+ test_selector: "storage-oauth-client-id-description") do
render(Primer::Beta::Text.new) { provider_oauth_client_description }
end
diff --git a/modules/storages/app/components/storages/admin/storage_list_component.html.erb b/modules/storages/app/components/storages/admin/storage_list_component.html.erb
index c2e7fa903ad..c2ca6aac411 100644
--- a/modules/storages/app/components/storages/admin/storage_list_component.html.erb
+++ b/modules/storages/app/components/storages/admin/storage_list_component.html.erb
@@ -2,21 +2,21 @@
if storages.present?
render(border_box_container) do |component|
component.with_header(color: :muted) do
- grid_layout('op-storage-list--header', tag: :div, align_items: :center) do |grid|
+ grid_layout("op-storage-list--header", tag: :div, align_items: :center) do |grid|
grid.with_area(:name, tag: :div, mr: 3) do
- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('storages.label_name') }
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("storages.label_name") }
end
grid.with_area(:user, tag: :div, color: :muted, mr: 3, hide: :sm) do
- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('storages.label_creator') }
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("storages.label_creator") }
end
grid.with_area(:provider, tag: :div, color: :muted, mr: 3, hide: :sm) do
- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('storages.label_provider') }
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("storages.label_provider") }
end
grid.with_area(:time, tag: :div, color: :muted, hide: :sm) do
- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('storages.label_creation_time') }
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("storages.label_creation_time") }
end
end
end
@@ -30,8 +30,8 @@
else
render Primer::Beta::Blankslate.new(border: true) do |component|
component.with_visual_icon(icon: :cloud)
- component.with_heading(tag: :h2).with_content(I18n.t('storages.storage_list_blank_slate.heading'))
- component.with_description { I18n.t('storages.storage_list_blank_slate.description') }
+ component.with_heading(tag: :h2).with_content(I18n.t("storages.storage_list_blank_slate.heading"))
+ component.with_description { I18n.t("storages.storage_list_blank_slate.description") }
end
end
%>
diff --git a/modules/storages/app/components/storages/admin/storage_row_component.html.erb b/modules/storages/app/components/storages/admin/storage_row_component.html.erb
index df912ff06de..2f4a797187e 100644
--- a/modules/storages/app/components/storages/admin/storage_row_component.html.erb
+++ b/modules/storages/app/components/storages/admin/storage_row_component.html.erb
@@ -1,31 +1,31 @@
<%=
- grid_layout('op-storage-list--row', tag: :div, align_items: :center) do |grid|
- grid.with_area(:name, tag: :div, mr: 3, classes: 'ellipsis') do
- concat(render(Primer::Beta::Link.new(href: url_helpers.edit_admin_settings_storage_path(storage), font_weight: :bold, mr: 1, data: { 'test-selector': 'storage-name' })) { storage.name })
+ grid_layout("op-storage-list--row", tag: :div, align_items: :center) do |grid|
+ grid.with_area(:name, tag: :div, mr: 3, classes: "ellipsis") do
+ concat(render(Primer::Beta::Link.new(href: url_helpers.edit_admin_settings_storage_path(storage), font_weight: :bold, mr: 1, data: { 'test-selector': "storage-name" })) { storage.name })
unless storage.configured?
concat(render(Primer::Beta::Label.new(scheme: :attention, test_selector: "label-incomplete")) { I18n.t(:label_incomplete) })
end
if storage.health_unhealthy?
- concat(render(Primer::Beta::Label.new(scheme: :danger, test_selector: "storage-health-label-error")) { I18n.t('storages.health.label_error') })
+ concat(render(Primer::Beta::Label.new(scheme: :danger, test_selector: "storage-health-label-error")) { I18n.t("storages.health.label_error") })
end
end
- grid.with_area(:host, tag: :div, mr: 3, color: :subtle, data: { 'test-selector': 'storage-host' }, classes: 'ellipsis') do
+ grid.with_area(:host, tag: :div, mr: 3, color: :subtle, data: { 'test-selector': "storage-host" }, classes: "ellipsis") do
render(Primer::Beta::Truncate.new(font_weight: :light)) { storage.host }
end
- grid.with_area(:user, tag: :div, color: :subtle, mr: 3, font_weight: :light, data: { 'test-selector': 'storage-creator' }, classes: 'ellipsis') do
- render(Users::AvatarComponent.new(user: storage.creator, size: :mini, link: false, show_name: true, name_classes: 'hidden-for-tablet-and-small-laptops'))
+ grid.with_area(:user, tag: :div, color: :subtle, mr: 3, font_weight: :light, data: { 'test-selector': "storage-creator" }, classes: "ellipsis") do
+ render(Users::AvatarComponent.new(user: storage.creator, size: :mini, link: false, show_name: true, name_classes: "hidden-for-tablet-and-small-laptops"))
end
- grid.with_area(:provider, tag: :div, color: :subtle, mr: 3, hide: :sm, data: { 'test-selector': 'storage-provider' }) do
+ grid.with_area(:provider, tag: :div, color: :subtle, mr: 3, hide: :sm, data: { 'test-selector': "storage-provider" }) do
render(Primer::Beta::Truncate.new(font_weight: :light)) { I18n.t("storages.provider_types.#{storage}.name") }
end
grid.with_area(:time, tag: :div, color: :subtle) do
- render(Primer::Beta::Text.new(font_weight: :light)) { I18n.t('activity.item.created_on', datetime: helpers.format_time(storage.created_at)).capitalize }
+ render(Primer::Beta::Text.new(font_weight: :light)) { I18n.t("activity.item.created_on", datetime: helpers.format_time(storage.created_at)).capitalize }
end
end
%>
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 8c7b84e90fb..ace680a0369 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
@@ -5,12 +5,12 @@
id: dialog_id,
title: heading_text,
data: {
- 'application-target': 'dynamic',
- controller: 'storages--oauth-access-grant-nudge-modal',
- 'storages--oauth-access-grant-nudge-modal-close-button-label-value': I18n.t('button_close'),
+ '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,
},
- test_selector: 'oauth-access-grant-nudge-modal',
+ test_selector: "oauth-access-grant-nudge-modal",
size: :large
)
) do |dialog|
@@ -19,21 +19,21 @@
role: :alert,
aria: { live: :assertive },
data: {
- 'storages--oauth-access-grant-nudge-modal-target': 'header'
+ 'storages--oauth-access-grant-nudge-modal-target': "header"
},
visually_hide_title: true
)
dialog.with_body(
id: dialog_body_id,
- test_selector: 'oauth-access-grant-nudge-modal-body'
+ test_selector: "oauth-access-grant-nudge-modal-body"
) do
concat(
render(
Primer::Beta::Text.new(
display: :none,
data: {
- 'storages--oauth-access-grant-nudge-modal-target': 'loadingIndicator'
+ 'storages--oauth-access-grant-nudge-modal-target': "loadingIndicator"
}
)
) { render(Storages::OpenProjectStorageModalComponent::Body.new(:waiting, waiting_title:)) }
@@ -58,7 +58,7 @@
size: :medium,
data: {
'close-dialog-id': dialog_id,
- 'storages--oauth-access-grant-nudge-modal-target': 'closeButton'
+ 'storages--oauth-access-grant-nudge-modal-target': "closeButton"
}
)
) { cancel_button_text }
@@ -70,7 +70,7 @@
url: confirm_button_url,
method: :get,
data: {
- 'storages--oauth-access-grant-nudge-modal-target': 'requestAccessForm'
+ 'storages--oauth-access-grant-nudge-modal-target': "requestAccessForm"
}
) do |_form|
render(
@@ -80,8 +80,8 @@
type: :submit,
aria: { label: login_button_aria_label },
data: {
- 'storages--oauth-access-grant-nudge-modal-target': 'requestAccessButton',
- action: 'storages--oauth-access-grant-nudge-modal#requestAccess'
+ 'storages--oauth-access-grant-nudge-modal-target': "requestAccessButton",
+ action: "storages--oauth-access-grant-nudge-modal#requestAccess"
}
)
) do |button|
diff --git a/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.html.erb b/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.html.erb
index 7bc3acaccdc..7b8b6308986 100644
--- a/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.html.erb
+++ b/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.html.erb
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
)) do
flex_layout do |flex|
flex.with_row do
- angular_component_tag 'opce-custom-modal-overlay'
+ angular_component_tag "opce-custom-modal-overlay"
end
if new_record?
diff --git a/modules/storages/app/components/storages/open_project_storage_modal_component.html.erb b/modules/storages/app/components/storages/open_project_storage_modal_component.html.erb
index fd37bafa49c..1afa607c1bb 100644
--- a/modules/storages/app/components/storages/open_project_storage_modal_component.html.erb
+++ b/modules/storages/app/components/storages/open_project_storage_modal_component.html.erb
@@ -1,6 +1,6 @@
<%= render(
Primer::Alpha::Dialog.new(id: self.class.dialog_id,
- title: 'Open project folder modal',
+ title: "Open project folder modal",
data:)
) do |dialog| %>
<% dialog.with_header(display: :none) %>
diff --git a/modules/storages/app/components/storages/open_project_storage_modal_component/body.html.erb b/modules/storages/app/components/storages/open_project_storage_modal_component/body.html.erb
index 09b56900c57..ab617a00cff 100644
--- a/modules/storages/app/components/storages/open_project_storage_modal_component/body.html.erb
+++ b/modules/storages/app/components/storages/open_project_storage_modal_component/body.html.erb
@@ -1,12 +1,12 @@
<% case @state %>
<% when :waiting %>
<%= render(Primer::OpenProject::FeedbackMessage.new(loading: true)) do |component|
- component.with_heading(tag: :h2, id: 'waiting_title') { waiting_title }
- component.with_description(id: 'waiting_subtitle') { waiting_subtitle }
+ component.with_heading(tag: :h2, id: "waiting_title") { waiting_title }
+ component.with_description(id: "waiting_subtitle") { waiting_subtitle }
end %>
<% when :success %>
<%= render(Primer::OpenProject::FeedbackMessage.new) do |component|
component.with_heading(tag: :h2) { success_title }
- component.with_description(id: 'waiting_subtitle') { success_subtitle }
+ component.with_description(id: "waiting_subtitle") { success_subtitle }
end %>
<% end %>
diff --git a/modules/storages/app/views/storages/admin/storages/_new.html.erb b/modules/storages/app/views/storages/admin/storages/_new.html.erb
index db33c407100..4d6e708b703 100644
--- a/modules/storages/app/views/storages/admin/storages/_new.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/_new.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% content_controller 'storages--storage-form',
+<% content_controller "storages--storage-form",
dynamic: true,
'storages--storage-form-one-drive-placeholder-value': t(:"storages.provider_types.one_drive.name_placeholder"),
'storages--storage-form-nextcloud-placeholder-value': t(:"storages.provider_types.nextcloud.name_placeholder") %>
@@ -43,31 +43,31 @@ See COPYRIGHT and LICENSE files for more details.
::Storages::Storage::PROVIDER_TYPES.map { |provider_type| [I18n.t("storages.provider_types.#{::Storages::Storage.shorten_provider_type(provider_type)}.name"), provider_type] },
{
selected: ::Storages::Storage::PROVIDER_TYPE_NEXTCLOUD,
- container_class: '-slim'
+ container_class: "-slim"
},
data: {
- 'storages--storage-form-target': 'selectProviderType'
+ 'storages--storage-form-target': "selectProviderType"
} %>
- <span class="form--field-instructions"><%= t('storages.instructions.type') %> <%= t('storages.instructions.type_link_text') %></span>
+ <span class="form--field-instructions"><%= t("storages.instructions.type") %> <%= t("storages.instructions.type_link_text") %></span>
</div>
<div class="form--field -required">
<%= f.text_field :name,
required: true,
placeholder: I18n.t("storages.provider_types.#{@storage}.name_placeholder"),
- container_class: '-slim',
+ container_class: "-slim",
data: {
- 'storages--storage-form-target': 'storageName'
+ 'storages--storage-form-target': "storageName"
} %>
- <span class="form--field-instructions"><%= t('storages.instructions.name') %></span>
+ <span class="form--field-instructions"><%= t("storages.instructions.name") %></span>
</div>
<div class="form--field -required" data-storages--storage-form-target="storageUrl">
<%= f.text_field :host,
- label: t('storages.label_host'),
+ label: t("storages.label_host"),
type: :url,
required: true,
pattern: ".{1,255}",
placeholder: "https://my-file-storage.com",
- container_class: '-wide' %>
- <span class="form--field-instructions"><%= t('storages.instructions.host') %></span>
+ container_class: "-wide" %>
+ <span class="form--field-instructions"><%= t("storages.instructions.host") %></span>
</div>
</fieldset>
diff --git a/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb b/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb
index 9d1186959c9..f4d99e57f4e 100644
--- a/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb
@@ -27,36 +27,36 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%= styled_form_tag(admin_settings_storage_path(@storage_to_destroy),
- class: 'danger-zone',
+ class: "danger-zone",
method: :delete) do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('storages.page_titles.file_storages.delete') %>
+ <%= t("storages.page_titles.file_storages.delete") %>
</h3>
<p>
- <%= t('storages.delete_warning.storage', file_storage: "<strong>#{h(@storage_to_destroy.name)}</strong>").html_safe %>
+ <%= t("storages.delete_warning.storage", file_storage: "<strong>#{h(@storage_to_destroy.name)}</strong>").html_safe %>
</p>
<ul class="mb-3">
- <li> <%= t('storages.delete_warning.storage_delete_result_1') %>
- <li> <%= t('storages.delete_warning.storage_delete_result_2') %>
- <li> <%= t('storages.delete_warning.storage_delete_result_3') %>
+ <li> <%= t("storages.delete_warning.storage_delete_result_1") %>
+ <li> <%= t("storages.delete_warning.storage_delete_result_2") %>
+ <li> <%= t("storages.delete_warning.storage_delete_result_3") %>
</ul>
<p class="danger-zone--warning">
<span class="icon icon-error"></span>
- <span><%= t('storages.delete_warning.irreversible_notice') %></span>
+ <span><%= t("storages.delete_warning.irreversible_notice") %></span>
</p>
<p>
- <%= t('storages.delete_warning.input_delete_confirmation', file_storage: "<em class=\"danger-zone--expected-value\">#{h(@storage_to_destroy.name)}</em>").html_safe %>
+ <%= t("storages.delete_warning.input_delete_confirmation", file_storage: "<em class=\"danger-zone--expected-value\">#{h(@storage_to_destroy.name)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<%= text_field_tag :delete_confirmation %>
- <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to admin_settings_storages_path,
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' do %>
+ class: "button -with-icon icon-cancel" do %>
<%= t(:button_cancel) %>
<% end %>
</div>
diff --git a/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erb b/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erb
index 39b9d319961..bcf4badc8a4 100644
--- a/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/project_storages/index.html.erb
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
href: new_admin_settings_storage_project_storage_path(@storage),
data: { controller: "async-dialog" }
)) do |button|
- button.with_leading_visual_icon(icon: 'op-include-projects')
+ button.with_leading_visual_icon(icon: "op-include-projects")
I18n.t(:label_add_projects)
end
end
diff --git a/modules/storages/app/views/storages/admin/storages/upsale.html.erb b/modules/storages/app/views/storages/admin/storages/upsale.html.erb
index 92508024cde..de54d19b2a5 100644
--- a/modules/storages/app/views/storages/admin/storages/upsale.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/upsale.html.erb
@@ -1,9 +1,9 @@
-<% html_title(t(:label_administration), t('storages.upsale.title')) -%>
+<% html_title(t(:label_administration), t("storages.upsale.title")) -%>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
- feature_title: t('storages.upsale.title'),
- feature_description: t('storages.upsale.description'),
- feature_reference: 'one_drive_sharepoint_file_storage',
- feature_video: 'enterprise/one_drive_sharepoint_integration.mp4'
+ feature_title: t("storages.upsale.title"),
+ feature_description: t("storages.upsale.description"),
+ feature_reference: "one_drive_sharepoint_file_storage",
+ feature_video: "enterprise/one_drive_sharepoint_integration.mp4"
} %>
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 86e77c8608d..269ba123995 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
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% content_controller 'project-storage-form',
+<% content_controller "project-storage-form",
dynamic: true,
'project-storage-form-folder-mode-value': @project_storage.project_folder_mode,
'project-storage-form-placeholder-folder-name-value': t(:"storages.label_no_selected_folder"),
@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= content_tag(:span,
storage.name,
data: {
- 'project-storage-form-target': 'storage',
+ 'project-storage-form-target': "storage",
storage: {
name: storage.name,
id: storage.id,
@@ -66,7 +66,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_label_tag :project_folder_mode,
class: "-bold -flex" do %>
<%= t(:"storages.label_project_folder") %>
- <%= angular_component_tag 'opce-static-attribute-help-text',
+ <%= angular_component_tag "opce-static-attribute-help-text",
inputs: {
title: t(:"storages.label_project_folder"),
content: t(:"storages.help_texts.project_folder"),
@@ -74,11 +74,11 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% if @project_storage.project_folder_mode_possible?('inactive') %>
<div class="form--field-container">
- <%= f.label :project_folder_mode, value: 'inactive', class: "form--label-with-radio-button" do %>
+ <%= f.label :project_folder_mode, value: "inactive", class: "form--label-with-radio-button" do %>
<%= f.radio_button :project_folder_mode,
- 'inactive',
+ "inactive",
no_label: true,
- data: { action: 'project-storage-form#updateForm' } %>
+ data: { action: "project-storage-form#updateForm" } %>
<%= t(:"storages.label_no_specific_folder") %>
<% end %>
</div>
@@ -89,11 +89,11 @@ See COPYRIGHT and LICENSE files for more details.
<% if @project_storage.project_folder_mode_possible?('automatic') %>
<div class="form--field-container">
- <%= f.label :project_folder_mode, value: 'automatic', class: "form--label-with-radio-button" do %>
+ <%= f.label :project_folder_mode, value: "automatic", class: "form--label-with-radio-button" do %>
<%= f.radio_button :project_folder_mode,
- 'automatic',
+ "automatic",
no_label: true,
- data: { action: 'project-storage-form#updateForm' } %>
+ data: { action: "project-storage-form#updateForm" } %>
<%= t(:"storages.label_automatic_folder") %>
<% end %>
</div>
@@ -104,11 +104,11 @@ See COPYRIGHT and LICENSE files for more details.
<% if @project_storage.project_folder_mode_possible?('manual') %>
<div class="form--field-container">
- <%= f.label :project_folder_mode, value: 'manual', class: "form--label-with-radio-button" do %>
+ <%= f.label :project_folder_mode, value: "manual", class: "form--label-with-radio-button" do %>
<%= f.radio_button :project_folder_mode,
- 'manual',
+ "manual",
no_label: true,
- data: { action: 'project-storage-form#updateForm' } %>
+ data: { action: "project-storage-form#updateForm" } %>
<%= t(:"storages.label_existing_manual_folder") %>
<% end %>
</div>
@@ -120,16 +120,16 @@ See COPYRIGHT and LICENSE files for more details.
<div
class="form--field-container -with-children-spacing d-none"
data-project-storage-form-target="projectFolderSection">
- <%= styled_button_tag class: 'button_no-margin',
+ <%= styled_button_tag class: "button_no-margin",
data: {
'project-storage-form-target': "selectProjectFolderButton",
'action': "project-storage-form#selectProjectFolder"
},
- type: 'button' do %>
- <%= spot_icon('folder-open') %>
+ type: "button" do %>
+ <%= spot_icon("folder-open") %>
<%= content_tag :span, t(:"storages.buttons.select_folder") %>
<% end %>
- <%= angular_component_tag 'opce-storage-login-button',
+ <%= angular_component_tag "opce-storage-login-button",
inputs: {
input: storage_login_input(@project_storage.storage)
},
@@ -142,7 +142,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @errors&.any? { |error| error.attribute == :project_folder_id } %>
<%= content_tag :span,
t(:"storages.instructions.empty_project_folder_validation"),
- class: 'form--field-error -with-bottom-spacing',
+ class: "form--field-error -with-bottom-spacing",
data: {
'project-storage-form-target': "projectFolderIdValidation"
} %>
@@ -151,11 +151,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_button_tag class: "-primary" do %>
- <%= spot_icon('checkmark') %>
+ <%= spot_icon("checkmark") %>
<%= content_tag :span, submit_button_label %>
<% end %>
- <%= link_to external_file_storages_project_settings_project_storages_path(@project), class: 'button' do %>
- <%= spot_icon('cancel') %>
+ <%= link_to external_file_storages_project_settings_project_storages_path(@project), class: "button" do %>
+ <%= spot_icon("cancel") %>
<%= content_tag :span, t(:button_cancel) %>
<% end %>
</div>
diff --git a/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb b/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb
index 170aa20f99f..4e251e03cac 100644
--- a/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb
@@ -30,13 +30,13 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -required">
<%= f.select :storage_id,
@available_storages.map { |storage| ["#{storage.name} (#{storage})", storage.id] },
- class: '-bold',
+ class: "-bold",
selected: @available_storages.first.id.to_s,
- container_class: '-slim' %>
+ container_class: "-slim" %>
<% if User.current.admin? %>
<span class="form--field-instructions">
<%= t(:"storages.instructions.setting_up_additional_storages") %>
- <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: '/storages/admin/storages', action: :index %>
+ <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: "/storages/admin/storages", action: :index %>
.
</span>
<% end %>
@@ -44,11 +44,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_button_tag class: "-primary" do %>
- <%= spot_icon('checkmark') %>
+ <%= spot_icon("checkmark") %>
<%= content_tag :span, submit_button_label %>
<% end %>
- <%= link_to external_file_storages_project_settings_project_storages_path(@project), class: 'button' do %>
- <%= spot_icon('cancel') %>
+ <%= link_to external_file_storages_project_settings_project_storages_path(@project), class: "button" do %>
+ <%= spot_icon("cancel") %>
<%= content_tag :span, t(:button_cancel) %>
<% end %>
</div>
diff --git a/modules/storages/app/views/storages/project_settings/_toast_all_available_storages_already_added.html.erb b/modules/storages/app/views/storages/project_settings/_toast_all_available_storages_already_added.html.erb
index 948b5fa2d82..bcc6ad2bafc 100644
--- a/modules/storages/app/views/storages/project_settings/_toast_all_available_storages_already_added.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_toast_all_available_storages_already_added.html.erb
@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.
<p>
<% if User.current.admin? %>
<%= t(:"storages.instructions.setting_up_additional_storages") %>
- <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: '/storages/admin/storages', action: :index %>.
+ <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: "/storages/admin/storages", action: :index %>.
<% else %>
<%= t(:"storages.instructions.setting_up_additional_storages_non_admin") %>
<% end %>
diff --git a/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb b/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb
index 40125806266..381289e67b5 100644
--- a/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb
@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.
<p>
<% if User.current.admin? %>
<%= t(:"storages.instructions.setting_up_storages") %>
- <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: '/storages/admin/storages', action: :index %>.
+ <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: "/storages/admin/storages", action: :index %>.
<% else %>
<%= t(:"storages.instructions.setting_up_storages_non_admin") %>
<% end %>
diff --git a/modules/storages/app/views/storages/project_settings/destroy_info.html.erb b/modules/storages/app/views/storages/project_settings/destroy_info.html.erb
index 07599d53563..360a0f979a7 100644
--- a/modules/storages/app/views/storages/project_settings/destroy_info.html.erb
+++ b/modules/storages/app/views/storages/project_settings/destroy_info.html.erb
@@ -28,44 +28,44 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('storages.page_titles.project_settings.delete') }
+ header.with_title { t("storages.page_titles.project_settings.delete") }
header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },
{ href: project_settings_general_path(@project.id), text: I18n.t("label_project_settings") },
{ href: external_file_storages_project_settings_project_storages_path(@project), text: t("project_module_storages") },
- t('storages.page_titles.project_settings.delete')])
+ t("storages.page_titles.project_settings.delete")])
end
%>
<%= styled_form_tag(project_settings_project_storage_path(project_id: @project_storage_to_destroy.project, id: @project_storage_to_destroy),
- class: 'danger-zone',
+ class: "danger-zone",
method: :delete) do %>
<section class="form--section">
<h3 class="form--section-title">
- <%= t('storages.page_titles.project_settings.delete') %>
+ <%= t("storages.page_titles.project_settings.delete") %>
</h3>
<p>
- <%= t('storages.delete_warning.project_storage', file_storage: "<strong>#{h(@project_storage_to_destroy.storage.name)}</strong>").html_safe %>
+ <%= t("storages.delete_warning.project_storage", file_storage: "<strong>#{h(@project_storage_to_destroy.storage.name)}</strong>").html_safe %>
</p>
<ul class="mb-3">
- <li> <%= t('storages.delete_warning.project_storage_delete_result_1') %>
- <li> <%= t('storages.delete_warning.project_storage_delete_result_2') %>
+ <li> <%= t("storages.delete_warning.project_storage_delete_result_1") %>
+ <li> <%= t("storages.delete_warning.project_storage_delete_result_2") %>
</ul>
<p class="danger-zone--warning">
<span class="icon icon-error"></span>
- <span><%= t('storages.delete_warning.irreversible_notice') %></span>
+ <span><%= t("storages.delete_warning.irreversible_notice") %></span>
</p>
<p>
- <%= t('storages.delete_warning.input_delete_confirmation', file_storage: "<em class=\"danger-zone--expected-value\">#{h(@project_storage_to_destroy.storage.name)}</em>").html_safe %>
+ <%= t("storages.delete_warning.input_delete_confirmation", file_storage: "<em class=\"danger-zone--expected-value\">#{h(@project_storage_to_destroy.storage.name)}</em>").html_safe %>
</p>
<div class="danger-zone--verification">
<%= text_field_tag :delete_confirmation %>
- <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
- concat content_tag :i, '', class: 'button--icon icon-delete'
- concat content_tag :span, t(:button_delete), class: 'button--text'
+ <%= styled_button_tag title: t(:button_delete), class: "-primary", disabled: true do
+ concat content_tag :i, "", class: "button--icon icon-delete"
+ concat content_tag :span, t(:button_delete), class: "button--text"
end %>
<%= link_to external_file_storages_project_settings_project_storages_path(@project_storage_to_destroy.project),
title: t(:button_cancel),
- class: 'button -with-icon icon-cancel' do %>
+ class: "button -with-icon icon-cancel" do %>
<%= t(:button_cancel) %>
<% end %>
</div>
diff --git a/modules/storages/app/views/storages/project_settings/edit.html.erb b/modules/storages/app/views/storages/project_settings/edit.html.erb
index b30f286f5ce..1b6500be10d 100644
--- a/modules/storages/app/views/storages/project_settings/edit.html.erb
+++ b/modules/storages/app/views/storages/project_settings/edit.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t("project_module_storages"), t('label_edit_x', x: @object.storage.name) %>
+<% html_title t(:label_administration), t("project_module_storages"), t("label_edit_x", x: @object.storage.name) %>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @project_storage, url: project_settings_project_storage_path(project_id: @project_storage.project, id: @project_storage) do |f| -%>
<section class="form--section">
- <%= render partial: '/storages/project_settings/project_folder_form',
- locals: { f: f, available_storages: @available_storages, submit_button_label: t('button_save') } %>
+ <%= render partial: "/storages/project_settings/project_folder_form",
+ locals: { f: f, available_storages: @available_storages, submit_button_label: t("button_save") } %>
</section>
<% end %>
diff --git a/modules/storages/app/views/storages/project_settings/new.html.erb b/modules/storages/app/views/storages/project_settings/new.html.erb
index e8fb7482d34..9fb86c3c759 100644
--- a/modules/storages/app/views/storages/project_settings/new.html.erb
+++ b/modules/storages/app/views/storages/project_settings/new.html.erb
@@ -45,16 +45,16 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @project_storage,
url: new_project_settings_project_storage_path,
html: { method: :get } do |f| -%>
- <%= render partial: '/storages/project_settings/storage_select_form',
- locals: { f: f, available_storages: @available_storages, submit_button_label: t('button_continue') } %>
+ <%= render partial: "/storages/project_settings/storage_select_form",
+ locals: { f: f, available_storages: @available_storages, submit_button_label: t("button_continue") } %>
<% end %>
<% else %>
<%= labelled_tabular_form_for @project_storage, url: project_settings_project_storages_path do |f| -%>
- <%= render partial: '/storages/project_settings/project_folder_form',
- locals: { f: f, submit_button_label: t('button_add') } %>
+ <%= render partial: "/storages/project_settings/project_folder_form",
+ locals: { f: f, submit_button_label: t("button_add") } %>
<% end %>
<% end %>
<% else %>
- <%= render partial: '/storages/project_settings/toast_all_available_storages_already_added' %>
+ <%= render partial: "/storages/project_settings/toast_all_available_storages_already_added" %>
<% end %>
</section>
diff --git a/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb b/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb
index 220df2dcb49..4174ed49e1f 100644
--- a/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb
+++ b/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb
@@ -27,24 +27,24 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render layout: 'mailer/border_table' do %>
+<%= render layout: "mailer/border_table" do %>
<tr>
<td>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;font-size:14px;') %>>
+ <table <%= placeholder_table_styles(width: "100%", style: "width:100%;font-size:14px;") %>>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td>
<table <%= placeholder_table_styles %>>
<tr>
<td>
<% if state == :unhealthy %>
- <%= render Mailer::LabelComponent.new(scheme: :danger, text: 'Error') %>
+ <%= render Mailer::LabelComponent.new(scheme: :danger, text: "Error") %>
<% else %>
- <%= render Mailer::LabelComponent.new(scheme: :success, text: 'Healthy') %>
+ <%= render Mailer::LabelComponent.new(scheme: :success, text: "Healthy") %>
<% end %>
</td>
- <%= placeholder_cell('8px', vertical: true) %>
+ <%= placeholder_cell("8px", vertical: true) %>
<td style="color: #878787; font-size: 12px; font-weight: 700;">
<%= I18n.t("storages.provider_types.#{storage}.name") %> - <%= storage.uri %>
@@ -52,45 +52,45 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
</table>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<tr>
- <%= placeholder_cell('8px', vertical: false) %>
+ <%= placeholder_cell("8px", vertical: false) %>
</tr>
<tr>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td style="font-weight: 700; line-height: 20px; color: black;"><%= storage.name %></td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<tr>
- <%= placeholder_cell('8px', vertical: false) %>
+ <%= placeholder_cell("8px", vertical: false) %>
</tr>
<tr id="reason">
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td style="color: #878787; font-size: 12px; font-weight: 400; line-height: 16px;">
<% if state == :unhealthy %>
- <%= reason %> <%= I18n.t('mail.storages.health.unhealthy.since') %> <%= format_time(storage.health_changed_at) %>
+ <%= reason %> <%= I18n.t("mail.storages.health.unhealthy.since") %> <%= format_time(storage.health_changed_at) %>
<% else %>
- <%= reason %> <%= I18n.t('mail.storages.health.healthy.solved_at') %> <%= format_time(storage.health_changed_at) %>
+ <%= reason %> <%= I18n.t("mail.storages.health.healthy.solved_at") %> <%= format_time(storage.health_changed_at) %>
<% end %>
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<% if storage.provider_type == ::Storages::Storage::PROVIDER_TYPE_NEXTCLOUD && state == :unhealthy %>
<tr id="troubleshooting">
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
<td style="color: #878787; font-size: 12px; font-weight: 400; line-height: 16px;">
- <%= I18n.t('mail.storages.health.unhealthy.troubleshooting.text') %>
- <a href="<%= ::OpenProject::Static::Links[:storage_docs][:troubleshooting][:href] %>"><%= I18n.t('mail.storages.health.unhealthy.troubleshooting.link_text') %></a>.
+ <%= I18n.t("mail.storages.health.unhealthy.troubleshooting.text") %>
+ <a href="<%= ::OpenProject::Static::Links[:storage_docs][:troubleshooting][:href] %>"><%= I18n.t("mail.storages.health.unhealthy.troubleshooting.link_text") %></a>.
</td>
- <%= placeholder_cell('12px', vertical: true) %>
+ <%= placeholder_cell("12px", vertical: true) %>
</tr>
<% end %>
</table>
@@ -98,9 +98,9 @@ See COPYRIGHT and LICENSE files for more details.
</tr>
<% end %>
-<table <%= placeholder_table_styles(width: '100%', style: "width:100%;") %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;") %>>
<tr>
- <%= placeholder_cell('12px', vertical: false) %>
+ <%= placeholder_cell("12px", vertical: false) %>
</tr>
<tr>
@@ -109,12 +109,12 @@ See COPYRIGHT and LICENSE files for more details.
href="<%= url %>"
target="_blank"
rel="noopener noreferrer">
- <%= I18n.t('mail.work_packages.open_in_browser') %>
+ <%= I18n.t("mail.work_packages.open_in_browser") %>
</a>
</td>
</tr>
<tr>
- <%= placeholder_cell('20px', vertical: false) %>
+ <%= placeholder_cell("20px", vertical: false) %>
</tr>
</table>
diff --git a/modules/storages/app/views/storages/storages_mailer/notify_healthy.html.erb b/modules/storages/app/views/storages/storages_mailer/notify_healthy.html.erb
index 774cc0ff30e..40b0bf2ec4b 100644
--- a/modules/storages/app/views/storages/storages_mailer/notify_healthy.html.erb
+++ b/modules/storages/app/views/storages/storages_mailer/notify_healthy.html.erb
@@ -27,10 +27,10 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<table <%= placeholder_table_styles(width: '100%', style: 'width:100%;max-width:700px') %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px") %>>
<tr>
<td>
- <%= render(partial: 'mailer/mailer_header',
+ <%= render(partial: "mailer/mailer_header",
locals: {
user: @admin,
summary: I18n.t("mail.storages.health.healthy.summary", storage_name: @storage.name),
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
button_text: I18n.t(:'mail.storages.health.see_storage_settings')
}) %>
- <%= render(partial: 'health_status_notification',
+ <%= render(partial: "health_status_notification",
locals: {
state: :healthy,
storage: @storage,
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
reason: "#{Storages::Storage.extract_part_from_piped_string(@reason, 0)} - #{Storages::Storage.extract_part_from_piped_string(@reason, 1)}"
}) %>
- <%= render(partial: 'mailer/notification_settings_table',
+ <%= render(partial: "mailer/notification_settings_table",
locals: {
button_url: @url,
button_text: I18n.t(:'mail.storages.health.email_notification_settings')
@@ -54,7 +54,7 @@ See COPYRIGHT and LICENSE files for more details.
<table>
<tr>
- <%= placeholder_cell('13px', vertical: false) %>
+ <%= placeholder_cell("13px", vertical: false) %>
</tr>
</table>
</td>
diff --git a/modules/storages/app/views/storages/storages_mailer/notify_healthy.text.erb b/modules/storages/app/views/storages/storages_mailer/notify_healthy.text.erb
index 7aa05229ab5..8a22f909e02 100644
--- a/modules/storages/app/views/storages/storages_mailer/notify_healthy.text.erb
+++ b/modules/storages/app/views/storages/storages_mailer/notify_healthy.text.erb
@@ -27,19 +27,19 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= I18n.t('mail.salutation', user: @admin.firstname) %>,
+<%= I18n.t("mail.salutation", user: @admin.firstname) %>,
-<%= I18n.t('mail.storages.health.plaintext.healthy.summary', storage_name: @storage.name) %>
+<%= I18n.t("mail.storages.health.plaintext.healthy.summary", storage_name: @storage.name) %>
-<%= I18n.t('mail.storages.health.plaintext.storage') %>: <%= I18n.t("storages.provider_types.#{@storage}.name") %> - <%= @storage.host %>
+<%= I18n.t("mail.storages.health.plaintext.storage") %>: <%= I18n.t("storages.provider_types.#{@storage}.name") %> - <%= @storage.host %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.error-details') %>:
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.error-details") %>:
<%= "-" * 30 %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.error-message') %>: <%= "#{Storages::Storage.extract_part_from_piped_string(@reason, 0)} - #{Storages::Storage.extract_part_from_piped_string(@reason, 1)}" %>
-<%= I18n.t('mail.storages.health.plaintext.healthy.error-solved-on') %>: <%= format_time(@storage.health_changed_at) %>
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.error-message") %>: <%= "#{Storages::Storage.extract_part_from_piped_string(@reason, 0)} - #{Storages::Storage.extract_part_from_piped_string(@reason, 1)}" %>
+<%= I18n.t("mail.storages.health.plaintext.healthy.error-solved-on") %>: <%= format_time(@storage.health_changed_at) %>
-<%= I18n.t('mail.storages.health.plaintext.healthy.details') %>: <%= @url %>
+<%= I18n.t("mail.storages.health.plaintext.healthy.details") %>: <%= @url %>
-<%= I18n.t('mail.storages.health.plaintext.healthy.recommendation') %>
+<%= I18n.t("mail.storages.health.plaintext.healthy.recommendation") %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.unsubscribe') %>: <%= @url %>
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.unsubscribe") %>: <%= @url %>
diff --git a/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.html.erb b/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.html.erb
index 98df1703dcd..cb2f685b639 100644
--- a/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.html.erb
+++ b/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.html.erb
@@ -27,10 +27,10 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<table <%= placeholder_table_styles(width: '100%', style: 'width:100%;max-width:700px') %>>
+<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px") %>>
<tr>
<td>
- <%= render(partial: 'mailer/mailer_header',
+ <%= render(partial: "mailer/mailer_header",
locals: {
user: @admin,
summary: I18n.t("mail.storages.health.unhealthy.summary", storage_name: @storage.name),
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
button_text: I18n.t(:'mail.storages.health.see_storage_settings')
}) %>
- <%= render(partial: 'health_status_notification',
+ <%= render(partial: "health_status_notification",
locals: {
state: :unhealthy,
storage: @storage,
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
reason: "#{@storage.health_reason_identifier} - #{@storage.health_reason_description}"
}) %>
- <%= render(partial: 'mailer/notification_settings_table',
+ <%= render(partial: "mailer/notification_settings_table",
locals: {
button_url: @url,
button_text: I18n.t(:'mail.storages.health.email_notification_settings')
@@ -54,7 +54,7 @@ See COPYRIGHT and LICENSE files for more details.
<table>
<tr>
- <%= placeholder_cell('13px', vertical: false) %>
+ <%= placeholder_cell("13px", vertical: false) %>
</tr>
</table>
</td>
diff --git a/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.text.erb b/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.text.erb
index ae03895cc21..779ebdb92ce 100644
--- a/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.text.erb
+++ b/modules/storages/app/views/storages/storages_mailer/notify_unhealthy.text.erb
@@ -27,17 +27,17 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= I18n.t('mail.salutation', user: @admin.firstname) %>,
+<%= I18n.t("mail.salutation", user: @admin.firstname) %>,
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.summary', storage_name: @storage.name) %>
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.summary", storage_name: @storage.name) %>
-<%= I18n.t('mail.storages.health.plaintext.storage') %>: <%= I18n.t("storages.provider_types.#{@storage}.name") %> - <%= @storage.host %>
+<%= I18n.t("mail.storages.health.plaintext.storage") %>: <%= I18n.t("storages.provider_types.#{@storage}.name") %> - <%= @storage.host %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.error-details') %>:
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.error-details") %>:
<%= "-" * 30 %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.error-message') %>: <%= "#{@storage.health_reason_identifier} - #{@storage.health_reason_description}" %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.error-occurred-on') %>: <%= format_time(@storage.health_changed_at) %>
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.error-message") %>: <%= "#{@storage.health_reason_identifier} - #{@storage.health_reason_description}" %>
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.error-occurred-on") %>: <%= format_time(@storage.health_changed_at) %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.recommendation') %>: <%= @url %>
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.recommendation") %>: <%= @url %>
-<%= I18n.t('mail.storages.health.plaintext.unhealthy.unsubscribe') %>: <%= @url %>
+<%= I18n.t("mail.storages.health.plaintext.unhealthy.unsubscribe") %>: <%= @url %>
diff --git a/modules/team_planner/app/views/team_planner/menus/_menu.html.erb b/modules/team_planner/app/views/team_planner/menus/_menu.html.erb
index 7ceb63595fb..d27316de1e3 100644
--- a/modules/team_planner/app/views/team_planner/menus/_menu.html.erb
+++ b/modules/team_planner/app/views/team_planner/menus/_menu.html.erb
@@ -1,5 +1,5 @@
<%= turbo_frame_tag "team_planner_sidemenu",
src: menu_project_team_planners_path(@project, **params.permit(:id)),
- target: '_top',
+ target: "_top",
data: { turbo: false },
loading: :lazy %>
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 a8f30f5bdb0..f6671ab1dd3 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
@@ -36,55 +36,55 @@ See COPYRIGHT and LICENSE files for more details.
label: t(:label_title),
required: true,
size: 60,
- container_class: '-wide' %>
+ container_class: "-wide" %>
</div>
<div class="form--field -required">
<label class="form--label" for="project_id"><%= Query.human_attribute_name(:project) %>:</label>
<div class="form--field-container">
- <%= angular_component_tag 'opce-project-autocompleter',
+ <%= angular_component_tag "opce-project-autocompleter",
inputs: {
- filters: [{ name: 'user_action', operator: '=',values: ['team_planners/create'] }],
- inputName: 'project_id',
+ 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',
+ id: "project_id",
+ class: "form--select-container -wide remote-field--input",
data: {
- 'test-selector': 'project_id'
+ 'test-selector': "project_id"
} %>
</div>
<div class="form--field-instructions">
- <p><%= t 'help_texts.views.project',
- singular: t('team_planner.label_team_planner').downcase,
- plural: t('team_planner.label_team_planner_plural') %></p>
+ <p><%= t "help_texts.views.project",
+ singular: t("team_planner.label_team_planner").downcase,
+ plural: t("team_planner.label_team_planner_plural") %></p>
</div>
</div>
<div class="form--field">
- <%= styled_label_tag 'query[public]',
+ <%= styled_label_tag "query[public]",
Query.human_attribute_name(:public) %>
<div class="form--field-container">
- <%= styled_check_box_tag 'query[public]',
- '1',
+ <%= styled_check_box_tag "query[public]",
+ "1",
@view.public %>
</div>
<div class="form--field-instructions">
- <p><%= t 'help_texts.views.public' %></p>
+ <p><%= t "help_texts.views.public" %></p>
</div>
</div>
<div class="form--field">
- <%= styled_label_tag 'query[starred]',
+ <%= styled_label_tag "query[starred]",
t(:label_favorite) %>
<div class="form--field-container">
- <%= styled_check_box_tag 'query[starred]',
- '1',
+ <%= styled_check_box_tag "query[starred]",
+ "1",
@view.starred %>
</div>
<div class="form--field-instructions">
- <p><%= t 'help_texts.views.favoured' %></p>
+ <p><%= t "help_texts.views.favoured" %></p>
</div>
</div>
</section>
diff --git a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb b/modules/team_planner/app/views/team_planner/team_planner/index.html.erb
index 73b03fe6f65..26897598a46 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/index.html.erb
@@ -1,10 +1,10 @@
-<% html_title(t('team_planner.label_team_planner_plural')) -%>
+<% html_title(t("team_planner.label_team_planner_plural")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('team_planner.label_team_planner_plural') }
+ header.with_title { t("team_planner.label_team_planner_plural") }
header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },
- t('team_planner.label_team_planner_plural')])
+ t("team_planner.label_team_planner_plural")])
end
%>
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 6864cc7f655..3bcdfbe2497 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
@@ -27,19 +27,19 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t('team_planner.label_new_team_planner') %>
+<% html_title t("team_planner.label_new_team_planner") %>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('team_planner.label_new_team_planner') }
+ header.with_title { t("team_planner.label_new_team_planner") }
header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
*([ href: project_overview_path(@project.id), text: @project.name ] if @project),
- t('team_planner.label_new_team_planner')])
+ t("team_planner.label_new_team_planner")])
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} %>
- <%= styled_button_tag t(:button_create), class: '-primary' %>
- <%= link_to t(:button_cancel), { controller: 'team_planner/team_planner', action: 'overview' },
- class: 'button' %>
+<%= 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" %>
<% end %>
diff --git a/modules/team_planner/app/views/team_planner/team_planner/overview.html.erb b/modules/team_planner/app/views/team_planner/team_planner/overview.html.erb
index a123874b152..3377372b440 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/overview.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/overview.html.erb
@@ -1,9 +1,9 @@
-<% html_title(t('team_planner.label_team_planner_plural')) -%>
+<% html_title(t("team_planner.label_team_planner_plural")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
- header.with_title { t('team_planner.label_team_planner_plural') }
+ header.with_title { t("team_planner.label_team_planner_plural") }
header.with_breadcrumbs([{ href: home_path, text: organization_name},
- t('team_planner.label_team_planner_plural')])
+ t("team_planner.label_team_planner_plural")])
end
%>
diff --git a/modules/team_planner/app/views/team_planner/team_planner/show.html.erb b/modules/team_planner/app/views/team_planner/team_planner/show.html.erb
index 43b8883cd50..157af1b2b0e 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/show.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/show.html.erb
@@ -1 +1 @@
-<% html_title(t('team_planner.label_team_planner')) -%>
+<% html_title(t("team_planner.label_team_planner")) -%>
diff --git a/modules/team_planner/app/views/team_planner/team_planner/upsale.html.erb b/modules/team_planner/app/views/team_planner/team_planner/upsale.html.erb
index 8cf25ff412e..98b28dd492d 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/upsale.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/upsale.html.erb
@@ -1,10 +1,10 @@
-<% html_title(t(:label_administration), t('team_planner.upsale.title')) -%>
+<% html_title(t(:label_administration), t("team_planner.upsale.title")) -%>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
- feature_title: t('team_planner.upsale.title'),
- feature_description: t('team_planner.upsale.description'),
- feature_reference: 'team_planner',
- feature_video: 'enterprise/team-planner-animation.mp4',
- additional_classes: 'upsale-notification_hide-breadcrumb'
+ feature_title: t("team_planner.upsale.title"),
+ feature_description: t("team_planner.upsale.description"),
+ feature_reference: "team_planner",
+ feature_video: "enterprise/team-planner-animation.mp4",
+ additional_classes: "upsale-notification_hide-breadcrumb"
} %>
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 db45754171c..cd15fb4d399 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,14 +1,14 @@
<% 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 %>
- <h2><%= t 'two_factor_authentication.login.enter_backup_code_title' %></h2>
- <p><%= I18n.t('two_factor_authentication.login.enter_backup_code_text') %></p>
+ <%= 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">
<div class="form--field -required -wide-label">
- <%= styled_label_tag 'backup_code', t('two_factor_authentication.backup_codes.singular') %>
+ <%= styled_label_tag "backup_code", t("two_factor_authentication.backup_codes.singular") %>
<div class="form--field-container">
- <%= styled_text_field_tag 'backup_code', nil, required: true, autocomplete: 'off', size: 20, maxlength: 20, tabindex: 1, autofocus: true %>
+ <%= styled_text_field_tag "backup_code", nil, required: true, autocomplete: "off", size: 20, maxlength: 20, tabindex: 1, autofocus: true %>
</div>
</div>
<div class="login-form--footer">
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
index e929a8d2e66..11fcbdd8477 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
@@ -9,36 +9,36 @@
data-application-target="dynamic">
<%= styled_form_tag(
{ action: :confirm_otp },
- id: 'submit_otp',
+ id: "submit_otp",
autocomplete: "off", data: {
challenge_url: url_for(action: :webauthn_challenge, format: :json),
device_type: @used_device.class.device_type,
action: "submit->two-factor-authentication#onVerifyDevice"}) do %>
<%= back_url_hidden_field_tag %>
- <h2><%= t 'two_factor_authentication.label_two_factor_authentication' %></h2>
+ <h2><%= t "two_factor_authentication.label_two_factor_authentication" %></h2>
<% identifier = @used_device.request_2fa_identifier(@strategy.channel) %>
<% if @used_device.input_based? %>
- <p><%= raw I18n.t('two_factor_authentication.devices.2fa_from_input', device_name: identifier) %></p>
+ <p><%= raw I18n.t("two_factor_authentication.devices.2fa_from_input", device_name: identifier) %></p>
<hr class="form--separator">
<div class="form--field -wide-label">
- <%= styled_label_tag 'otp', t(:field_otp) %>
+ <%= styled_label_tag "otp", t(:field_otp) %>
<div class="form--field-container">
- <%= styled_text_field_tag 'otp', nil, autocomplete: 'off', size: 6, maxlength: 6, tabindex: 1, autofocus: true %>
+ <%= styled_text_field_tag "otp", nil, autocomplete: "off", size: 6, maxlength: 6, tabindex: 1, autofocus: true %>
</div>
</div>
<% else %>
- <p><%= raw I18n.t('two_factor_authentication.devices.2fa_from_webauthn', device_name: identifier) %></p>
+ <p><%= raw I18n.t("two_factor_authentication.devices.2fa_from_webauthn", device_name: identifier) %></p>
<hr class="form--separator">
- <%= hidden_field_tag 'webauthn_credential', nil, "data-two-factor-authentication-target": "webauthnCredential" %>
+ <%= hidden_field_tag "webauthn_credential", nil, "data-two-factor-authentication-target": "webauthnCredential" %>
<div class="form--field-error" data-two-factor-authentication-target="errorDisplay"></div>
<% end %>
<% if remember_2fa_enabled? %>
<div class="form--field -wide-label">
<label class="form--label-with-check-box -no-ellipsis">
<div class="form--check-box-container">
- <%= styled_check_box_tag 'remember_me', true, false %>
+ <%= styled_check_box_tag "remember_me", true, false %>
</div>
- <%= t 'two_factor_authentication.remember.dont_ask_again', days: remember_2fa_days %>
+ <%= t "two_factor_authentication.remember.dont_ask_again", days: remember_2fa_days %>
</label>
</div>
<% end %>
@@ -49,11 +49,11 @@
<div class="login-links">
<%= link_to(
t(:text_otp_not_receive),
- '#',
- id: 'toggle_resend_form',
+ "#",
+ id: "toggle_resend_form",
tabindex: 3,
- data: { action: 'two-factor-authentication#toggleResendOptions' },
- class: 'login-form--footer-link'
+ data: { action: "two-factor-authentication#toggleResendOptions" },
+ class: "login-form--footer-link"
) %>
</div>
</div>
@@ -66,8 +66,8 @@
data-two-factor-authentication-target="resendOptions"
hidden>
<% if resend_supported %>
- <%= styled_form_tag({ action: :retry }, autocomplete: 'off', id: 'resend_otp') do %>
- <%= hidden_field_tag 'use_device', @service.device.id %>
+ <%= styled_form_tag({ action: :retry }, autocomplete: "off", id: "resend_otp") do %>
+ <%= hidden_field_tag "use_device", @service.device.id %>
<hr>
<div class="resend-header"><%= t(:text_send_otp_again) %></div>
@@ -75,7 +75,7 @@
<% supported_channels = @used_device.class.supported_channels & @strategy.class.supported_channels %>
<% supported_channels.each do |channel| %>
<div class="form--field">
- <%= radio_button_tag 'use_channel', channel, default_channel == channel %>
+ <%= radio_button_tag "use_channel", channel, default_channel == channel %>
<label for="channel_<%= channel %>"><%= t("button_otp_by_#{channel}") %></label>
</div>
<% end %>
@@ -84,14 +84,14 @@
<% end %>
<% if has_other_devices %>
<hr>
- <div class="resend-header"><%= t('two_factor_authentication.login.other_device') %></div>
+ <div class="resend-header"><%= t("two_factor_authentication.login.other_device") %></div>
<ul>
<% @active_devices.each do |device| %>
<% next if device.id == @used_device.id %>
<li>
<%= form_tag({ action: :retry }, method: :post, data: { turbo: false }) do %>
- <%= hidden_field_tag 'use_device', device.id %>
- <%= submit_tag device.redacted_identifier, class: 'button--link' %>
+ <%= hidden_field_tag "use_device", device.id %>
+ <%= submit_tag device.redacted_identifier, class: "button--link" %>
<% end %>
</li>
<% end %>
@@ -99,10 +99,10 @@
<% end %>
<% if has_backup_codes %>
<hr>
- <div class="resend-header"><%= t('two_factor_authentication.login.enter_backup_code_title') %></div>
+ <div class="resend-header"><%= t("two_factor_authentication.login.enter_backup_code_title") %></div>
<ul>
<li>
- <%= link_to(t('two_factor_authentication.login.enter_backup_code_title'), { action: :enter_backup_code }) %>
+ <%= link_to(t("two_factor_authentication.login.enter_backup_code_title"), { action: :enter_backup_code }) %>
</li>
</ul>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/my/backup_codes/show.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/my/backup_codes/show.html.erb
index b17b9f5fb82..9e21fe1bc0f 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/my/backup_codes/show.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/my/backup_codes/show.html.erb
@@ -1,19 +1,19 @@
-<% html_title(t(:label_my_account), t('two_factor_authentication.backup_codes.plural')) -%>
+<% html_title(t(:label_my_account), t("two_factor_authentication.backup_codes.plural")) -%>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('two_factor_authentication.backup_codes.plural') }
+ header.with_title { t("two_factor_authentication.backup_codes.plural") }
header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },
- { href: my_2fa_devices_path , text: t('two_factor_authentication.label_two_factor_authentication') },
- t('two_factor_authentication.backup_codes.plural')])
+ { href: my_2fa_devices_path , text: t("two_factor_authentication.label_two_factor_authentication") },
+ t("two_factor_authentication.backup_codes.plural")])
end
%>
<div class="op-toast show-when-print -warning">
<div class="op-toast--content">
<p>
- <strong><%= t 'two_factor_authentication.backup_codes.generate.keep_safe_as_password' %></strong>
- <%= t 'two_factor_authentication.backup_codes.generate.keep_safe_warning' %>
+ <strong><%= t "two_factor_authentication.backup_codes.generate.keep_safe_as_password" %></strong>
+ <%= t "two_factor_authentication.backup_codes.generate.keep_safe_warning" %>
</p>
</div>
</div>
@@ -32,18 +32,18 @@
data-controller="two-factor-authentication"
data-application-target="dynamic">
<%= content_tag :a,
- id: 'download_2fa_backup_codes',
+ id: "download_2fa_backup_codes",
class: "button hide-when-print",
- download: 'backup-codes.txt',
+ download: "backup-codes.txt",
href: "data:text/plain;charset=utf-8,#{CGI.escape(@backup_codes.join("\n"))}" do %>
- <%= op_icon 'button--icon icon-save' %>
+ <%= op_icon "button--icon icon-save" %>
<span class="button--text"><%= t(:button_download) %></span>
<% end %>
<button
id="print_2fa_backup_codes"
class="button hide-when-print"
data-action="two-factor-authentication#print">
- <%= op_icon 'button--icon icon-print' %>
+ <%= op_icon "button--icon icon-print" %>
<span class="button--text"><%= t(:button_print) %></span>
</button>
</div>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/_two_factor_status.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/_two_factor_status.html.erb
index b6ea5720f77..e6ece3c8467 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/_two_factor_status.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/_two_factor_status.html.erb
@@ -1,7 +1,7 @@
<%= render ::Components::OnOffStatusComponent.new({
is_on: device.present?,
- on_text: t('two_factor_authentication.label_2fa_enabled'),
- on_description: t('two_factor_authentication.text_2fa_enabled'),
- off_text: t('two_factor_authentication.label_2fa_disabled'),
- off_description: t('two_factor_authentication.text_2fa_disabled')
+ on_text: t("two_factor_authentication.label_2fa_enabled"),
+ on_description: t("two_factor_authentication.text_2fa_enabled"),
+ off_text: t("two_factor_authentication.label_2fa_disabled"),
+ off_description: t("two_factor_authentication.text_2fa_disabled")
}) %>
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 d38492625b6..8ef8947e6bb 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
@@ -1,10 +1,10 @@
-<% html_title(t(:label_my_account), t('two_factor_authentication.label_two_factor_authentication')) -%>
+<% html_title(t(:label_my_account), t("two_factor_authentication.label_two_factor_authentication")) -%>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('two_factor_authentication.label_two_factor_authentication') }
+ header.with_title { t("two_factor_authentication.label_two_factor_authentication") }
header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },
- t('two_factor_authentication.label_two_factor_authentication')])
+ t("two_factor_authentication.label_two_factor_authentication")])
end
%>
@@ -13,10 +13,10 @@
render(Primer::Alpha::ActionMenu.new(anchor_align: :end, size: :small)) do |menu|
menu.with_show_button(scheme: :primary,
test_selector: "two_factor_authentication_devices_button",
- aria: { label: t('two_factor_authentication.label_device') }) do |button|
+ aria: { label: t("two_factor_authentication.label_device") }) do |button|
button.with_leading_visual_icon(icon: :plus)
button.with_trailing_action_icon(icon: :"triangle-down")
- t('two_factor_authentication.label_device')
+ t("two_factor_authentication.label_device")
end
@available_devices.each do |key, device_class|
@@ -39,16 +39,16 @@ end %>
<p>
<strong><%= t(:note) %></strong>
<% if @remember_token %>
- <%= t 'two_factor_authentication.remember.active_session_notice',
+ <%= t "two_factor_authentication.remember.active_session_notice",
expires_on: format_date(@remember_token.expires_on) %>
<% else %>
- <%= t 'two_factor_authentication.remember.other_active_session_notice' %>
+ <%= t "two_factor_authentication.remember.other_active_session_notice" %>
<% end %>
<br>
<strong>
- <%= link_to t('two_factor_authentication.remember.clear_cookie'),
+ <%= link_to t("two_factor_authentication.remember.clear_cookie"),
my_2fa_remember_cookie_path,
- class: 'two-factor-authentication--remove-remember-cookie-link',
+ class: "two-factor-authentication--remove-remember-cookie-link",
method: :delete %>
</strong>
</p>
@@ -58,27 +58,27 @@ end %>
<% end %>
<section class="account--section">
- <%= render partial: 'two_factor_status', locals: { device: @default_device } %>
+ <%= render partial: "two_factor_status", locals: { device: @default_device } %>
</section>
<section class="account--section">
- <h2><%= t 'two_factor_authentication.label_devices' %></h2>
+ <h2><%= t "two_factor_authentication.label_devices" %></h2>
<%= render ::TwoFactorAuthentication::Devices::TableComponent.new(rows: @two_factor_devices, admin_table: false) %>
</section>
<section class="account--section">
- <h2><%= t 'two_factor_authentication.backup_codes.plural' %></h2>
+ <h2><%= t "two_factor_authentication.backup_codes.plural" %></h2>
<p>
- <%= t 'two_factor_authentication.backup_codes.overview_description' %>
+ <%= t "two_factor_authentication.backup_codes.overview_description" %>
<br>
- <strong><%= t 'two_factor_authentication.backup_codes.generate.regenerate_warning' %></strong>
+ <strong><%= t "two_factor_authentication.backup_codes.generate.regenerate_warning" %></strong>
</p>
- <%= password_confirmation_form_tag({ controller: 'two_factor_authentication/my/backup_codes', action: :create },
+ <%= password_confirmation_form_tag({ controller: "two_factor_authentication/my/backup_codes", action: :create },
method: :post,
- id: 'two_factor_backup_codes_form',
- class: 'form--inline') do
- submit_tag I18n.t('two_factor_authentication.backup_codes.generate.title'),
- class: 'button'
+ id: "two_factor_backup_codes_form",
+ class: "form--inline") do
+ submit_tag I18n.t("two_factor_authentication.backup_codes.generate.title"),
+ class: "button"
end %>
</section>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
index 1e7f6eee66a..e46d83936fc 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
@@ -1,4 +1,4 @@
-<% html_title(t(:label_administration), t('two_factor_authentication.settings.title')) -%>
+<% html_title(t(:label_administration), t("two_factor_authentication.settings.title")) -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
@@ -12,36 +12,36 @@
<section class="admin--edit-section">
<%= styled_form_tag({ action: :update },
method: :post,
- id: 'update-ldap-group-settings-form') do %>
+ id: "update-ldap-group-settings-form") do %>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= t('two_factor_authentication.settings.current_configuration') %></legend>
+ <legend class="form--fieldset-legend"><%= t("two_factor_authentication.settings.current_configuration") %></legend>
<p>
- <%= t('two_factor_authentication.settings.text_configuration') %>
+ <%= t("two_factor_authentication.settings.text_configuration") %>
<br>
<% configuration_link = OpenProject::Static::Links.links.fetch :configuration_guide %>
- <%= link_to t('two_factor_authentication.settings.text_configuration_guide'),
+ <%= link_to t("two_factor_authentication.settings.text_configuration_guide"),
configuration_link[:href],
- target: '_blank' %>
+ target: "_blank" %>
</p>
<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|
- if configuration['active_strategies'].empty?
- component.with_attribute(key: t('two_factor_authentication.settings.label_active_strategies'),
+ if configuration["active_strategies"].empty?
+ component.with_attribute(key: t("two_factor_authentication.settings.label_active_strategies"),
value: t(:label_none))
else
- strategies = configuration['active_strategies'].map do |key|
+ strategies = configuration["active_strategies"].map do |key|
content_tag(:span) do
t("two_factor_authentication.strategies.#{key}")
end
end
- component.with_attribute(key: t('two_factor_authentication.settings.label_active_strategies'),
+ component.with_attribute(key: t("two_factor_authentication.settings.label_active_strategies"),
value: safe_join(strategies, tag(:br)))
end
- component.with_attribute(key: t('two_factor_authentication.settings.label_enforced'),
- value: !!configuration['enforced'] ? t(:general_text_Yes) : t(:general_text_No))
+ component.with_attribute(key: t("two_factor_authentication.settings.label_enforced"),
+ value: !!configuration["enforced"] ? t(:general_text_Yes) : t(:general_text_No))
- component.with_attribute(key: t('two_factor_authentication.settings.label_remember'),
- value: if configuration['allow_remember_for_days'].to_i == 0
+ component.with_attribute(key: t("two_factor_authentication.settings.label_remember"),
+ value: if configuration["allow_remember_for_days"].to_i == 0
t(:label_disabled)
else
"#{configuration['allow_remember_for_days']} (#{t(:label_day_plural)})"
@@ -52,34 +52,34 @@
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:label_setting_plural) %></legend>
<div class="form--field">
- <label class="form--label" for='settings[enforced]'><%= t('two_factor_authentication.settings.label_enforced') %></label>
+ <label class="form--label" for='settings[enforced]'><%= t("two_factor_authentication.settings.label_enforced") %></label>
<div class="form--field-container ">
- <%= styled_check_box_tag 'settings[enforced]',
- '1',
- !!configuration['enforced'],
- disabled: strategy_manager.enforced_by_configuration? || configuration['active_strategies'].empty?,
- container_class: '-middle' %>
+ <%= styled_check_box_tag "settings[enforced]",
+ "1",
+ !!configuration["enforced"],
+ disabled: strategy_manager.enforced_by_configuration? || configuration["active_strategies"].empty?,
+ container_class: "-middle" %>
</div>
<div class="form--field-instructions">
- <%= I18n.t('two_factor_authentication.settings.text_enforced') %>
+ <%= I18n.t("two_factor_authentication.settings.text_enforced") %>
</div>
</div>
<div class="form--field">
- <label class="form--label" for='settings[allow_remember_for_days]'><%= t('two_factor_authentication.settings.label_remember') %></label>
+ <label class="form--label" for='settings[allow_remember_for_days]'><%= t("two_factor_authentication.settings.label_remember") %></label>
<div class="form--field-container">
- <%= styled_number_field_tag 'settings[allow_remember_for_days]',
- configuration['allow_remember_for_days'],
- min: '0',
- max: '365',
- step: '1',
- container_class: '-middle' %>
+ <%= styled_number_field_tag "settings[allow_remember_for_days]",
+ configuration["allow_remember_for_days"],
+ min: "0",
+ max: "365",
+ step: "1",
+ container_class: "-middle" %>
</div>
<div class="form--field-instructions">
- <%= I18n.t('two_factor_authentication.settings.text_remember') %>
+ <%= I18n.t("two_factor_authentication.settings.text_remember") %>
</div>
</div>
</fieldset>
- <%= styled_submit_tag t(:button_apply), class: '-primary' %>
+ <%= styled_submit_tag t(:button_apply), class: "-primary" %>
<% end %>
</section>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/_form.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/_form.html.erb
index 4ba3b26beb4..b075588a231 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/_form.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/_form.html.erb
@@ -1,3 +1,3 @@
-<%= error_messages_for 'device' %>
+<%= error_messages_for "device" %>
<%= render partial: "two_factor_authentication/two_factor_devices/#{device_type}/form", locals: { f: f, device: device, user: user } %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
index f02dd007086..61c8caba64a 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
@@ -1,19 +1,19 @@
-<% html_title(t(:label_my_account), t('two_factor_authentication.devices.confirm_device')) -%>
-<% breadcrumb_paths link_to(t('two_factor_authentication.label_two_factor_authentication'), index_path),
- t('two_factor_authentication.devices.confirm_device') -%>
+<% html_title(t(:label_my_account), t("two_factor_authentication.devices.confirm_device")) -%>
+<% breadcrumb_paths link_to(t("two_factor_authentication.label_two_factor_authentication"), index_path),
+ t("two_factor_authentication.devices.confirm_device") -%>
-<%= styled_form_tag(confirm_path, method: :post, id: 'login-form', class: 'form -bordered', autocomplete: "off") do %>
+<%= styled_form_tag(confirm_path, method: :post, id: "login-form", class: "form -bordered", autocomplete: "off") do %>
<h2><%= t("two_factor_authentication.devices.confirm_device") %></h2>
<p><%= t("two_factor_authentication.devices.text_confirm_to_complete_html", identifier: @device.identifier) %></p>
<hr class="form--separator">
<%= back_url_hidden_field_tag %>
<div class="form--field -required -wide-label">
- <%= styled_label_tag 'otp', t(:field_otp) %>
+ <%= styled_label_tag "otp", t(:field_otp) %>
<div class="form--field-container">
- <%= styled_text_field_tag 'otp', nil, required: true, autocomplete: 'off', size: 6, maxlength: 6, tabindex: 1, autofocus: true %>
+ <%= styled_text_field_tag "otp", nil, required: true, autocomplete: "off", size: 6, maxlength: 6, tabindex: 1, autofocus: true %>
</div>
</div>
<div class="login-form--footer">
- <input type="submit" name="login" value="<%= t 'button_continue' %>" class="button -primary button_no-margin" tabindex="2">
+ <input type="submit" name="login" value="<%= t "button_continue" %>" class="button -primary button_no-margin" tabindex="2">
</div>
<% end %>
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 c9c297cd589..c0f204766bb 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
@@ -1,12 +1,12 @@
-<% html_title(t(:label_my_account), t('two_factor_authentication.devices.add_new')) -%>
+<% html_title(t(:label_my_account), t("two_factor_authentication.devices.add_new")) -%>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title(test_selector: "two_factor_authentication_new_device_header_title") { t('two_factor_authentication.devices.add_new') }
+ header.with_title(test_selector: "two_factor_authentication_new_device_header_title") { t("two_factor_authentication.devices.add_new") }
header.with_breadcrumbs(
[
{ href: my_account_path, text: t(:label_my_account) },
- { href: my_2fa_devices_path, text: t('two_factor_authentication.label_two_factor_authentication') },
+ { 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")),
],
selected_item_font_weight: :normal)
@@ -14,7 +14,7 @@
%>
<%= labelled_tabular_form_for @device,
url: { action: :register },
- html: { class: nil, autocomplete: 'off', data: {
+ html: { class: nil, autocomplete: "off", data: {
controller: "two-factor-authentication",
application_target: "dynamic",
challenge_url: optional_webauthn_challenge_url,
@@ -22,10 +22,10 @@
action: "submit->two-factor-authentication#onCreateDevice"
} },
as: :device do |f| %>
- <%= hidden_field_tag 'key', @device_type %>
+ <%= hidden_field_tag "key", @device_type %>
<%= render partial: "two_factor_authentication/two_factor_devices/form", locals: { f: f, device_type: @device_type, device: @device, user: @user } %>
<p>
- <%= styled_button_tag t(:button_continue), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), index_path, class: 'button -with-icon icon-cancel' %>
+ <%= styled_button_tag t(:button_continue), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), index_path, class: "button -with-icon icon-cancel" %>
</p>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new_type.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new_type.html.erb
index d6638f10059..1b4f9774398 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new_type.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new_type.html.erb
@@ -1,10 +1,10 @@
-<% html_title(t(:button_login), t('two_factor_authentication.devices.add_new')) -%>
+<% html_title(t(:button_login), t("two_factor_authentication.devices.add_new")) -%>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t('two_factor_authentication.devices.add_new') }
+ header.with_title { t("two_factor_authentication.devices.add_new") }
header.with_breadcrumbs([{ href: signin_path, text: t(:button_login) },
- t('two_factor_authentication.devices.add_new')])
+ t("two_factor_authentication.devices.add_new")])
end
%>
@@ -16,7 +16,7 @@
<p><%= t("two_factor_authentication.devices.#{key}.description") %></p>
</div>
<div class="mobile-otp-new-device--footer">
- <%= link_to t('two_factor_authentication.devices.register'), url_for(action: :new, type: key), class: 'button button--tiny' %>
+ <%= link_to t("two_factor_authentication.devices.register"), url_for(action: :new, type: key), class: "button button--tiny" %>
</div>
</div>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/sms/_form.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/sms/_form.html.erb
index ccad672205b..9d762d4dafa 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/sms/_form.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/sms/_form.html.erb
@@ -1,19 +1,19 @@
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend" title="<%= @device.name %>"><%= @device.name %></legend>
- <p><%= t('two_factor_authentication.devices.sms.description') %></p>
+ <p><%= t("two_factor_authentication.devices.sms.description") %></p>
<div class="form--field -required">
- <%= f.text_field :identifier, required: true, container_class: '-middle' %>
+ <%= f.text_field :identifier, required: true, container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('two_factor_authentication.devices.text_identifier') %>
+ <%= t("two_factor_authentication.devices.text_identifier") %>
</div>
</div>
<div class="form--field -required">
- <%= f.telephone_field :phone_number, required: true, container_class: '-wide' %>
+ <%= f.telephone_field :phone_number, required: true, container_class: "-wide" %>
<div class="form--field-instructions">
- <%= t('notice_phone_number_format') %>
+ <%= t("notice_phone_number_format") %>
</div>
</div>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/totp/_form.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/totp/_form.html.erb
index 2156fad0471..8d57c925b6c 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/totp/_form.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/totp/_form.html.erb
@@ -1,12 +1,12 @@
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend" title="<%= @device.name %>"><%= @device.name %></legend>
- <p><%= t('two_factor_authentication.devices.totp.description') %></p>
+ <p><%= t("two_factor_authentication.devices.totp.description") %></p>
<div class="form--field -required">
- <%= f.text_field :identifier, required: true, container_class: '-middle' %>
+ <%= f.text_field :identifier, required: true, container_class: "-middle" %>
<div class="form--field-instructions">
- <%= t('two_factor_authentication.devices.text_identifier') %>
+ <%= t("two_factor_authentication.devices.text_identifier") %>
</div>
</div>
@@ -22,15 +22,15 @@
</div>
<div class="mobile-otp-qr-manually">
<p>
- <strong><%= t('two_factor_authentication.devices.totp.question_cannot_scan') %></strong>
+ <strong><%= t("two_factor_authentication.devices.totp.question_cannot_scan") %></strong>
<br>
- <%= t('two_factor_authentication.devices.totp.text_cannot_scan') %>
+ <%= t("two_factor_authentication.devices.totp.text_cannot_scan") %>
</p>
<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|
- component.with_attribute(key: t('two_factor_authentication.devices.totp.account'), value: device.account_name)
- component.with_attribute(key: t('two_factor_authentication.devices.totp.secret_key'), value: device.otp_secret)
- component.with_attribute(key: t('two_factor_authentication.devices.totp.time_based'), value: t('general_text_Yes'))
- component.with_attribute(key: t('two_factor_authentication.devices.totp.provisioning_uri'), value: device.provisioning_url)
+ component.with_attribute(key: t("two_factor_authentication.devices.totp.account"), value: device.account_name)
+ component.with_attribute(key: t("two_factor_authentication.devices.totp.secret_key"), value: device.otp_secret)
+ component.with_attribute(key: t("two_factor_authentication.devices.totp.time_based"), value: t("general_text_Yes"))
+ component.with_attribute(key: t("two_factor_authentication.devices.totp.provisioning_uri"), value: device.provisioning_url)
end %>
</div>
</div>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/webauthn/_form.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/webauthn/_form.html.erb
index 17ed4b97169..6afc64ec487 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/webauthn/_form.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/webauthn/_form.html.erb
@@ -1,14 +1,14 @@
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend" title="<%= @device.name %>"><%= @device.name %></legend>
- <p><%= t('two_factor_authentication.devices.webauthn.description') %></p>
+ <p><%= t("two_factor_authentication.devices.webauthn.description") %></p>
<div class="form--field -required">
- <%= f.text_field :identifier, required: true, container_class: '-middle' %>
+ <%= f.text_field :identifier, required: true, container_class: "-middle" %>
<%= f.hidden_field :webauthn_credential, value: "", "data-two-factor-authentication-target": "webauthnCredential" %>
<div class="form--field-instructions">
- <%= t('two_factor_authentication.devices.text_identifier') %>
+ <%= t("two_factor_authentication.devices.text_identifier") %>
</div>
</div>
- <p><%= t('two_factor_authentication.devices.webauthn.further_steps') %></p>
+ <p><%= t("two_factor_authentication.devices.webauthn.further_steps") %></p>
<div class="form--field-error" data-two-factor-authentication-target="errorDisplay"></div>
</fieldset>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/upsale.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/upsale.html.erb
index 60612f9d1a2..4da8ec2c4fa 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/upsale.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/upsale.html.erb
@@ -1,9 +1,9 @@
-<% html_title(t(:label_administration), t('two_factor_authentication.settings.title')) -%>
+<% html_title(t(:label_administration), t("two_factor_authentication.settings.title")) -%>
-<%= render template: 'common/upsale',
+<%= render template: "common/upsale",
locals: {
- feature_title: t('two_factor_authentication.upsale.title'),
- feature_description: t('two_factor_authentication.upsale.description'),
- feature_reference: '2fa',
- feature_image: 'enterprise/two-factor-authentication.jpg'
+ feature_title: t("two_factor_authentication.upsale.title"),
+ feature_description: t("two_factor_authentication.upsale.description"),
+ feature_reference: "2fa",
+ feature_image: "enterprise/two-factor-authentication.jpg"
} %>
diff --git a/modules/two_factor_authentication/app/views/users/_two_factor_authentication.html.erb b/modules/two_factor_authentication/app/views/users/_two_factor_authentication.html.erb
index cb252bd2dc4..8b2cba63312 100644
--- a/modules/two_factor_authentication/app/views/users/_two_factor_authentication.html.erb
+++ b/modules/two_factor_authentication/app/views/users/_two_factor_authentication.html.erb
@@ -1,7 +1,7 @@
<%=
if current_user.id == @user.id
- render partial: 'two_factor_authentication_self'
+ render partial: "two_factor_authentication_self"
else
- render partial: 'two_factor_authentication_admin'
+ render partial: "two_factor_authentication_admin"
end
%>
diff --git a/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb b/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb
index 18883933d49..47e2d38d5e1 100644
--- a/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb
+++ b/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb
@@ -4,17 +4,17 @@
<section class="admin--edit-section">
<%= render ::Components::OnOffStatusComponent.new({
is_on: default_device.present?,
- on_text: t('two_factor_authentication.label_2fa_enabled'),
- on_description: t('two_factor_authentication.admin.text_2fa_enabled'),
- off_text: t('two_factor_authentication.label_2fa_disabled'),
- off_description: t('two_factor_authentication.admin.text_2fa_disabled')
+ on_text: t("two_factor_authentication.label_2fa_enabled"),
+ on_description: t("two_factor_authentication.admin.text_2fa_enabled"),
+ off_text: t("two_factor_authentication.label_2fa_disabled"),
+ off_description: t("two_factor_authentication.admin.text_2fa_disabled")
}) %>
</section>
<section class="admin--edit-section">
<% if default_device.present? %>
<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|
- component.with_attribute(key: t('two_factor_authentication.label_default_device'),
+ component.with_attribute(key: t("two_factor_authentication.label_default_device"),
value: default_device.identifier)
if default_device.phone_number.present?
component.with_attribute(key: ::TwoFactorAuthentication::Device::Sms.human_attribute_name(:phone_number),
@@ -28,16 +28,16 @@
<% unless devices.empty? %>
<%= link_to delete_all_user_2fa_devices_path(@user),
method: :post,
- data: { confirm: t('two_factor_authentication.admin.delete_all_are_you_sure') },
+ data: { confirm: t("two_factor_authentication.admin.delete_all_are_you_sure") },
class: "button -danger" do %>
- <%= op_icon 'button--icon icon-delete' %>
- <span class="button--text"><%= t 'two_factor_authentication.admin.button_delete_all_devices' %></span>
+ <%= op_icon "button--icon icon-delete" %>
+ <span class="button--text"><%= t "two_factor_authentication.admin.button_delete_all_devices" %></span>
<% end %>
<% end %>
<% if ::OpenProject::TwoFactorAuthentication::TokenStrategyManager.admin_register_sms_strategy.present? %>
- <%= link_to new_user_2fa_device_path(@user, type: :sms), class: 'button -primary' do %>
- <%= op_icon 'button--icon icon-add' %>
- <span class="button--text"><%= t 'two_factor_authentication.admin.button_register_mobile_phone_for_user' %></span>
+ <%= link_to new_user_2fa_device_path(@user, type: :sms), class: "button -primary" do %>
+ <%= op_icon "button--icon icon-add" %>
+ <span class="button--text"><%= t "two_factor_authentication.admin.button_register_mobile_phone_for_user" %></span>
<% end %>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/users/_two_factor_authentication_self.html.erb b/modules/two_factor_authentication/app/views/users/_two_factor_authentication_self.html.erb
index 0c5cdd9fd43..cbc14a36d18 100644
--- a/modules/two_factor_authentication/app/views/users/_two_factor_authentication_self.html.erb
+++ b/modules/two_factor_authentication/app/views/users/_two_factor_authentication_self.html.erb
@@ -1,13 +1,13 @@
<% default_device = @user.otp_devices.get_default %>
<section class="admin--edit-section">
- <%= render partial: 'two_factor_authentication/my/two_factor_devices/two_factor_status', locals: { device: default_device } %>
+ <%= render partial: "two_factor_authentication/my/two_factor_devices/two_factor_status", locals: { device: default_device } %>
</section>
<section class="admin--edit-section">
<p>
- <% self_link = link_to t('two_factor_authentication.admin.self_edit_link_name'), my_2fa_devices_path %>
- <%= t('two_factor_authentication.admin.self_edit_path', self_edit_link: self_link).html_safe %>
+ <% self_link = link_to t("two_factor_authentication.admin.self_edit_link_name"), my_2fa_devices_path %>
+ <%= t("two_factor_authentication.admin.self_edit_path", self_edit_link: self_link).html_safe %>
</p>
</section>
diff --git a/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb b/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb
index c8d5b27de52..d638d0ded74 100644
--- a/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb
+++ b/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb
@@ -3,7 +3,7 @@
data-activation-selector=".log-response-<%= id %>-modal--activation-link"
data-modal-class-name="webhooks--response-body-modal">
<a class="log-response-<%= id %>-modal--activation-link" title="<%= title %>">
- <%= helpers.op_icon('icon-info1') %>
+ <%= helpers.op_icon("icon-info1") %>
<%= t(:button_show) %>
</a>
<div class="modal-delivery-element">
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb
index c40fd9b7d04..407a5e3001e 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb
@@ -1,44 +1,44 @@
<fieldset class="form--fieldset">
<p>
- <%= t 'webhooks.outgoing.form.introduction' %>
+ <%= t "webhooks.outgoing.form.introduction" %>
<br>
- <%= link_to t('webhooks.outgoing.form.apiv3_doc_url'), OpenProject::Static::Links.links[:api_docs][:href] %>
+ <%= link_to t("webhooks.outgoing.form.apiv3_doc_url"), OpenProject::Static::Links.links[:api_docs][:href] %>
</p>
<div class="form--field -required">
- <%= f.text_field :name, required: true, container_class: '-middle' %>
+ <%= f.text_field :name, required: true, container_class: "-middle" %>
</div>
<div class="form--field -required">
- <%= f.url_field :url, required: true, container_class: '-wide' %>
+ <%= f.url_field :url, required: true, container_class: "-wide" %>
</div>
<div class="form--field">
- <%= f.text_area :description, placeholder: t('webhooks.outgoing.form.description.placeholder'), container_class: '-wide' %>
+ <%= f.text_area :description, placeholder: t("webhooks.outgoing.form.description.placeholder"), container_class: "-wide" %>
</div>
<div class="form--field">
- <%= f.text_field :secret, container_class: '-wide' %>
+ <%= f.text_field :secret, container_class: "-wide" %>
<div class="form--field-instructions">
- <%= t('webhooks.outgoing.form.secret.description') %>
+ <%= t("webhooks.outgoing.form.secret.description") %>
</div>
</div>
<div class="form--field">
<%= f.check_box :enabled %>
<div class="form--field-instructions">
- <%= t('webhooks.outgoing.form.enabled.description') %>
+ <%= t("webhooks.outgoing.form.enabled.description") %>
</div>
</div>
</fieldset>
<fieldset class="form--fieldset" id="webhooks-selected-events">
- <legend class="form--fieldset-legend" title="<%= t 'webhooks.outgoing.form.events.title' %>">
- <%= t 'webhooks.outgoing.form.events.title' %>
+ <legend class="form--fieldset-legend" title="<%= t "webhooks.outgoing.form.events.title" %>">
+ <%= t "webhooks.outgoing.form.events.title" %>
</legend>
<div class="form--toolbar">
<span class="form--toolbar-item">
- (<%= check_all_links 'webhooks-selected-events' %>)
+ (<%= check_all_links "webhooks-selected-events" %>)
</span>
</div>
@@ -49,7 +49,7 @@
<div class="form--field-container -vertical">
<% events.each do |key, label| %>
<label class="form--label-with-check-box">
- <%= styled_check_box_tag 'webhook[events][]',
+ <%= styled_check_box_tag "webhook[events][]",
key,
event_names.include?(key) -%>
<%= label %>
@@ -61,35 +61,35 @@
</fieldset>
<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend" title="<%= 'webhooks.outgoing.form.project_ids.title' %>">
- <%= t 'webhooks.outgoing.form.project_ids.title' %>
+ <legend class="form--fieldset-legend" title="<%= "webhooks.outgoing.form.project_ids.title" %>">
+ <%= t "webhooks.outgoing.form.project_ids.title" %>
</legend>
- <p><%= t('webhooks.outgoing.form.project_ids.description') %></p>
+ <p><%= t("webhooks.outgoing.form.project_ids.description") %></p>
<div class="form--field">
<%= f.radio_button :project_ids,
- 'all',
+ "all",
checked: @webhook.all_projects?,
- label: t('webhooks.outgoing.form.project_ids.all'),
- container_class: '-wide' %>
+ label: t("webhooks.outgoing.form.project_ids.all"),
+ container_class: "-wide" %>
</div>
<div class="form--field">
<%= f.radio_button :project_ids,
- 'selection',
+ "selection",
checked: [email protected]_projects?,
- label: t('webhooks.outgoing.form.project_ids.selected'),
- container_class: '-wide' %>
+ label: t("webhooks.outgoing.form.project_ids.selected"),
+ container_class: "-wide" %>
</div>
<div class="form--field">
- <label class="form--label"><%= t 'webhooks.outgoing.form.selected_project_ids.title' %></label>
+ <label class="form--label"><%= t "webhooks.outgoing.form.selected_project_ids.title" %></label>
<div class="form--field-container -vertical">
<% Project.pluck(:id, :name).each do |id, name| %>
<label class="form--label-with-check-box">
- <%= styled_check_box_tag 'webhook[selected_project_ids][]',
+ <%= styled_check_box_tag "webhook[selected_project_ids][]",
id,
[email protected]_projects? && @webhook.project_ids.include?(id),
disabled: @webhook.all_projects?,
- class: 'webhooks--selected-project-ids' -%>
+ class: "webhooks--selected-project-ids" -%>
<%= name %>
</label>
<% end %>
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
index 4d1d1cb0041..9a2d89210d7 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
@@ -14,11 +14,11 @@
<%= labelled_tabular_form_for @webhook,
url: { action: :update },
- as: 'webhook',
- html: { class: 'form', autocomplete: 'off' } do |f| %>
+ as: "webhook",
+ html: { class: "form", autocomplete: "off" } do |f| %>
<%= render partial: "form", locals: { f: f, webhook: @webhook } %>
<p>
- <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
+ <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), { action: :index }, class: "button -with-icon icon-cancel" %>
</p>
<% end %>
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb
index 767d0d53cfd..ce980b19fbd 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb
@@ -23,8 +23,8 @@
%>
<p>
- <%= t('webhooks.outgoing.explanation.text',
- link: link_to(t(:'webhooks.outgoing.explanation.link'), admin_settings_aggregation_path, target: '_blank')).html_safe %>
+ <%= t("webhooks.outgoing.explanation.text",
+ link: link_to(t(:'webhooks.outgoing.explanation.link'), admin_settings_aggregation_path, target: "_blank")).html_safe %>
</p>
<%= render ::Webhooks::Outgoing::Webhooks::TableComponent.new(rows: @webhooks) %>
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
index 7c40f0f63ef..4bfeedd40c6 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
@@ -14,11 +14,11 @@
<%= labelled_tabular_form_for @webhook,
url: { action: :create },
- as: 'webhook',
- html: { class: 'form', autocomplete: 'off' } do |f| %>
+ as: "webhook",
+ html: { class: "form", autocomplete: "off" } do |f| %>
<%= render partial: "form", locals: { f: f, webhook: @webhook } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
+ <%= link_to t(:button_cancel), { action: :index }, class: "button -with-icon icon-cancel" %>
</p>
<% end %>
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb
index b54105226cb..2b0a53051ee 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb
@@ -6,28 +6,28 @@
<%= render ::Components::OnOffStatusComponent.new({
is_on: @webhook.enabled?,
- on_text: t('webhooks.outgoing.status.enabled'),
- on_description: t('webhooks.outgoing.status.enabled_text'),
- off_text: t('webhooks.outgoing.status.disabled'),
- off_description: t('webhooks.outgoing.status.disabled_text')
+ on_text: t("webhooks.outgoing.status.enabled"),
+ on_description: t("webhooks.outgoing.status.enabled_text"),
+ off_text: t("webhooks.outgoing.status.disabled"),
+ off_description: t("webhooks.outgoing.status.disabled_text")
}) %>
<div class="account--section">
<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|
- component.with_attribute(key: ::Webhooks::Webhook.human_attribute_name('events'),
- value: @webhook.event_names.join(', '))
- component.with_attribute(key: ::Webhooks::Webhook.human_attribute_name('events'),
+ component.with_attribute(key: ::Webhooks::Webhook.human_attribute_name("events"),
+ value: @webhook.event_names.join(", "))
+ component.with_attribute(key: ::Webhooks::Webhook.human_attribute_name("events"),
value: if @webhook.all_projects?
(t(:label_all))
else
- @webhook.projects.join(', ')
+ @webhook.projects.join(", ")
end)
- component.with_attribute(key: ::Webhooks::Webhook.human_attribute_name('description'),
+ component.with_attribute(key: ::Webhooks::Webhook.human_attribute_name("description"),
value: @webhook.description)
end %>
</div>
<div class="account--section">
- <h2><%= t 'webhooks.outgoing.deliveries.title' %></h2>
+ <h2><%= t "webhooks.outgoing.deliveries.title" %></h2>
<%= render ::Webhooks::Outgoing::Deliveries::TableComponent.new(rows: @webhook.deliveries.newest) %>
</div>