OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
erb_lint auto fix layout
Ivan Kuchin0f6a12da3a88
diff --git a/app/components/activities/days_component.html.erb b/app/components/activities/days_component.html.erbindex f3be931221e..2faf0cb7d0d 100644--- a/app/components/activities/days_component.html.erb+++ b/app/components/activities/days_component.html.erb@@ -33,10 +33,14 @@ See COPYRIGHT and LICENSE files for more details.<ul class="op-activity-list"><%=- render(Activities::ItemComponent.with_collection(events,- current_project: @current_project,- display_user: @display_user,- activity_page: @activity_page))+ render(+ Activities::ItemComponent.with_collection(+ events,+ current_project: @current_project,+ display_user: @display_user,+ activity_page: @activity_page+ )+ )%></ul><% end -%>diff --git a/app/components/activities/item_component.html.erb b/app/components/activities/item_component.html.erbindex bf5fb32d9c4..00520787386 100644--- a/app/components/activities/item_component.html.erb+++ b/app/components/activities/item_component.html.erb@@ -37,13 +37,15 @@ See COPYRIGHT and LICENSE files for more details.<%= project_suffix %></div><%=- render(Activities::ItemSubtitleComponent.new(- user: display_user? && @event.event_author,- datetime: @event.event_datetime,- is_creation: initial?,- is_deletion: deletion?,- is_work_package: work_package?,- journable_type: @event.journal.journable_type)+ render(+ Activities::ItemSubtitleComponent.new(+ user: display_user? && @event.event_author,+ datetime: @event.event_datetime,+ is_creation: initial?,+ is_deletion: deletion?,+ is_work_package: work_package?,+ journable_type: @event.journal.journable_type+ ))%><% if comment.present? -%>diff --git a/app/components/activities/item_subtitle_component.html.erb b/app/components/activities/item_subtitle_component.html.erbindex 05b60d4a1af..0016a82667a 100644--- a/app/components/activities/item_subtitle_component.html.erb+++ b/app/components/activities/item_subtitle_component.html.erb@@ -29,7 +29,8 @@ See COPYRIGHT and LICENSE files for more details.<div class="op-activity-list--item-subtitle"><%=- I18n.t(i18n_key,+ I18n.t(+ i18n_key,user: user_html,datetime: datetime_html).html_safediff --git a/app/components/add_button_component.html.erb b/app/components/add_button_component.html.erbindex 4db39b90dc4..88aec27eada 100644--- a/app/components/add_button_component.html.erb+++ b/app/components/add_button_component.html.erb@@ -1,10 +1,14 @@-<%= render(Primer::ButtonComponent.new(scheme: :primary,- aria: { label: aria_label },- title:,- test_selector:,- tag: :a,- id:,- href: dynamic_path) ) do |button|- button.with_leading_visual_icon(icon: :plus)- label_text-end %>+<%= render(+ Primer::ButtonComponent.new(+ scheme: :primary,+ aria: { label: aria_label },+ title:,+ test_selector:,+ tag: :a,+ id:,+ href: dynamic_path+ )+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ label_text+ end %>diff --git a/app/components/admin/attachments_settings_header_component.html.erb b/app/components/admin/attachments_settings_header_component.html.erbindex a264231f9aa..65260b6688a 100644--- a/app/components/admin/attachments_settings_header_component.html.erb+++ b/app/components/admin/attachments_settings_header_component.html.erb@@ -30,22 +30,24 @@ See COPYRIGHT and LICENSE files for more details.<% helpers.html_title t(:label_administration), @title %><%= render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { t(:"attributes.attachments") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_storages_path, text: t("project_module_storages") },- t(:"attributes.attachments")])- header.with_tab_nav(label: nil) do |tab_nav|- tab_nav.with_tab(selected: @selected == 1, href: admin_settings_attachments_path) do |tab|- tab.with_text { t("settings.general") }- end- tab_nav.with_tab(selected: @selected == 2, href: admin_settings_virus_scanning_path) do |tab|- tab.with_icon(icon: :"op-enterprise-addons") unless EnterpriseToken.allows_to?("virus_scanning")- tab.with_text { t(:"settings.antivirus.title") }- end- if User.current.admin? && (EnterpriseToken.allows_to?(:virus_scanning) || Attachment.status_quarantined.any?)- tab_nav.with_tab(selected: @selected == 3, href: admin_quarantined_attachments_path) do |tab|- tab.with_text { t(:"antivirus_scan.quarantined_attachments.title") }+ header.with_title { t(:"attributes.attachments") }+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_storages_path, text: t("project_module_storages") },+ t(:"attributes.attachments")]+ )+ header.with_tab_nav(label: nil) do |tab_nav|+ tab_nav.with_tab(selected: @selected == 1, href: admin_settings_attachments_path) do |tab|+ tab.with_text { t("settings.general") }+ end+ tab_nav.with_tab(selected: @selected == 2, href: admin_settings_virus_scanning_path) do |tab|+ tab.with_icon(icon: :"op-enterprise-addons") unless EnterpriseToken.allows_to?("virus_scanning")+ tab.with_text { t(:"settings.antivirus.title") }+ end+ if User.current.admin? && (EnterpriseToken.allows_to?(:virus_scanning) || Attachment.status_quarantined.any?)+ tab_nav.with_tab(selected: @selected == 3, href: admin_quarantined_attachments_path) do |tab|+ tab.with_text { t(:"antivirus_scan.quarantined_attachments.title") }+ end+ endend- end- end-end %>+ end %>diff --git a/app/components/admin/backups/show_page_header_component.html.erb b/app/components/admin/backups/show_page_header_component.html.erbindex 4b1ddcd8bca..299bdb8e72e 100644--- a/app/components/admin/backups/show_page_header_component.html.erb+++ b/app/components/admin/backups/show_page_header_component.html.erb@@ -29,34 +29,40 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_backup) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_backup)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_backup)]+ )- header.with_action_button(tag: :a,- scheme: button_scheme,- mobile_label: button_title,- mobile_icon: button_icon,- size: :medium,- href: reset_token_admin_backups_path,- aria: { label: button_title },- title: button_title) do |button|+ header.with_action_button(+ tag: :a,+ scheme: button_scheme,+ mobile_label: button_title,+ mobile_icon: button_icon,+ size: :medium,+ href: reset_token_admin_backups_path,+ aria: { label: button_title },+ title: button_title+ ) do |button|button.with_leading_visual_icon(icon: button_icon)button_titleendif @backup_token.present?- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t("backup.label_delete_token"),- size: :medium,- href: delete_token_admin_backups_path,- aria: { label: I18n.t("backup.label_delete_token") },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :post- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t("backup.label_delete_token"),+ size: :medium,+ href: delete_token_admin_backups_path,+ aria: { label: I18n.t("backup.label_delete_token") },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :post+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t("backup.label_delete_token")enddiff --git a/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erb b/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erbindex 3950d4e83b5..d3be0b0f87b 100644--- a/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erb+++ b/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erb@@ -30,22 +30,28 @@ See COPYRIGHT and LICENSE files for more details.<%=component_wrapper doprimer_form_with(- model: ,+ model:,url:,data: { turbo: true },method: :post) do |form|- concat(render(Primer::Alpha::Dialog::Body.new(- id: dialog_body_id, test_selector: dialog_body_id, aria: { label: title },- classes: "Overlay-body_autocomplete_height"- )) do- render(Projects::CustomFields::CustomFieldMappingForm.new(form, project_mapping: @custom_field_project_mapping))- end)-- concat(render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do- concat(render(Primer::ButtonComponent.new(data: { 'close-dialog-id': dialog_id })) { cancel_button_text })- concat(render(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) { submit_button_text })- end)+ concat(+ render(+ Primer::Alpha::Dialog::Body.new(+ id: dialog_body_id, test_selector: dialog_body_id, aria: { label: title },+ classes: "Overlay-body_autocomplete_height"+ )+ ) do+ render(Projects::CustomFields::CustomFieldMappingForm.new(form, project_mapping: @custom_field_project_mapping))+ end+ )++ concat(+ render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do+ concat(render(Primer::ButtonComponent.new(data: { 'close-dialog-id': dialog_id })) { cancel_button_text })+ concat(render(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) { submit_button_text })+ end+ )endend%>diff --git a/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erb b/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erbindex f9735c0fe9e..3297f3c6dde 100644--- a/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erb+++ b/app/components/admin/custom_fields/hierarchy/delete_item_dialog_component.html.erb@@ -28,12 +28,14 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::OpenProject::DangerDialog.new(- title: I18n.t("custom_fields.admin.items.delete_dialog.title"),- form_arguments:,- size: :large,- test_selector: TEST_SELECTOR- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ title: I18n.t("custom_fields.admin.items.delete_dialog.title"),+ form_arguments:,+ size: :large,+ test_selector: TEST_SELECTOR+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { I18n.t("custom_fields.admin.items.delete_dialog.heading") }message.with_description_content(I18n.t("custom_fields.admin.items.delete_dialog.description"))diff --git a/app/components/admin/custom_fields/hierarchy/item_component.html.erb b/app/components/admin/custom_fields/hierarchy/item_component.html.erbindex 80f2b831b8f..4a6973a1295 100644--- a/app/components/admin/custom_fields/hierarchy/item_component.html.erb+++ b/app/components/admin/custom_fields/hierarchy/item_component.html.erb@@ -58,9 +58,11 @@ See COPYRIGHT and LICENSE files for more details.item_container.with_column dorender(Primer::Alpha::ActionMenu.new(test_selector: "op-hierarchy-item--action-menu")) do |menu|- menu.with_show_button(icon: "kebab-horizontal",- scheme: :invisible,- "aria-label": I18n.t("custom_fields.admin.items.actions"))+ menu.with_show_button(+ icon: "kebab-horizontal",+ scheme: :invisible,+ "aria-label": I18n.t("custom_fields.admin.items.actions")+ )menu_items(menu)endenddiff --git a/app/components/admin/design_header_component.html.erb b/app/components/admin/design_header_component.html.erbindex 5dd58b22d93..5546c157a75 100644--- a/app/components/admin/design_header_component.html.erb+++ b/app/components/admin/design_header_component.html.erb@@ -31,8 +31,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_custom_style) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_custom_style)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_custom_style)]+ )header.with_description { t(:label_custom_style_description) }if @tabs.present?diff --git a/app/components/colors/edit_page_header_component.html.erb b/app/components/colors/edit_page_header_component.html.erbindex 55dde57ac10..d03fc0c8987 100644--- a/app/components/colors/edit_page_header_component.html.erb+++ b/app/components/colors/edit_page_header_component.html.erb@@ -32,18 +32,20 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs(breadcrumb_items)if @color.persisted?- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: color_path(@color),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :delete- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: color_path(@color),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :delete+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/app/components/custom_fields/details_component.html.erb b/app/components/custom_fields/details_component.html.erbindex c4e0409b4f2..491c3a84e1f 100644--- a/app/components/custom_fields/details_component.html.erb+++ b/app/components/custom_fields/details_component.html.erb@@ -3,10 +3,12 @@flex_layout do |content|if has_no_items_or_projects?content.with_row(mb: 3) do- render Primer::Alpha::Banner.new(scheme: :default,- icon: :info,- dismiss_scheme: :hide,- test_selector: "op-custom-fields--new-hierarchy-banner") do+ render Primer::Alpha::Banner.new(+ scheme: :default,+ icon: :info,+ dismiss_scheme: :hide,+ test_selector: "op-custom-fields--new-hierarchy-banner"+ ) doI18n.t("custom_fields.admin.notice.remember_items_and_projects")endenddiff --git a/app/components/enterprise_edition/banner_component.html.erb b/app/components/enterprise_edition/banner_component.html.erbindex 85448f2903d..2930a0c5e8d 100644--- a/app/components/enterprise_edition/banner_component.html.erb+++ b/app/components/enterprise_edition/banner_component.html.erb@@ -2,9 +2,13 @@grid_layout("op-ee-banner", **@system_arguments) do |grid|grid.with_area(:'icon-container') docontent_tag :div, class: "op-ee-banner--shield" do- render(Primer::Beta::Octicon.new(icon: "op-enterprise-addons",- size: :medium,- classes: "op-ee-banner--icon"))+ render(+ Primer::Beta::Octicon.new(+ icon: "op-enterprise-addons",+ size: :medium,+ classes: "op-ee-banner--icon"+ )+ )endendgrid.with_area(:'title-container') { render(Primer::Beta::Text.new) { title } }diff --git a/app/components/filter/filter_button_component.html.erb b/app/components/filter/filter_button_component.html.erbindex f17a4b500bd..db2baaa23c7 100644--- a/app/components/filter/filter_button_component.html.erb+++ b/app/components/filter/filter_button_component.html.erb@@ -1,9 +1,13 @@<%= component_wrapper tag: "turbo-frame" do %>- <%= render(Primer::Beta::Button.new(scheme: :secondary,- disabled:,- data: { "filter--filters-form-target": "filterFormToggle",- action: "filter--filters-form#toggleDisplayFilters" },- test_selector: "filter-component-toggle")) do |button| %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :secondary,+ disabled:,+ data: { "filter--filters-form-target": "filterFormToggle",+ action: "filter--filters-form#toggleDisplayFilters" },+ test_selector: "filter-component-toggle"+ )+ ) do |button| %><% button.with_trailing_visual_counter(count: filters_count, test_selector: "filters-button-counter") %><%= t(:label_filter) %><% end %>diff --git a/app/components/groups/edit_page_header_component.html.erb b/app/components/groups/edit_page_header_component.html.erbindex 62302ef4d8f..1ceaa46e320 100644--- a/app/components/groups/edit_page_header_component.html.erb+++ b/app/components/groups/edit_page_header_component.html.erb@@ -31,30 +31,34 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { @group.name }header.with_breadcrumbs(breadcrumb_items)- header.with_action_button(tag: :a,- mobile_icon: :person,- mobile_label: t(:label_profile),- size: :medium,- href: show_group_path(@group),- aria: { label: I18n.t(:label_profile) },- title: I18n.t(:label_profile)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :person,+ mobile_label: t(:label_profile),+ size: :medium,+ href: show_group_path(@group),+ aria: { label: I18n.t(:label_profile) },+ title: I18n.t(:label_profile)+ ) do |button|button.with_leading_visual_icon(icon: :person)t(:label_profile)endif @current_user.admin?- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: group_path(@group),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: t(:text_are_you_sure),- method: :delete,- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: group_path(@group),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: t(:text_are_you_sure),+ method: :delete,+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/app/components/groups/show_page_header_component.html.erb b/app/components/groups/show_page_header_component.html.erbindex f42886dfed3..cce6470cc23 100644--- a/app/components/groups/show_page_header_component.html.erb+++ b/app/components/groups/show_page_header_component.html.erb@@ -28,34 +28,38 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title(test_selector: "groups--title") { @group.name }+ header.with_title(test_selector: "groups--title") { @group.name }header.with_breadcrumbs(breadcrumb_items)if @current_user.admin?- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_group_path(@group),- aria: { label: I18n.t(:button_edit) },- data: { "test-selector": "groups--edit-group-button" },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ href: edit_group_path(@group),+ aria: { label: I18n.t(:button_edit) },+ data: { "test-selector": "groups--edit-group-button" },+ title: I18n.t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)end- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: group_path(@group),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: t(:text_are_you_sure),- method: :delete,- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: group_path(@group),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: t(:text_are_you_sure),+ method: :delete,+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/app/components/individual_principal_base_filter_component.html.erb b/app/components/individual_principal_base_filter_component.html.erbindex fbad36ec421..070fc1916a4 100644--- a/app/components/individual_principal_base_filter_component.html.erb+++ b/app/components/individual_principal_base_filter_component.html.erb@@ -28,7 +28,7 @@ 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? %>@@ -51,14 +51,14 @@ See COPYRIGHT and LICENSE files for more details.<li class="simple-filters--filter"><label class='simple-filters--filter-name' for='group_id'><%= Group.model_name.human %>:</label><%= collection_select :group,- :id,- groups,- :id,- :name,- { include_blank: true,- selected: params[:group_id].to_i },- { name: "group_id",- class: "simple-filters--filter-value" } %>+ :id,+ groups,+ :id,+ :name,+ { include_blank: true,+ selected: params[:group_id].to_i },+ { name: "group_id",+ class: "simple-filters--filter-value" } %></li><% end %><% if roles.present? %>@@ -78,7 +78,8 @@ See COPYRIGHT and LICENSE files for more details.{name: "role_id",class: "simple-filters--filter-value"- })+ }+ )%></li><% end %>@@ -96,7 +97,8 @@ See COPYRIGHT and LICENSE files for more details.include_blank: true,name: "shared_role_id",class: "simple-filters--filter-value"- })+ }+ )%></li><% end %>diff --git a/app/components/members/index_sub_header_component.html.erb b/app/components/members/index_sub_header_component.html.erbindex 95a0f66214d..c2e2105777b 100644--- a/app/components/members/index_sub_header_component.html.erb+++ b/app/components/members/index_sub_header_component.html.erb@@ -1,22 +1,26 @@<%= render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_filter_button(label: I18n.t(:description_filter),- id: "filter-member-button",- aria: { label: I18n.t(:description_filter) },- class: "toggle-member-filter-link",- data: filter_button_data_attributes) do- I18n.t(:description_filter)- end+ subheader.with_filter_button(+ label: I18n.t(:description_filter),+ id: "filter-member-button",+ aria: { label: I18n.t(:description_filter) },+ class: "toggle-member-filter-link",+ data: filter_button_data_attributes+ ) do+ I18n.t(:description_filter)+ end- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:button_add_member) },- title: I18n.t(:button_add_member),- id: "add-member-button",- data: add_button_data_attributes) do |button|- button.with_leading_visual_icon(icon: :plus)- t("activerecord.models.member")- end+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:button_add_member) },+ title: I18n.t(:button_add_member),+ id: "add-member-button",+ data: add_button_data_attributes+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ t("activerecord.models.member")+ end- subheader.with_bottom_pane_component do- render ::Members::UserFilterComponent.new(params, **@members_filter_options)- end-end %>+ subheader.with_bottom_pane_component do+ render ::Members::UserFilterComponent.new(params, **@members_filter_options)+ end+ end %>diff --git a/app/components/messages/show_page_header_component.html.erb b/app/components/messages/show_page_header_component.html.erbindex 2fd3c270434..8714870d380 100644--- a/app/components/messages/show_page_header_component.html.erb+++ b/app/components/messages/show_page_header_component.html.erb@@ -6,48 +6,54 @@watcher_action_button(header, @topic)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 }),- aria: { label: I18n.t(:button_delete) },- data: { 'action': "forum-messages#quote", test_selector: "message-quote-button" },- title: t(:button_quote)) do |button|+ 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 }),+ aria: { label: I18n.t(:button_delete) },+ 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)endendif @message.editable_by?(User.current)- header.with_action_button(tag: :a,- scheme: :default,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_topic_path(@topic),- aria: { label: t(:button_edit) },- data: { test_selector: "message-edit-button" },- title: t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :default,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ href: edit_topic_path(@topic),+ aria: { label: t(:button_edit) },+ data: { test_selector: "message-edit-button" },+ title: t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)endendif @message.destroyable_by?(User.current)- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: topic_path(@topic),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :delete- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: topic_path(@topic),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :delete+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --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.erbindex ae5e4c791bf..928b20ab901 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@@ -28,11 +28,13 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::OpenProject::FeedbackDialog.new(- id:,- title: I18n.t("my.access_token.create_dialog.title"),- size: :large- )) do |dialog|+ render(+ Primer::OpenProject::FeedbackDialog.new(+ id:,+ title: I18n.t("my.access_token.create_dialog.title"),+ size: :large+ )+ ) do |dialog|dialog.with_feedback_message do |message|message.with_heading(tag: :h2) { I18n.t("my.access_token.create_dialog.header", type: "API") }end@@ -41,15 +43,18 @@ See COPYRIGHT and LICENSE files for more details.flex_layout do |flex|flex.with_row(mb: 2) dorender(Primer::OpenProject::InputGroup.new) do |input_group|- input_group.with_text_input(name: :openproject_api_access_token,- label: Token::API.model_name.human,- visually_hide_label: false,- value: @token_value)+ input_group.with_text_input(+ name: :openproject_api_access_token,+ label: Token::API.model_name.human,+ visually_hide_label: false,+ value: @token_value+ )input_group.with_trailing_action_clipboard_copy_button(value: @token_value,aria: {label: I18n.t("button_copy_to_clipboard")- })+ }+ )endendflex.with_row dodiff --git a/app/components/my/access_token/new_access_token_form_component.html.erb b/app/components/my/access_token/new_access_token_form_component.html.erbindex 0e190a81139..c5c6ea5d84d 100644--- a/app/components/my/access_token/new_access_token_form_component.html.erb+++ b/app/components/my/access_token/new_access_token_form_component.html.erb@@ -36,9 +36,11 @@ See COPYRIGHT and LICENSE files for more details.method: :post) do |form|component_collection do |collection|- collection.with_component(Primer::Alpha::Dialog::Body.new(- aria: { label: I18n.t("my.access_token.new_access_token_dialog_title") }- )) do+ collection.with_component(+ Primer::Alpha::Dialog::Body.new(+ aria: { label: I18n.t("my.access_token.new_access_token_dialog_title") }+ )+ ) doflex_layout(mb: 3) do |body|body.with_row dorender(Primer::Alpha::Banner.new(scheme: :warning)) dodiff --git a/app/components/notifications/index_page_header_component.html.erb b/app/components/notifications/index_page_header_component.html.erbindex dfe0cf2782c..aa1c145fcc0 100644--- a/app/components/notifications/index_page_header_component.html.erb+++ b/app/components/notifications/index_page_header_component.html.erb@@ -1,15 +1,17 @@<%= render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { page_title }- header.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: current_breadcrumb_element == page_title ? :bold : :normal)+ header.with_title { page_title }+ header.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: current_breadcrumb_element == page_title ? :bold : :normal)- header.with_action_button(tag: :a,- mobile_icon: :gear,- mobile_label: I18n.t(:label_setting_plural),- href: my_notifications_path,- size: :medium,- target: "_blank",- aria: { label: I18n.t("js.notifications.settings.title") }) do |button|- button.with_leading_visual_icon(icon: :gear)- I18n.t(:label_setting_plural)- end-end %>+ header.with_action_button(+ tag: :a,+ mobile_icon: :gear,+ mobile_label: I18n.t(:label_setting_plural),+ href: my_notifications_path,+ size: :medium,+ target: "_blank",+ aria: { label: I18n.t("js.notifications.settings.title") }+ ) do |button|+ button.with_leading_visual_icon(icon: :gear)+ I18n.t(:label_setting_plural)+ end+ end %>diff --git a/app/components/notifications/index_sub_header_component.html.erb b/app/components/notifications/index_sub_header_component.html.erbindex 3554007d2c7..a8aaf99094e 100644--- a/app/components/notifications/index_sub_header_component.html.erb+++ b/app/components/notifications/index_sub_header_component.html.erb@@ -1,25 +1,31 @@<%= render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_filter_component do- render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control|- control.with_item(tag: :a,- href: notifications_path(facet: nil, **current_filters),- label: t("notifications.facets.unread"),- title: t("notifications.facets.unread_title"),- selected: @facet != "all")- control.with_item(tag: :a,- href: notifications_path(facet: "all", **current_filters),- label: t("notifications.facets.all"),- title: t("notifications.facets.all_title"),- selected: @facet == "all")- end- end+ subheader.with_filter_component do+ render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control|+ control.with_item(+ tag: :a,+ href: notifications_path(facet: nil, **current_filters),+ label: t("notifications.facets.unread"),+ title: t("notifications.facets.unread_title"),+ selected: @facet != "all"+ )+ control.with_item(+ tag: :a,+ href: notifications_path(facet: "all", **current_filters),+ label: t("notifications.facets.all"),+ title: t("notifications.facets.all_title"),+ selected: @facet == "all"+ )+ end+ end- subheader.with_action_button(tag: :a,- href: mark_all_read_notifications_path(**current_filters),- data: { method: :post },- size: :medium,- aria: { label: I18n.t("js.notifications.center.mark_all_read") }) do |button|- button.with_leading_visual_icon(icon: :'op-read-all')- I18n.t("js.notifications.center.mark_all_read")- end-end %>+ subheader.with_action_button(+ tag: :a,+ href: mark_all_read_notifications_path(**current_filters),+ data: { method: :post },+ size: :medium,+ aria: { label: I18n.t("js.notifications.center.mark_all_read") }+ ) do |button|+ button.with_leading_visual_icon(icon: :'op-read-all')+ I18n.t("js.notifications.center.mark_all_read")+ end+ end %>diff --git a/app/components/oauth/applications/application_row_component.html.erb b/app/components/oauth/applications/application_row_component.html.erbindex 0a7e9787336..318785556bd 100644--- a/app/components/oauth/applications/application_row_component.html.erb+++ b/app/components/oauth/applications/application_row_component.html.erb@@ -29,14 +29,16 @@# Actionsoauth_application_container.with_column do- render(Primer::Alpha::ToggleSwitch.new(- src: toggle_oauth_application_path(@application),- csrf_token: form_authenticity_token,- checked: @application.enabled?,- data: {- 'test-selector': "op-admin-oauth--application-enabled-toggle-switch"- }- ))+ render(+ Primer::Alpha::ToggleSwitch.new(+ src: toggle_oauth_application_path(@application),+ csrf_token: form_authenticity_token,+ checked: @application.enabled?,+ data: {+ 'test-selector': "op-admin-oauth--application-enabled-toggle-switch"+ }+ )+ )endendenddiff --git a/app/components/oauth/applications/index_component.html.erb b/app/components/oauth/applications/index_component.html.erbindex e5f0d0b4bee..7e552d021cb 100644--- a/app/components/oauth/applications/index_component.html.erb+++ b/app/components/oauth/applications/index_component.html.erb@@ -3,9 +3,13 @@flex_layout do |index_container|if OpenProject::FeatureDecisions.built_in_oauth_applications_active?index_container.with_row do- render(border_box_container(mb: 4, data: {- 'test-selector': "op-admin-oauth--built-in-applications"- })) do |component|+ render(+ border_box_container(+ mb: 4, data: {+ 'test-selector': "op-admin-oauth--built-in-applications"+ }+ )+ ) do |component|component.with_header(font_weight: :bold) dorender(Primer::Beta::Text.new) dot("oauth.header.builtin_applications")@@ -14,9 +18,13 @@if @built_in_applications.empty?component.with_row do- render(Primer::Beta::Text.new(data: {- 'test-selector': "op-admin-oauth--built-in-applications-placeholder"- })) do+ render(+ Primer::Beta::Text.new(+ data: {+ 'test-selector': "op-admin-oauth--built-in-applications-placeholder"+ }+ )+ ) dot("oauth.empty_application_lists")endenddiff --git a/app/components/oauth/show_page_header_component.html.erb b/app/components/oauth/show_page_header_component.html.erbindex 8bb3d06627e..af35583704b 100644--- a/app/components/oauth/show_page_header_component.html.erb+++ b/app/components/oauth/show_page_header_component.html.erb@@ -33,29 +33,33 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs(breadcrumb_items)unless @application.builtin?- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_oauth_application_path(@application),- aria: { label: I18n.t(:button_edit) },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ href: edit_oauth_application_path(@application),+ aria: { label: I18n.t(:button_edit) },+ title: I18n.t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)end- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: oauth_application_path(@application),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :delete- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: oauth_application_path(@application),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :delete+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/app/components/op_primer/border_box_table_component.html.erb b/app/components/op_primer/border_box_table_component.html.erbindex a026da0f9aa..48c570ce96b 100644--- a/app/components/op_primer/border_box_table_component.html.erb+++ b/app/components/op_primer/border_box_table_component.html.erb@@ -32,20 +32,33 @@ See COPYRIGHT and LICENSE files for more details.border_box_container(classes: container_class,test_selector:,- )) do |component|+ )+ ) do |component|component.with_header(classes: grid_class, color: :muted) doheaders.each do |name, args|- concat render(Primer::Beta::Text.new(classes: header_classes(name),- font_weight: :semibold,- **header_args(name))) { args[:caption] }+ concat render(+ Primer::Beta::Text.new(+ classes: header_classes(name),+ font_weight: :semibold,+ **header_args(name)+ )+ ) { args[:caption] }end- concat render(Primer::Beta::Text.new(classes: "op-border-box-grid--mobile-heading",- font_weight: :semibold)) { mobile_title }+ concat render(+ Primer::Beta::Text.new(+ classes: "op-border-box-grid--mobile-heading",+ font_weight: :semibold+ )+ ) { mobile_title }if has_actions?- concat render(Primer::BaseComponent.new(classes: heading_class,- tag: :div))+ concat render(+ Primer::BaseComponent.new(+ classes: heading_class,+ tag: :div+ )+ )endenddiff --git a/app/components/op_primer/copy_to_clipboard_component.html.erb b/app/components/op_primer/copy_to_clipboard_component.html.erbindex 0546b100c46..aaaf86694d9 100644--- a/app/components/op_primer/copy_to_clipboard_component.html.erb+++ b/app/components/op_primer/copy_to_clipboard_component.html.erb@@ -2,12 +2,14 @@flex_layout(align_items: :center, **@system_arguments) do |flex|if @scheme == :linkflex.with_column(classes: "ellipsis") do- render(Primer::Beta::Link.new(- id: @id,- href: value,- title: value,- target: :_blank- )) { value }+ render(+ Primer::Beta::Link.new(+ id: @id,+ href: value,+ title: value,+ target: :_blank+ )+ ) { value }endelseflex.with_column(classes: "ellipsis") dodiff --git a/app/components/op_primer/expandable_list_component.html.erb b/app/components/op_primer/expandable_list_component.html.erbindex 0b4cdf1a672..6a16288c97a 100644--- a/app/components/op_primer/expandable_list_component.html.erb+++ b/app/components/op_primer/expandable_list_component.html.erb@@ -19,19 +19,23 @@hidden_user_list.with_row(mt: 1) { item.to_s }endhidden_user_list.with_row(mt: 2) do- render(Primer::Beta::Button.new(- scheme: :link,- data: { action: "expandable-list#hideElements" }- )) { I18n.t("label_show_less") }+ render(+ Primer::Beta::Button.new(+ scheme: :link,+ data: { action: "expandable-list#hideElements" }+ )+ ) { I18n.t("label_show_less") }endendendlist.with_row(mt: 2) do- render(Primer::Beta::Button.new(- scheme: :link,- data: { "expandable-list-target": "showButton",- action: "expandable-list#showElements" }- )) { I18n.t("label_show_more") }+ render(+ Primer::Beta::Button.new(+ scheme: :link,+ data: { "expandable-list-target": "showButton",+ action: "expandable-list#showElements" }+ )+ ) { I18n.t("label_show_more") }endendenddiff --git a/app/components/op_primer/flash_component.html.erb b/app/components/op_primer/flash_component.html.erbindex 2f2cb190f3a..00ee247d651 100644--- a/app/components/op_primer/flash_component.html.erb+++ b/app/components/op_primer/flash_component.html.erb@@ -28,15 +28,17 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::BaseComponent.new(- tag: :div,- classes: "op-primer-flash--item",- data: {- "flash-target": "item",- "autohide": @autohide,- unique_key: @unique_key- }.compact- )) do+ render(+ Primer::BaseComponent.new(+ tag: :div,+ classes: "op-primer-flash--item",+ data: {+ "flash-target": "item",+ "autohide": @autohide,+ unique_key: @unique_key+ }.compact+ )+ ) dorender_parentend%>diff --git a/app/components/open_project/common/attribute_component.html.erb b/app/components/open_project/common/attribute_component.html.erbindex 5e76a295f59..6c49452377a 100644--- a/app/components/open_project/common/attribute_component.html.erb+++ b/app/components/open_project/common/attribute_component.html.erb@@ -5,40 +5,51 @@class="op-long-text-attribute"><%= render(- Primer::Beta::Text.new(tag: :div,- classes: ["op-long-text-attribute--text", PARAGRAPH_CSS_CLASS],- color: text_color,- style: "max-height: #{max_height};",- data: {- 'attribute-target': "descriptionText"- })) { short_text } %>+ Primer::Beta::Text.new(+ tag: :div,+ classes: ["op-long-text-attribute--text", PARAGRAPH_CSS_CLASS],+ color: text_color,+ style: "max-height: #{max_height};",+ data: {+ 'attribute-target': "descriptionText"+ }+ )+ ) { short_text } %><%= render(- Primer::Beta::Text.new(tag: :div,- display: display_expand_button_value,- classes: "op-long-text-attribute--text-hider",- data: { 'attribute-target': "textHider" })) %>+ Primer::Beta::Text.new(+ tag: :div,+ display: display_expand_button_value,+ 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),- display: display_expand_button_value,- data: {- 'attribute-target': "expandButton",- 'test-selector': "expand-button"- },- button_arguments: { 'data-show-dialog-id': id },- classes: "op-long-text-attribute--text-expander"- )) %>+ Primer::Alpha::HiddenTextExpander.new(+ inline: false,+ "aria-label": I18n.t("label_attribute_expand_text", attribute: name),+ display: display_expand_button_value,+ data: {+ 'attribute-target': "expandButton",+ 'test-selector': "expand-button"+ },+ button_arguments: { 'data-show-dialog-id': id },+ classes: "op-long-text-attribute--text-expander"+ )+ ) %><%= render(- Primer::Alpha::Dialog.new(id: id,- data: {- 'test-selector': "attribute-dialog"- },- title: name,- size: :large)) do |component|- component.with_body { full_text }- component.with_header(variant: :large)- end %>+ Primer::Alpha::Dialog.new(+ id: id,+ data: {+ 'test-selector': "attribute-dialog"+ },+ title: name,+ size: :large+ )+ ) do |component|+ component.with_body { full_text }+ component.with_header(variant: :large)+ end %></div>diff --git a/app/components/open_project/common/submenu_component.html.erb b/app/components/open_project/common/submenu_component.html.erbindex 50cf60b59ba..bdbffbe7b01 100644--- a/app/components/open_project/common/submenu_component.html.erb+++ b/app/components/open_project/common/submenu_component.html.erb@@ -1,26 +1,30 @@<div class="op-submenu" data-controller="filter--filter-list" data-application-target="dynamic" data-test-selector="op-submenu"><% if @searchable %><div class="op-submenu--search">- <%= render Primer::Alpha::TextField.new(name: "search",- label: I18n.t("label_search"),- placeholder: I18n.t("label_search_by_name"),- leading_visual: { icon: :search },- visually_hide_label: true,- classes: "op-submenu--search-input",- data: {- action: "input->filter--filter-list#filterLists",- "filter--filter-list-target": "filter",- "test-selector": "op-submenu--search-input"- },) %>+ <%= render Primer::Alpha::TextField.new(+ name: "search",+ label: I18n.t("label_search"),+ placeholder: I18n.t("label_search_by_name"),+ leading_visual: { icon: :search },+ visually_hide_label: true,+ classes: "op-submenu--search-input",+ data: {+ action: "input->filter--filter-list#filterLists",+ "filter--filter-list-target": "filter",+ "test-selector": "op-submenu--search-input"+ },+ ) %>- <%= render Primer::Beta::Text.new(display: :none,- classes: "op-submenu--search-no-results-container",- data: {- "test-selector": "op-submenu--search-no-results",- "filter--filter-list-target": "noResultsText",- }) do- I18n.t("js.autocompleter.notFoundText")- end %>+ <%= render Primer::Beta::Text.new(+ display: :none,+ classes: "op-submenu--search-no-results-container",+ data: {+ "test-selector": "op-submenu--search-no-results",+ "filter--filter-list-target": "noResultsText",+ }+ ) do+ I18n.t("js.autocompleter.notFoundText")+ end %></div><% end %>@@ -99,18 +103,20 @@<% if @create_btn_options.present? %><div class="op-submenu--footer">- <%= render Primer::Beta::Button.new(scheme: :primary,- tag: :a,- href: @create_btn_options[:href],- test_selector: "#{@create_btn_options[:module_key]}--create-button",- classes: "op-submenu--footer-action") do |button|- button.with_leading_visual_icon(icon: "plus")- if @create_btn_options[:btn_text].present?- @create_btn_options[:btn_text]- else- I18n.t("label_#{@create_btn_options[:module_key]}")- end- end %>+ <%= render Primer::Beta::Button.new(+ scheme: :primary,+ tag: :a,+ href: @create_btn_options[:href],+ test_selector: "#{@create_btn_options[:module_key]}--create-button",+ classes: "op-submenu--footer-action"+ ) do |button|+ button.with_leading_visual_icon(icon: "plus")+ if @create_btn_options[:btn_text].present?+ @create_btn_options[:btn_text]+ else+ I18n.t("label_#{@create_btn_options[:module_key]}")+ end+ end %></div><% end %></div>diff --git a/app/components/placeholder_users/edit_page_header_component.html.erb b/app/components/placeholder_users/edit_page_header_component.html.erbindex 71e44dd5e5a..d69189005cb 100644--- a/app/components/placeholder_users/edit_page_header_component.html.erb+++ b/app/components/placeholder_users/edit_page_header_component.html.erb@@ -33,27 +33,31 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs(breadcrumb_items)unless new_record?- header.with_action_button(tag: :a,- mobile_icon: :person,- mobile_label: t(:label_profile),- size: :medium,- href: placeholder_user_path(@placeholder_user),- aria: { label: I18n.t(:label_profile) },- title: I18n.t(:label_profile)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :person,+ mobile_label: t(:label_profile),+ size: :medium,+ href: placeholder_user_path(@placeholder_user),+ aria: { label: I18n.t(:label_profile) },+ title: I18n.t(:label_profile)+ ) do |button|button.with_leading_visual_icon(icon: :person)t(:label_profile)end- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- disabled: !deletable?,- href: delete_button_href,- aria: { label: I18n.t(:button_delete) },- data: { "test-selector": "placeholder-user--delete-button" },- title: delete_button_title) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ disabled: !deletable?,+ href: delete_button_href,+ aria: { label: I18n.t(:button_delete) },+ data: { "test-selector": "placeholder-user--delete-button" },+ title: delete_button_title+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/app/components/placeholder_users/show_page_header_component.html.erb b/app/components/placeholder_users/show_page_header_component.html.erbindex 2541493523e..80afe8f33a9 100644--- a/app/components/placeholder_users/show_page_header_component.html.erb+++ b/app/components/placeholder_users/show_page_header_component.html.erb@@ -32,29 +32,33 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs(breadcrumb_items)if @current_user.allowed_globally?(:manage_placeholder_user)- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- accesskey: accesskey(:edit),- href: edit_placeholder_user_path(@placeholder_user),- aria: { label: I18n.t(:button_edit) },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ accesskey: accesskey(:edit),+ href: edit_placeholder_user_path(@placeholder_user),+ aria: { label: I18n.t(:button_edit) },+ title: I18n.t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)endend- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- disabled: !deletable?,- href: delete_button_href,- aria: { label: I18n.t(:button_delete) },- data: { "test-selector": "placeholder-user--delete-button" },- title: delete_button_title) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ disabled: !deletable?,+ href: delete_button_href,+ aria: { label: I18n.t(:button_delete) },+ data: { "test-selector": "placeholder-user--delete-button" },+ title: delete_button_title+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/app/components/projects/configure_view_modal_component.html.erb b/app/components/projects/configure_view_modal_component.html.erbindex d19d4001cbb..38dc3d32a5d 100644--- a/app/components/projects/configure_view_modal_component.html.erb+++ b/app/components/projects/configure_view_modal_component.html.erb@@ -1,10 +1,14 @@-<%= render(Primer::Alpha::Dialog.new(title: t(:'queries.configure_view.heading'),- size: :large,- id: MODAL_ID,- # Hack to give the draggable autcompleter (ng-select) bound to the dialog- # enough height to display all options.- # This is necessary as long as ng-select does not support popovers.- style: "min-height: 480px")) do |d| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: t(:'queries.configure_view.heading'),+ size: :large,+ id: MODAL_ID,+ # Hack to give the draggable autcompleter (ng-select) bound to the dialog+ # enough height to display all options.+ # This is necessary as long as ng-select does not support popovers.+ style: "min-height: 480px"+ )+ ) do |d| %><% d.with_header(variant: :large) %><%= render(Primer::Alpha::Dialog::Body.new) do %><%= primer_form_with(@@ -14,26 +18,26 @@method: :get) do |form| %><% helpers.projects_query_params.except(:columns, :sortBy).each do |name, value| %>- <%= hidden_field_tag name, value, data: {"sort-by-config-target" => name} %>+ <%= hidden_field_tag name, value, data: { "sort-by-config-target" => name } %><% end %><%= render(Primer::Alpha::TabPanels.new(label: "label")) do |tab_panel| %><% 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",- inputs: {- options: helpers.projects_columns_options,- selected: selected_columns,- protected: helpers.protected_projects_columns_options,- name: COLUMN_HTML_NAME,- id: COLUMN_HTML_ID,- dragAreaName: "#{COLUMN_HTML_ID}_dragarea",- formControlId: "#{COLUMN_HTML_ID}_autocompleter",- 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'),- appendToComponent: true- } %>+ inputs: {+ options: helpers.projects_columns_options,+ selected: selected_columns,+ protected: helpers.protected_projects_columns_options,+ name: COLUMN_HTML_NAME,+ id: COLUMN_HTML_ID,+ dragAreaName: "#{COLUMN_HTML_ID}_dragarea",+ formControlId: "#{COLUMN_HTML_ID}_autocompleter",+ 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'),+ appendToComponent: true+ } %><% end %><% end %><% tab_panel.with_tab(id: "tab-selects--sorting") do |tab| %>@@ -47,9 +51,13 @@<% end %><%= render(Primer::Alpha::Dialog::Footer.new) do %><%= render(Primer::ButtonComponent.new(data: { "close-dialog-id": MODAL_ID })) { I18n.t(:button_cancel) } %>- <%= render(Primer::ButtonComponent.new(scheme: :primary,- type: :submit,- data: { "test-selector": "#{MODAL_ID}-submit"},- form: QUERY_FORM_ID)) { I18n.t(:button_apply) } %>+ <%= render(+ Primer::ButtonComponent.new(+ scheme: :primary,+ type: :submit,+ data: { "test-selector": "#{MODAL_ID}-submit" },+ form: QUERY_FORM_ID+ )+ ) { I18n.t(:button_apply) } %><% end %><% end %>diff --git a/app/components/projects/delete_list_modal_component.html.erb b/app/components/projects/delete_list_modal_component.html.erbindex 3d850d1f68f..86cea6a7ef8 100644--- a/app/components/projects/delete_list_modal_component.html.erb+++ b/app/components/projects/delete_list_modal_component.html.erb@@ -1,15 +1,25 @@-<%= render(Primer::Alpha::Dialog.new(title: t(:'projects.lists.delete_modal.title'),- size: :large,- id: MODAL_ID,- data: { 'test-selector': MODAL_ID })) do |d| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: t(:'projects.lists.delete_modal.title'),+ size: :large,+ id: MODAL_ID,+ data: { 'test-selector': MODAL_ID }+ )+ ) do |d| %><% d.with_header(variant: :large) %><% d.with_body { t(:'projects.lists.delete_modal.text') } %><% d.with_footer do %><%= render(Primer::Beta::Button.new(data: { "close-dialog-id": MODAL_ID })) { I18n.t(:button_cancel) } %>- <%= form_with(url: project_query_path(query),- method: :delete) do %>- <%= render(Primer::Beta::Button.new(scheme: :danger,- type: :submit)) { I18n.t(:button_delete) } %>+ <%= form_with(+ url: project_query_path(query),+ method: :delete+ ) do %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :danger,+ type: :submit+ )+ ) { I18n.t(:button_delete) } %><% end %><% end %><% end %>diff --git a/app/components/projects/disk_usage_information_component.html.erb b/app/components/projects/disk_usage_information_component.html.erbindex 0e8f6bc9dbd..81f0d716067 100644--- a/app/components/projects/disk_usage_information_component.html.erb+++ b/app/components/projects/disk_usage_information_component.html.erb@@ -1,6 +1,8 @@<p class="information-section"><%= helpers.op_icon("icon-info1") %>- <%= t(:label_projects_disk_usage_information,+ <%= t(+ :label_projects_disk_usage_information,count: Project.count,- used_disk_space: number_to_human_size(Project.total_projects_size, precision: 2)) %>+ used_disk_space: number_to_human_size(Project.total_projects_size, precision: 2)+ ) %></p>diff --git a/app/components/projects/export_list_modal_component.html.erb b/app/components/projects/export_list_modal_component.html.erbindex 5a6b837ad85..edc5ddc0761 100644--- a/app/components/projects/export_list_modal_component.html.erb+++ b/app/components/projects/export_list_modal_component.html.erb@@ -1,5 +1,9 @@-<%= render(Primer::Alpha::Dialog.new(title: t("js.label_export"),- id: MODAL_ID)) do |d| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: t("js.label_export"),+ id: MODAL_ID+ )+ ) do |d| %><% d.with_header(variant: :large) %><% d.with_body do %><ul class="op-export-options">diff --git a/app/components/projects/index_page_header_component.html.erb b/app/components/projects/index_page_header_component.html.erbindex bce2a3524fa..755a4ed2de0 100644--- a/app/components/projects/index_page_header_component.html.erb+++ b/app/components/projects/index_page_header_component.html.erb@@ -2,15 +2,17 @@<%=render(Primer::OpenProject::PageHeader.new(state: @state)) do |header|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,- cancel_path: projects_path(**projects_query_params, **{ query_id: query.id }.compact),- input_name: "name",- label: ProjectQuery.human_attribute_name(:name),- placeholder: I18n.t(:"projects.lists.new.placeholder"),- scope: "query",- id: "project-save-form")+ 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,+ cancel_path: projects_path(**projects_query_params, **{ query_id: query.id }.compact),+ input_name: "name",+ label: ProjectQuery.human_attribute_name(:name),+ placeholder: I18n.t(:"projects.lists.new.placeholder"),+ scope: "query",+ id: "project-save-form"+ )page_titleendheader.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: current_breadcrumb_element == page_title ? :bold : :normal)@@ -136,7 +138,7 @@tag: :a,label: t(:'queries.configure_view.heading'),href: configure_view_modal_project_queries_path(projects_query_params),- content_arguments: { data: { controller: "async-dialog" }}+ content_arguments: { data: { controller: "async-dialog" } }) do |item|item.with_leading_visual_icon(icon: :gear)end@@ -147,7 +149,7 @@label: t(:button_delete),scheme: :danger,href: destroy_confirmation_modal_project_query_path(query.id),- content_arguments: { data: { controller: "async-dialog" }}+ content_arguments: { data: { controller: "async-dialog" } }) do |item|item.with_leading_visual_icon(icon: "trash")end@@ -155,8 +157,7 @@menu.with_item(tag: :button,label: t("label_zen_mode"),- content_arguments: { data: { controller: "projects-zen-mode", target: "projects-zen-mode.button", action: "click->projects-zen-mode#performAction" }- }+ 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")enddiff --git a/app/components/projects/index_sub_header_component.html.erb b/app/components/projects/index_sub_header_component.html.erbindex b2866d23d26..158ebd120df 100644--- a/app/components/projects/index_sub_header_component.html.erb+++ b/app/components/projects/index_sub_header_component.html.erb@@ -1,33 +1,37 @@<%= 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"),- value: filter_input_value,- placeholder: t("projects.index.search.placeholder"),- leading_visual: {- icon: :search,- size: :small- },- clear_button_id: clear_button_id,- data: filter_input_data_attributes)+ subheader.with_filter_input(+ name: "name_and_identifier",+ label: t("projects.index.search.label"),+ value: filter_input_value,+ placeholder: t("projects.index.search.placeholder"),+ leading_visual: {+ icon: :search,+ size: :small+ },+ clear_button_id: clear_button_id,+ data: filter_input_data_attributes+ )- subheader.with_filter_component do- render(Projects::ProjectFilterButtonComponent.new(query: @query, disabled: @disable_buttons))- end+ subheader.with_filter_component do+ render(Projects::ProjectFilterButtonComponent.new(query: @query, disabled: @disable_buttons))+ end- subheader.with_action_button(tag: :a,- href: new_project_path,- scheme: :primary,- disabled: @disable_buttons,- size: :medium,- aria: { label: I18n.t(:label_project_new) },- 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)+ subheader.with_action_button(+ tag: :a,+ href: new_project_path,+ scheme: :primary,+ disabled: @disable_buttons,+ size: :medium,+ aria: { label: I18n.t(:label_project_new) },+ 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)- subheader.with_bottom_pane_component(mt: 0) do- render(Projects::ProjectsFiltersComponent.new(query: @query))- end- end %>+ subheader.with_bottom_pane_component(mt: 0) do+ render(Projects::ProjectsFiltersComponent.new(query: @query))+ end+ end %><% end %>diff --git a/app/components/projects/life_cycle_type_component.html.erb b/app/components/projects/life_cycle_type_component.html.erbindex 921c1cf191a..3f9a0f06e6f 100644--- a/app/components/projects/life_cycle_type_component.html.erb+++ b/app/components/projects/life_cycle_type_component.html.erb@@ -1,8 +1,8 @@<%= flex_layout(align_items: :center) do |type_container|- type_container.with_column(mr: 1, classes: icon_color_class) do- render Primer::Beta::Octicon.new(icon: icon)- end- type_container.with_column do- render(Primer::Beta::Text.new(**text_options)) { text }- end-end %>+ type_container.with_column(mr: 1, classes: icon_color_class) do+ render Primer::Beta::Octicon.new(icon: icon)+ end+ type_container.with_column do+ render(Primer::Beta::Text.new(**text_options)) { text }+ end+ end %>diff --git a/app/components/projects/settings/index_page_header_component.html.erb b/app/components/projects/settings/index_page_header_component.html.erbindex a81281c601b..c2b0d670b49 100644--- a/app/components/projects/settings/index_page_header_component.html.erb+++ b/app/components/projects/settings/index_page_header_component.html.erb@@ -1,32 +1,38 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_information_plural) }- 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(:label_information_plural)- ])+ 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(:label_information_plural)+ ]+ )if User.current.allowed_in_project?(:add_subprojects, @project)- header.with_action_button(scheme: :primary,- mobile_icon: :plus,- mobile_label: t(:label_subproject_new),- aria: { label: t(:label_subproject_new) },- title: t(:label_subproject_new),- tag: :a,- href: new_project_path(parent_id: @project.id)) do |button|+ header.with_action_button(+ scheme: :primary,+ mobile_icon: :plus,+ mobile_label: t(:label_subproject_new),+ aria: { label: t(:label_subproject_new) },+ title: t(:label_subproject_new),+ tag: :a,+ href: new_project_path(parent_id: @project.id)+ ) do |button|button.with_leading_visual_icon(icon: :plus)t(:label_subproject)endend- header.with_action_button(tag: :a,- mobile_icon: :pencil,- 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|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ 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|button.with_leading_visual_icon(icon: :pencil)t("projects.settings.change_identifier")end@@ -43,14 +49,14 @@) do |menu|if @project.copy_allowed?menu.with_item(- label:t(:button_copy),+ label: t(:button_copy),href: copy_project_path(@project),content_arguments: {data: { turbo: false },test_selector: "project-settings--copy"},accesskey: helpers.accesskey(:copy),- ) do |item|+ ) do |item|item.with_leading_visual_icon(icon: :copy)endenddiff --git a/app/components/projects/settings/life_cycle_steps/index_component.html.erb b/app/components/projects/settings/life_cycle_steps/index_component.html.erbindex d214f0f91e1..d627d034020 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@@ -2,20 +2,22 @@flex_layout(data: wrapper_data_attributes) do |flex|flex.with_row dorender(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_filter_input(name: "border-box-filter",- label: t("projects.settings.life_cycle.filter.label"),- visually_hide_label: true,- placeholder: t("projects.settings.life_cycle.filter.label"),- leading_visual: {- icon: :search,- size: :small- },- show_clear_button: true,- clear_button_id: clear_button_id,- data: {- action: "input->projects--settings--border-box-filter#filterLists",- "projects--settings--border-box-filter-target": "filter"- })+ subheader.with_filter_input(+ name: "border-box-filter",+ label: t("projects.settings.life_cycle.filter.label"),+ visually_hide_label: true,+ placeholder: t("projects.settings.life_cycle.filter.label"),+ leading_visual: {+ icon: :search,+ size: :small+ },+ show_clear_button: true,+ clear_button_id: clear_button_id,+ data: {+ action: "input->projects--settings--border-box-filter#filterLists",+ "projects--settings--border-box-filter-target": "filter"+ }+ )endend@@ -32,29 +34,33 @@endheader_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- 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"),- data: { 'turbo-method': :post, test_selector: "enable-all-life-cycle-steps" }- )) do |button|+ 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"),+ 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")endendactions_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"),- data: { 'turbo-method': :post, test_selector: "disable-all-life-cycle-steps" }- )) do |button|+ 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"),+ 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")end@@ -68,8 +74,10 @@endelselife_cycle_definitions_and_step_active.each do |definition, active|- component.with_row(data: { 'projects--settings--border-box-filter-target': "searchItem" },- test_selector: "project-life-cycle-step-#{definition.id}") do+ component.with_row(+ data: { 'projects--settings--border-box-filter-target': "searchItem" },+ test_selector: "project-life-cycle-step-#{definition.id}"+ ) dorender(Projects::Settings::LifeCycleSteps::StepComponent.new(definition:, active?: active))endend@@ -77,10 +85,12 @@endendflex.with_row do- render Primer::Beta::Text.new(display: :none,- data: {- "projects--settings--border-box-filter-target": "noResultsText",- }) do+ render Primer::Beta::Text.new(+ display: :none,+ data: {+ "projects--settings--border-box-filter-target": "noResultsText",+ }+ ) doI18n.t("js.autocompleter.notFoundText")endenddiff --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.erbindex a52affb1790..bce464dcb65 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@@ -2,9 +2,11 @@render Primer::OpenProject::PageHeader.new do |header|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)+ admin_settings_url: admin_settings_project_life_cycle_step_definitions_path+ )endheader.with_breadcrumbs(breadcrumb_items)enddiff --git a/app/components/projects/settings/life_cycle_steps/step_component.html.erb b/app/components/projects/settings/life_cycle_steps/step_component.html.erbindex 9af49ae8f94..6cd3026c60a 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@@ -1,6 +1,8 @@<%=- flex_layout(align_items: :center,- justify_content: :space_between) do |step_container|+ flex_layout(+ align_items: :center,+ 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") dorender(Primer::Beta::Text.new(classes: "filter-target-visible-text")) { definition.name }@@ -15,16 +17,18 @@# small variant + status_label_position: :start leads to a small bounce while toggling# behavior can be seen on primer's viewbook as well -> https://view-components-storybook.eastus.cloudapp.azure.com/view-components/lookbook/inspect/primer/alpha/toggle_switch/small# quick fix: don't display loading indicator which is causing the bounce- render(Primer::Alpha::ToggleSwitch.new(- src: toggle_project_settings_life_cycle_step_path(id: definition.id),- csrf_token: form_authenticity_token,- data: { test_selector: "toggle-project-life-cycle-#{definition.id}" },- aria: { label: toggle_aria_label },- checked: active?,- size: :small,- status_label_position: :start,- classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",- ))+ render(+ Primer::Alpha::ToggleSwitch.new(+ src: toggle_project_settings_life_cycle_step_path(id: definition.id),+ csrf_token: form_authenticity_token,+ data: { test_selector: "toggle-project-life-cycle-#{definition.id}" },+ aria: { label: toggle_aria_label },+ checked: active?,+ size: :small,+ status_label_position: :start,+ classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",+ )+ )endend%>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.erbindex 05d2d13c579..c518982572b 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,15 +1,17 @@<%=component_wrapper do- 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|+ 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) dorender(Primer::Beta::Text.new(classes: "filter-target-visible-text")) do@project_custom_field.nameendend- title_container.with_column(pt: 1, mr: 2, data: { test_selector: "custom-field-type" } ) do+ title_container.with_column(pt: 1, mr: 2, data: { test_selector: "custom-field-type" }) dorender(Primer::Beta::Text.new(font_size: :small, color: :subtle)) do@project_custom_field.field_format.capitalizeend@@ -28,22 +30,24 @@# small variant + status_label_position: :start leads to a small bounce while toggling# behavior can be seen on primer's viewbook as well -> https://view-components-storybook.eastus.cloudapp.azure.com/view-components/lookbook/inspect/primer/alpha/toggle_switch/small# quick fix: don't display loading indicator which is causing the bounce- render(Primer::Alpha::ToggleSwitch.new(- src: toggle_project_settings_project_custom_fields_path(- project_custom_field_project_mapping: {- project_id: @project.id,- custom_field_id: @project_custom_field.id- }- ),- csrf_token: form_authenticity_token,- data: { 'turbo-method': :put, 'turbo-stream': true,- test_selector: "toggle-project-custom-field-mapping-#{@project_custom_field.id}" },- checked: active_in_project?,- enabled: !@project_custom_field.required?, # required fields cannot be disabled- size: :small,- status_label_position: :start,- classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",- ))+ render(+ Primer::Alpha::ToggleSwitch.new(+ src: toggle_project_settings_project_custom_fields_path(+ project_custom_field_project_mapping: {+ project_id: @project.id,+ custom_field_id: @project_custom_field.id+ }+ ),+ csrf_token: form_authenticity_token,+ data: { 'turbo-method': :put, 'turbo-stream': true,+ test_selector: "toggle-project-custom-field-mapping-#{@project_custom_field.id}" },+ checked: active_in_project?,+ enabled: !@project_custom_field.required?, # required fields cannot be disabled+ size: :small,+ status_label_position: :start,+ classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",+ )+ )endendenddiff --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.erbindex 69765f90a53..ef6c8033a65 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@@ -3,29 +3,33 @@flex_layout do |flex|flex.with_row dorender(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_filter_input(name: "border-box-filter",- label: t("projects.settings.project_custom_fields.filter.label"),- visually_hide_label: true,- placeholder: t("projects.settings.project_custom_fields.filter.label"),- leading_visual: {- icon: :search,- size: :small- },- show_clear_button: true,- clear_button_id: clear_button_id,- data: {- action: "input->projects--settings--border-box-filter#filterLists",- "projects--settings--border-box-filter-target": "filter"- })+ subheader.with_filter_input(+ name: "border-box-filter",+ label: t("projects.settings.project_custom_fields.filter.label"),+ visually_hide_label: true,+ placeholder: t("projects.settings.project_custom_fields.filter.label"),+ leading_visual: {+ icon: :search,+ size: :small+ },+ show_clear_button: true,+ clear_button_id: clear_button_id,+ data: {+ action: "input->projects--settings--border-box-filter#filterLists",+ "projects--settings--border-box-filter-target": "filter"+ }+ )endend@project_custom_field_sections.each do |project_custom_field_section|flex.with_row do- render(Projects::Settings::ProjectCustomFieldSections::ShowComponent.new(- project: @project,- project_custom_field_section:- ))+ render(+ Projects::Settings::ProjectCustomFieldSections::ShowComponent.new(+ project: @project,+ project_custom_field_section:+ )+ )endendenddiff --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.erbindex 7d7b7d1b5e5..8d21ab6761b 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,7 +1,11 @@<%= 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",- overview_url: project_path(project),- admin_settings_url: admin_settings_project_custom_fields_path) } %>+ <%= 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) %><% end %>diff --git a/app/components/projects/settings/project_custom_field_sections/show_component.html.erb b/app/components/projects/settings/project_custom_field_sections/show_component.html.erbindex c9368c22581..32730ae8659 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,8 +1,12 @@<%=component_wrapper do- 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|+ 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) doflex_layout(justify_content: :space_between, align_items: :center) do |section_header_container|section_header_container.with_column(py: 2) do |content_container|@@ -14,39 +18,43 @@endsection_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- render(Primer::Beta::Button.new(- tag: :a,- href: enable_all_of_section_project_settings_project_custom_fields_path(- project_custom_field_project_mapping: {- project_id: @project.id,- custom_field_section_id: @project_custom_field_section.id- }- ),- scheme: :invisible,- font_weight: :bold,- color: :subtle,- '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|+ render(+ Primer::Beta::Button.new(+ tag: :a,+ href: enable_all_of_section_project_settings_project_custom_fields_path(+ project_custom_field_project_mapping: {+ project_id: @project.id,+ custom_field_section_id: @project_custom_field_section.id+ }+ ),+ scheme: :invisible,+ font_weight: :bold,+ color: :subtle,+ '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")endendactions_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(- project_custom_field_project_mapping: {- project_id: @project.id,- custom_field_section_id: @project_custom_field_section.id- }- ),- scheme: :invisible,- font_weight: :bold,- color: :subtle,- '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|+ render(+ Primer::Beta::Button.new(+ tag: :a,+ href: disable_all_of_section_project_settings_project_custom_fields_path(+ project_custom_field_project_mapping: {+ project_id: @project.id,+ custom_field_section_id: @project_custom_field_section.id+ }+ ),+ scheme: :invisible,+ font_weight: :bold,+ color: :subtle,+ '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")end@@ -61,10 +69,12 @@else@project_custom_fields.each do |project_custom_field|component.with_row(data: { 'projects--settings--border-box-filter-target': "searchItem" }) do- render(Projects::Settings::ProjectCustomFieldSections::CustomFieldRowComponent.new(- project: @project,- project_custom_field:,- ))+ render(+ Projects::Settings::ProjectCustomFieldSections::CustomFieldRowComponent.new(+ project: @project,+ project_custom_field:,+ )+ )endendenddiff --git a/app/components/projects/table_component.html.erb b/app/components/projects/table_component.html.erbindex 0dd6c900d26..6c317c51d2c 100644--- a/app/components/projects/table_component.html.erb+++ b/app/components/projects/table_component.html.erb@@ -46,11 +46,11 @@ See COPYRIGHT and LICENSE files for more details.<div class="generic-table--sort-header-outer generic-table--sort-header-outer_no-highlighting"><div class="generic-table--sort-header"><%= content_tag :a,- helpers.op_icon("icon-hierarchy"),- href: href_only_when_not_sort_lft,- class: "spot-link #{deactivate_class_on_lft_sort}",- data: { "turbo-stream": true },- title: t(:label_sort_by, value: %("#{t(:label_project_hierarchy)}")) %>+ helpers.op_icon("icon-hierarchy"),+ href: href_only_when_not_sort_lft,+ class: "spot-link #{deactivate_class_on_lft_sort}",+ data: { "turbo-stream": true },+ title: t(:label_sort_by, value: %("#{t(:label_project_hierarchy)}")) %></div></div></th>diff --git a/app/components/queries/sort_by_field_component.html.erb b/app/components/queries/sort_by_field_component.html.erbindex 76b128dcb39..543a4e70192 100644--- a/app/components/queries/sort_by_field_component.html.erb+++ b/app/components/queries/sort_by_field_component.html.erb@@ -2,13 +2,13 @@<% 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/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erbindex 87798ccceb5..7df2939a3c2 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@@ -6,12 +6,14 @@render(Primer::OpenProject::DragHandle.new(classes: "handle"))endcontent_container.with_column(mr: 2) do- render(Primer::Beta::Link.new(- href: edit_admin_settings_project_custom_field_path(@project_custom_field),- underline: false,- font_weight: :bold,- data: { turbo: "false" }- )) do+ render(+ Primer::Beta::Link.new(+ href: edit_admin_settings_project_custom_field_path(@project_custom_field),+ underline: false,+ font_weight: :bold,+ data: { turbo: "false" }+ )+ ) do@project_custom_field.nameendend@@ -22,8 +24,10 @@endcontent_container.with_column(mr: 2) dorender(Primer::Beta::Text.new(font_size: :small)) do- t("project.count",- count: @project_custom_field.project_custom_field_project_mappings.size)+ t(+ "project.count",+ count: @project_custom_field.project_custom_field_project_mappings.size+ )endendif @project_custom_field.required?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.erbindex 431ca3ebfe4..cce9946bcd5 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) doif @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.erbindex 9efa6131d1a..e4fcf6ee50d 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@@ -27,10 +27,12 @@endendactions_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"),- size: :medium_portrait- )) do |dialog|+ render(+ Primer::Alpha::Dialog.new(+ 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))endend@@ -44,17 +46,19 @@render(Primer::Beta::Text.new(color: :subtle)) { t("settings.project_attributes.label_no_project_custom_fields") }endempty_list_container.with_column do- render(Primer::Beta::Button.new(+ render(+ Primer::Beta::Button.new(tag: :a,href: new_admin_settings_project_custom_field_path(type: "ProjectCustomField", custom_field_section_id: @project_custom_field_section.id),scheme: :secondary,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")- end+ )+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ t("settings.project_attributes.label_new_attribute")+ endendendenddiff --git a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb b/app/components/settings/project_custom_fields/edit_form_header_component.html.erbindex 808f78a5267..a8b6ed3bf0a 100644--- a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb+++ b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.header.with_tab_nav(label: nil, test_selector: :project_attribute_detail_header) do |tab_nav|tab_nav.with_tab(selected: project_custom_field_edit_selected?,- href: edit_admin_settings_project_custom_field_path(@custom_field)+ href: edit_admin_settings_project_custom_field_path(@custom_field)) do |tab|tab.with_text { t(:label_details) }enddiff --git a/app/components/settings/project_custom_fields/header_component.html.erb b/app/components/settings/project_custom_fields/header_component.html.erbindex f65b0bddae2..c9a75973229 100644--- a/app/components/settings/project_custom_fields/header_component.html.erb+++ b/app/components/settings/project_custom_fields/header_component.html.erb@@ -21,16 +21,17 @@endend- subheader.with_action_button(tag: :a,- href: new_admin_settings_project_custom_field_path(type: "ProjectCustomField"),- scheme: :primary,- data: { turbo: "false", test_selector: "new-project-custom-field-button" },- mobile_icon: :plus,- mobile_label: t("settings.project_attributes.label_new_attribute")) do |button|+ subheader.with_action_button(+ tag: :a,+ href: new_admin_settings_project_custom_field_path(type: "ProjectCustomField"),+ scheme: :primary,+ data: { turbo: "false", test_selector: "new-project-custom-field-button" },+ mobile_icon: :plus,+ mobile_label: t("settings.project_attributes.label_new_attribute")+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("settings.project_attributes.label_new_attribute")end-end%><% end %>diff --git a/app/components/settings/project_life_cycle_step_definitions/form_header_component.html.erb b/app/components/settings/project_life_cycle_step_definitions/form_header_component.html.erbindex 4e2a4029b5d..5760eb16da6 100644--- a/app/components/settings/project_life_cycle_step_definitions/form_header_component.html.erb+++ b/app/components/settings/project_life_cycle_step_definitions/form_header_component.html.erb@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.++#%><%= render Primer::OpenProject::PageHeader.new do |header|- header.with_title { t("settings.project_life_cycle_step_definitions.#{heading_scope}.heading") }- header.with_description { t("settings.project_life_cycle_step_definitions.new.description") }- header.with_breadcrumbs(breadcrumbs_items)-end %>+ header.with_title { t("settings.project_life_cycle_step_definitions.#{heading_scope}.heading") }+ header.with_description { t("settings.project_life_cycle_step_definitions.new.description") }+ header.with_breadcrumbs(breadcrumbs_items)+ end %>diff --git a/app/components/settings/project_life_cycle_step_definitions/index_component.html.erb b/app/components/settings/project_life_cycle_step_definitions/index_component.html.erbindex 05f8a68de37..4c0da38678a 100644--- a/app/components/settings/project_life_cycle_step_definitions/index_component.html.erb+++ b/app/components/settings/project_life_cycle_step_definitions/index_component.html.erb@@ -49,8 +49,10 @@ See COPYRIGHT and LICENSE files for more details.})subheader.with_action_component do- render(Primer::Alpha::ActionMenu.new(- anchor_align: :end)+ render(+ Primer::Alpha::ActionMenu.new(+ anchor_align: :end+ )) do |menu|menu.with_show_button(scheme: :primary,@@ -108,11 +110,13 @@ See COPYRIGHT and LICENSE files for more details.**draggable_item_config(definition)}) do- render(Settings::ProjectLifeCycleStepDefinitions::RowComponent.new(- definition,- first?: definition == definitions.first,- last?: definition == definitions.last,- ))+ render(+ Settings::ProjectLifeCycleStepDefinitions::RowComponent.new(+ definition,+ first?: definition == definitions.first,+ last?: definition == definitions.last,+ )+ )endendenddiff --git a/app/components/settings/project_life_cycle_step_definitions/row_component.html.erb b/app/components/settings/project_life_cycle_step_definitions/row_component.html.erbindex 645d282ed37..5a0698e192a 100644--- a/app/components/settings/project_life_cycle_step_definitions/row_component.html.erb+++ b/app/components/settings/project_life_cycle_step_definitions/row_component.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.row_container.with_column(flex_layout: true, classes: "gap-2 min-width-0") do |title_container|if allowed_to_customize_life_cycle?title_container.with_column do- render(Primer::OpenProject::DragHandle.new(- data: { "projects--settings--border-box-filter-target": "hideWhenFiltering" }- ))+ render(+ Primer::OpenProject::DragHandle.new(+ data: { "projects--settings--border-box-filter-target": "hideWhenFiltering" }+ )+ )endendtitle_container.with_column(classes: "ellipsis", test_selector: "project-life-cycle-step-definition-name") dodiff --git a/app/components/shares/bulk_permission_button_component.html.erb b/app/components/shares/bulk_permission_button_component.html.erbindex 5c2dc77945e..89b9de2588f 100644--- a/app/components/shares/bulk_permission_button_component.html.erb+++ b/app/components/shares/bulk_permission_button_component.html.erb@@ -1,27 +1,33 @@<%=- render(Primer::Alpha::ActionMenu.new(select_variant: :single,- dynamic_label: true,- anchor_align: :end,- color: :subtle,- data: { test_selector: "op-share-dialog-bulk-update-role"})) do |menu|+ render(+ Primer::Alpha::ActionMenu.new(+ select_variant: :single,+ 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|button.with_trailing_action_icon(icon: "triangle-down")"Placeholder"end@available_roles.each do |role_hash|- menu.with_item(label: role_hash[:label],- href: update_path,- method: :patch,- active: false,- form_arguments: {- method: :patch,- name: "role_ids[]",- value: role_hash[:value],- 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|+ menu.with_item(+ label: role_hash[:label],+ href: update_path,+ method: :patch,+ active: false,+ form_arguments: {+ method: :patch,+ name: "role_ids[]",+ value: role_hash[:value],+ 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|item.with_description.with_content(role_hash[:description])endenddiff --git a/app/components/shares/bulk_selection_counter_component.html.erb b/app/components/shares/bulk_selection_counter_component.html.erbindex 37e7bdfdf4c..bb2c778f1c0 100644--- a/app/components/shares/bulk_selection_counter_component.html.erb+++ b/app/components/shares/bulk_selection_counter_component.html.erb@@ -1,11 +1,15 @@<%concat(- render(Primer::Alpha::CheckBox.new(name: "toggle_all",- value: nil,- label: I18n.t("sharing.label_toggle_all"),- visually_hide_label: true,- data: { 'shares--bulk-selection-target': "toggleAll",- action: "shares--bulk-selection#toggle" }))+ render(+ Primer::Alpha::CheckBox.new(+ name: "toggle_all",+ value: nil,+ label: I18n.t("sharing.label_toggle_all"),+ visually_hide_label: true,+ data: { 'shares--bulk-selection-target': "toggleAll",+ action: "shares--bulk-selection#toggle" }+ )+ ))concat(diff --git a/app/components/shares/counter_component.html.erb b/app/components/shares/counter_component.html.erbindex 8b235ba950a..5077a72fb6e 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" }) dorender(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 isdiff --git a/app/components/shares/empty_state_component.html.erb b/app/components/shares/empty_state_component.html.erbindex 64e117e461b..a41d292058c 100644--- a/app/components/shares/empty_state_component.html.erb+++ b/app/components/shares/empty_state_component.html.erb@@ -1,15 +1,15 @@<%= render(Primer::Beta::Blankslate.new) do |component|- component.with_visual_icon(icon: blankslate_config[:icon], size: :medium)- component.with_heading(tag: :h2).with_content(- blankslate_config[:heading_text],- )- component.with_description do- flex_layout do |flex|- flex.with_row(mb: 2) do- render(Primer::Beta::Text.new(color: :subtle)) do- blankslate_config[:description_text]+ component.with_visual_icon(icon: blankslate_config[:icon], size: :medium)+ component.with_heading(tag: :h2).with_content(+ blankslate_config[:heading_text],+ )+ component.with_description do+ flex_layout do |flex|+ flex.with_row(mb: 2) do+ render(Primer::Beta::Text.new(color: :subtle)) do+ blankslate_config[:description_text]+ end+ endendend- end- end-end %>+ end %>diff --git a/app/components/shares/permission_button_component.html.erb b/app/components/shares/permission_button_component.html.erbindex 60cc88a5626..88357a0406d 100644--- a/app/components/shares/permission_button_component.html.erb+++ b/app/components/shares/permission_button_component.html.erb@@ -1,28 +1,36 @@<%=component_wrapper docontent_tag(:div, class: tooltip_wrapper_classes, data: { tooltip: tooltip_message }) do- render(Primer::Alpha::ActionMenu.new(**{ select_variant: :single,- size: :small,- 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",- 'share-id': share.id,- 'active-role-name': permission_name(active_role.id)}) do |button|+ render(+ Primer::Alpha::ActionMenu.new(+ **{ select_variant: :single,+ size: :small,+ 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",+ 'share-id': share.id,+ 'active-role-name': permission_name(active_role.id) }+ ) do |button|button.with_trailing_action_icon(icon: :"triangle-down")permission_name(active_role.id)endstrategy.available_roles.each do |role_hash|- menu.with_item(label: role_hash[:label],- href: update_path,- method: :patch,- active: role_active?(role_hash),- data: { value: role_hash[:value] },- form_arguments: {- method: :patch,- inputs: form_inputs(role_hash[:value])- }) do |item|+ menu.with_item(+ label: role_hash[:label],+ href: update_path,+ method: :patch,+ active: role_active?(role_hash),+ data: { value: role_hash[:value] },+ form_arguments: {+ method: :patch,+ inputs: form_inputs(role_hash[:value])+ }+ ) do |item|item.with_description.with_content(role_hash[:description])endenddiff --git a/app/components/shares/project_queries/empty_state_component.html.erb b/app/components/shares/project_queries/empty_state_component.html.erbindex 64e117e461b..a41d292058c 100644--- a/app/components/shares/project_queries/empty_state_component.html.erb+++ b/app/components/shares/project_queries/empty_state_component.html.erb@@ -1,15 +1,15 @@<%= render(Primer::Beta::Blankslate.new) do |component|- component.with_visual_icon(icon: blankslate_config[:icon], size: :medium)- component.with_heading(tag: :h2).with_content(- blankslate_config[:heading_text],- )- component.with_description do- flex_layout do |flex|- flex.with_row(mb: 2) do- render(Primer::Beta::Text.new(color: :subtle)) do- blankslate_config[:description_text]+ component.with_visual_icon(icon: blankslate_config[:icon], size: :medium)+ component.with_heading(tag: :h2).with_content(+ blankslate_config[:heading_text],+ )+ component.with_description do+ flex_layout do |flex|+ flex.with_row(mb: 2) do+ render(Primer::Beta::Text.new(color: :subtle)) do+ blankslate_config[:description_text]+ end+ endendend- end- end-end %>+ end %>diff --git a/app/components/shares/project_queries/public_flag_component.html.erb b/app/components/shares/project_queries/public_flag_component.html.erbindex 67b4925aa8b..5b952aea94b 100644--- a/app/components/shares/project_queries/public_flag_component.html.erb+++ b/app/components/shares/project_queries/public_flag_component.html.erb@@ -1,20 +1,26 @@<%=container.with_row do- render(Primer::Box.new(border: true,- border_radius: BOX_BORDER_RADIUS,- p: BOX_PADDING)) do+ render(+ Primer::Box.new(+ border: true,+ border_radius: BOX_BORDER_RADIUS,+ p: BOX_PADDING+ )+ ) docontent_tag(:div, class: tooltip_wrapper_classes, data: { tooltip: tooltip_message }) do- render(Primer::Forms::ToggleSwitchForm.new(- name: "publish_project_query",- label: t("sharing.project_queries.public_flag.label", instance_name: Setting.app_title),- caption: t("sharing.project_queries.public_flag.caption"),- src: toggle_public_flag_link,- csrf_token: form_authenticity_token,- status_label_position: :start,- checked: published?,- enabled: can_publish?,- turbo: true- ))+ render(+ Primer::Forms::ToggleSwitchForm.new(+ name: "publish_project_query",+ label: t("sharing.project_queries.public_flag.label", instance_name: Setting.app_title),+ caption: t("sharing.project_queries.public_flag.caption"),+ src: toggle_public_flag_link,+ csrf_token: form_authenticity_token,+ status_label_position: :start,+ checked: published?,+ enabled: can_publish?,+ turbo: true+ )+ )endendenddiff --git a/app/components/users/edit_page_header_component.html.erb b/app/components/users/edit_page_header_component.html.erbindex 3551bd5ecd9..092887dd6af 100644--- a/app/components/users/edit_page_header_component.html.erb+++ b/app/components/users/edit_page_header_component.html.erb@@ -31,26 +31,30 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { @user.name }header.with_breadcrumbs(breadcrumb_items)- header.with_action_button(tag: :a,- mobile_icon: :person,- mobile_label: t(:label_profile),- size: :medium,- href: user_path(@user),- aria: { label: I18n.t(:label_profile) },- title: I18n.t(:label_profile)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :person,+ mobile_label: t(:label_profile),+ size: :medium,+ href: user_path(@user),+ aria: { label: I18n.t(:label_profile) },+ title: I18n.t(:label_profile)+ ) do |button|button.with_leading_visual_icon(icon: :person)t(:label_profile)endif @current_user.allowed_globally?(:create_user) && @current_user.id != @user.id- header.with_action_button(tag: :a,- mobile_icon: :mail,- mobile_label: t(:label_send_invitation),- size: :medium,- href: resend_invitation_user_path(@user),- data: { method: :post },- aria: { label: I18n.t(:label_send_invitation) },- title: I18n.t(:tooltip_resend_invitation)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :mail,+ mobile_label: t(:label_send_invitation),+ size: :medium,+ href: resend_invitation_user_path(@user),+ data: { method: :post },+ aria: { label: I18n.t(:label_send_invitation) },+ title: I18n.t(:tooltip_resend_invitation)+ ) do |button|button.with_leading_visual_icon(icon: :mail)t(:label_send_invitation)end@@ -59,15 +63,17 @@ See COPYRIGHT and LICENSE files for more details.if @current_user.admin?unless @current_user.id == @user.iditerate_user_statusses(@user) do |title, name|- header.with_action_button(tag: :a,- mobile_icon: change_user_status_icons[name],- mobile_label: title,- size: :medium,- name: name,- href: change_status_user_path(@user, { name => "" }),- data: { method: :post },- aria: { label: title },- title: title) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: change_user_status_icons[name],+ mobile_label: title,+ size: :medium,+ name: name,+ href: change_status_user_path(@user, { name => "" }),+ data: { method: :post },+ aria: { label: title },+ title: title+ ) do |button|button.with_leading_visual_icon(icon: change_user_status_icons[name])titleend@@ -75,14 +81,16 @@ See COPYRIGHT and LICENSE files for more details.endif Setting.users_deletable_by_admins?- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: deletion_info_user_path(@user),- aria: { label: I18n.t(:button_delete) },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: deletion_info_user_path(@user),+ aria: { label: I18n.t(:button_delete) },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/app/components/users/hover_card_component.html.erb b/app/components/users/hover_card_component.html.erbindex b143e607afd..3626eebb322 100644--- a/app/components/users/hover_card_component.html.erb+++ b/app/components/users/hover_card_component.html.erb@@ -44,9 +44,13 @@ See COPYRIGHT and LICENSE files for more details.if show_email?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+ render(+ Primer::Beta::Text.new(+ font_size: :small,+ color: :muted,+ data: { test_selector: "user-hover-card-email" }+ )+ ) do@user.mailendend@@ -69,9 +73,13 @@ See COPYRIGHT and LICENSE files for more details.endflex.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+ render(+ Primer::Beta::Button.new(+ tag: :a,+ href: helpers.allowed_management_user_profile_path(@user),+ data: { test_selector: "user-hover-card-profile-btn" }+ )+ ) doI18n.t("users.open_profile")endenddiff --git a/app/components/users/index_page_header_component.html.erb b/app/components/users/index_page_header_component.html.erbindex fb2c24bb392..38b342e6082 100644--- a/app/components/users/index_page_header_component.html.erb+++ b/app/components/users/index_page_header_component.html.erb@@ -6,10 +6,14 @@%><%= t(:label_enterprise_active_users, current: OpenProject::Enterprise.active_user_count, limit: user_limit) %> - <%= render(Primer::Beta::Button.new(scheme: :primary,- size: :small,- tag: :a,- href: OpenProject::Enterprise.upgrade_path,- title: t(:title_enterprise_upgrade))) { t(:button_upgrade) } %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :primary,+ size: :small,+ tag: :a,+ href: OpenProject::Enterprise.upgrade_path,+ title: t(:title_enterprise_upgrade)+ )+ ) { t(:button_upgrade) } %><% end if user_limit %><% end %>diff --git a/app/components/users/index_sub_header_component.html.erb b/app/components/users/index_sub_header_component.html.erbindex 55bbe495833..3a7548f9880 100644--- a/app/components/users/index_sub_header_component.html.erb+++ b/app/components/users/index_sub_header_component.html.erb@@ -1,10 +1,12 @@<%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_user_new) },- title: I18n.t(:label_user_new),- tag: :a,- href: new_user_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_user_new) },+ title: I18n.t(:label_user_new),+ tag: :a,+ href: new_user_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.user")enddiff --git a/app/components/users/profile/attributes_component.html.erb b/app/components/users/profile/attributes_component.html.erbindex 2b96040f1a6..0b0c5144725 100644--- a/app/components/users/profile/attributes_component.html.erb+++ b/app/components/users/profile/attributes_component.html.erb@@ -1,6 +1,6 @@<%=render(Primer::OpenProject::SidePanel::Section.new) do |section|- section.with_title { t(:label_information) }+ section.with_title { t(:label_information) }component_wrapper doflex_layout do |details_container|diff --git a/app/components/users/show_page_header_component.html.erb b/app/components/users/show_page_header_component.html.erbindex 73a8d63c799..b71911afbd6 100644--- a/app/components/users/show_page_header_component.html.erb+++ b/app/components/users/show_page_header_component.html.erb@@ -34,27 +34,31 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs(breadcrumb_items)if @current_user.allowed_globally?(:manage_user)- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_user_path(@user),- aria: { label: I18n.t(:button_edit) },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ href: edit_user_path(@user),+ aria: { label: I18n.t(:button_edit) },+ title: I18n.t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)endendif @current_user.allowed_globally?(:create_user) && @current_user != @user- header.with_action_button(tag: :a,- mobile_icon: :mail,- mobile_label: t(:label_send_invitation),- size: :medium,- href: resend_invitation_user_path(@user),- data: { method: :post },- aria: { label: I18n.t(:label_send_invitation) },- title: I18n.t(:tooltip_resend_invitation)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :mail,+ mobile_label: t(:label_send_invitation),+ size: :medium,+ href: resend_invitation_user_path(@user),+ data: { method: :post },+ aria: { label: I18n.t(:label_send_invitation) },+ title: I18n.t(:tooltip_resend_invitation)+ ) do |button|button.with_leading_visual_icon(icon: :mail)t(:label_send_invitation)enddiff --git a/app/components/work_package_relations_tab/add_work_package_child_dialog_component.html.erb b/app/components/work_package_relations_tab/add_work_package_child_dialog_component.html.erbindex 1aedf05ea03..0851442f363 100644--- a/app/components/work_package_relations_tab/add_work_package_child_dialog_component.html.erb+++ b/app/components/work_package_relations_tab/add_work_package_child_dialog_component.html.erb@@ -1,27 +1,38 @@<%=- render(Primer::Alpha::Dialog.new(title: dialog_title,- size: :large,- id: DIALOG_ID)) do |d|+ render(+ Primer::Alpha::Dialog.new(+ title: dialog_title,+ size: :large,+ id: DIALOG_ID+ )+ ) do |d|d.with_header(variant: :large)d.with_body(classes: body_classes) do- render(WorkPackageRelationsTab::AddWorkPackageChildFormComponent.new(- work_package: @work_package- ))+ render(+ WorkPackageRelationsTab::AddWorkPackageChildFormComponent.new(+ work_package: @work_package+ )+ )endd.with_footer docomponent_collection do |buttons|- buttons.with_component(Primer::ButtonComponent.new(- data: {- 'close-dialog-id': DIALOG_ID- }- )) do+ buttons.with_component(+ Primer::ButtonComponent.new(+ data: {+ 'close-dialog-id': DIALOG_ID+ }+ )+ ) dot("button_cancel")end- buttons.with_component(Primer::ButtonComponent.new(- scheme: :primary,- form: FORM_ID,- data: { turbo: true },- type: :submit)) do+ buttons.with_component(+ Primer::ButtonComponent.new(+ scheme: :primary,+ form: FORM_ID,+ data: { turbo: true },+ type: :submit+ )+ ) dot("button_save")endenddiff --git a/app/components/work_package_relations_tab/index_component.html.erb b/app/components/work_package_relations_tab/index_component.html.erbindex a114b1be1ea..49350866222 100644--- a/app/components/work_package_relations_tab/index_component.html.erb+++ b/app/components/work_package_relations_tab/index_component.html.erb@@ -10,8 +10,12 @@# Prevent the menu from overflowing on Safariaction_bar.with_column(flex_shrink: 0, ml: 2) do- render(Primer::Alpha::ActionMenu.new(test_selector: NEW_RELATION_ACTION_MENU,- menu_id: NEW_RELATION_ACTION_MENU)) do |menu|+ render(+ Primer::Alpha::ActionMenu.new(+ test_selector: NEW_RELATION_ACTION_MENU,+ menu_id: NEW_RELATION_ACTION_MENU+ )+ ) do |menu|menu.with_show_button do |button|button.with_leading_visual_icon(icon: :"plus")button.with_trailing_action_icon(icon: :"triangle-down")@@ -61,11 +65,13 @@items: all_relations) do |relation, visibility|# Render each relation with its visibility- render(WorkPackageRelationsTab::RelationComponent.new(- work_package: work_package,- relation: relation,- visibility: visibility- ))+ render(+ WorkPackageRelationsTab::RelationComponent.new(+ work_package: work_package,+ relation: relation,+ visibility: visibility+ )+ )endendend@@ -84,10 +90,14 @@relation_type: :children,items: all_children) do |child, visibility|- render(WorkPackageRelationsTab::RelationComponent.new(work_package:,- relation: nil,- child:,- visibility: visibility))+ render(+ WorkPackageRelationsTab::RelationComponent.new(+ work_package:,+ relation: nil,+ child:,+ visibility: visibility+ )+ )endendenddiff --git a/app/components/work_package_relations_tab/work_package_relation_dialog_component.html.erb b/app/components/work_package_relations_tab/work_package_relation_dialog_component.html.erbindex 7d436a98c10..772aae95f1d 100644--- a/app/components/work_package_relations_tab/work_package_relation_dialog_component.html.erb+++ b/app/components/work_package_relations_tab/work_package_relation_dialog_component.html.erb@@ -1,26 +1,37 @@<%=- render(Primer::Alpha::Dialog.new(title: dialog_title,- size: :large,- id: DIALOG_ID)) do |d|+ render(+ Primer::Alpha::Dialog.new(+ title: dialog_title,+ size: :large,+ id: DIALOG_ID+ )+ ) do |d|d.with_header(variant: :large)d.with_body(classes: body_classes) do- render(WorkPackageRelationsTab::WorkPackageRelationFormComponent.new(- work_package: @work_package,- relation: @relation- ))+ render(+ WorkPackageRelationsTab::WorkPackageRelationFormComponent.new(+ work_package: @work_package,+ relation: @relation+ )+ )endd.with_footer docomponent_collection do |buttons|- buttons.with_component(Primer::ButtonComponent.new(- data: { 'close-dialog-id': DIALOG_ID }- )) do+ buttons.with_component(+ Primer::ButtonComponent.new(+ data: { 'close-dialog-id': DIALOG_ID }+ )+ ) dot(:button_cancel)end- buttons.with_component(Primer::ButtonComponent.new(- scheme: :primary,- form: FORM_ID,- data: { turbo: true },- type: :submit)) do+ buttons.with_component(+ Primer::ButtonComponent.new(+ scheme: :primary,+ form: FORM_ID,+ data: { turbo: true },+ type: :submit+ )+ ) doif @relation.id.present?t(:button_save)elsediff --git a/app/components/work_packages/activities_tab/journals/empty_component.html.erb b/app/components/work_packages/activities_tab/journals/empty_component.html.erbindex d15d3349b08..220d60d83f7 100644--- a/app/components/work_packages/activities_tab/journals/empty_component.html.erb+++ b/app/components/work_packages/activities_tab/journals/empty_component.html.erb@@ -1,8 +1,11 @@<%=component_wrapper do- render(Primer::Beta::Blankslate.new(- border: true,- data: { test_selector: "op-wp-journals-container-empty"})) do |component|+ render(+ Primer::Beta::Blankslate.new(+ border: true,+ data: { test_selector: "op-wp-journals-container-empty" }+ )+ ) do |component|component.with_visual_icon(icon: :pulse)component.with_heading(tag: :h2).with_content(t("activities.work_packages.activity_tab.no_results_title_text"))component.with_description { t("activities.work_packages.activity_tab.no_results_description_text") }diff --git a/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erb b/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erbindex 2ac07ec089a..02491a66aa0 100644--- a/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erb+++ b/app/components/work_packages/activities_tab/journals/filter_and_sorting_component.html.erb@@ -1,12 +1,13 @@<%=component_wrapper do-flex_layout(justify_content: :space_between) do |container|container.with_column do- render(Primer::Alpha::ActionMenu.new(- select_variant: :single, dynamic_label: true,- data: { "test_selector": "op-wp-journals-filter-menu" }- )) do |menu|+ render(+ Primer::Alpha::ActionMenu.new(+ select_variant: :single, dynamic_label: true,+ data: { "test_selector": "op-wp-journals-filter-menu" }+ )+ ) do |menu|menu.with_show_button do |button|button.with_trailing_action_icon(icon: :"triangle-down")enddiff --git a/app/components/work_packages/activities_tab/journals/index_component.html.erb b/app/components/work_packages/activities_tab/journals/index_component.html.erbindex 9ef8ded4e52..90c0b8aec7a 100644--- a/app/components/work_packages/activities_tab/journals/index_component.html.erb+++ b/app/components/work_packages/activities_tab/journals/index_component.html.erb@@ -6,8 +6,10 @@classes: "work-packages-activities-tab-journals-index-component--journals-inner-container",mb: inner_container_margin_bottom) do- flex_layout(id: insert_target_modifier_id,- data: { test_selector: "op-wp-journals-container" }) do |journals_index_container|+ flex_layout(+ id: insert_target_modifier_id,+ data: { test_selector: "op-wp-journals-container" }+ ) do |journals_index_container|if empty_state?journals_index_container.with_row(mt: 2, mb: 3) dorender(@@ -27,10 +29,12 @@if record.is_a?(Changeset)render(WorkPackages::ActivitiesTab::Journals::RevisionComponent.new(changeset: record, filter:))else- render(WorkPackages::ActivitiesTab::Journals::ItemComponent.new(- journal: record, filter:,- grouped_emoji_reactions: wp_journals_grouped_emoji_reactions[record.id]- ))+ render(+ WorkPackages::ActivitiesTab::Journals::ItemComponent.new(+ journal: record, filter:,+ grouped_emoji_reactions: wp_journals_grouped_emoji_reactions[record.id]+ )+ )endendend@@ -57,10 +61,12 @@if record.is_a?(Changeset)render(WorkPackages::ActivitiesTab::Journals::RevisionComponent.new(changeset: record, filter:))else- render(WorkPackages::ActivitiesTab::Journals::ItemComponent.new(- journal: record, filter:,- grouped_emoji_reactions: wp_journals_grouped_emoji_reactions[record.id]- ))+ render(+ WorkPackages::ActivitiesTab::Journals::ItemComponent.new(+ journal: record, filter:,+ grouped_emoji_reactions: wp_journals_grouped_emoji_reactions[record.id]+ )+ )endendenddiff --git a/app/components/work_packages/activities_tab/journals/item_component.html.erb b/app/components/work_packages/activities_tab/journals/item_component.html.erbindex 7b0bffa9dd3..96a6f9a3bb1 100644--- a/app/components/work_packages/activities_tab/journals/item_component.html.erb+++ b/app/components/work_packages/activities_tab/journals/item_component.html.erb@@ -1,27 +1,35 @@<%=component_wrapper(data: wrapper_data_attributes, class: "work-packages-activities-tab-journals-item-component") do- flex_layout(data: {- test_selector: "op-wp-journal-entry-#{journal.id}"- }) do |journal_container|+ flex_layout(+ data: {+ test_selector: "op-wp-journal-entry-#{journal.id}"+ }+ ) do |journal_container|if show_comment_container?journal_container.with_row do- render(border_box_container(- padding: :condensed,- "aria-label": I18n.t("activities.work_packages.activity_tab.commented"),- data: {- "anchor-activity-id": journal.sequence_version,- "anchor-comment-id": journal.id,- }- )) do |border_box_component|+ render(+ border_box_container(+ padding: :condensed,+ "aria-label": I18n.t("activities.work_packages.activity_tab.commented"),+ data: {+ "anchor-activity-id": journal.sequence_version,+ "anchor-comment-id": journal.id,+ }+ )+ ) do |border_box_component|border_box_component.with_header(px: 2, py: 1, data: { test_selector: "op-journal-notes-header" }) doflex_layout(align_items: :center, justify_content: :space_between) do |header_container|- header_container.with_column(flex_layout: true,- classes: "work-packages-activities-tab-journals-item-component--header-start-container ellipsis") do |header_start_container|+ header_container.with_column(+ flex_layout: true,+ classes: "work-packages-activities-tab-journals-item-component--header-start-container ellipsis"+ ) do |header_start_container|header_start_container.with_column(mr: 2) dorender Users::AvatarComponent.new(user: journal.user, show_name: false, size: :mini)end- header_start_container.with_column(mr: 1, flex_layout: true,- classes: "work-packages-activities-tab-journals-item-component--user-name-container hidden-for-desktop") do |user_name_container|+ header_start_container.with_column(+ mr: 1, flex_layout: true,+ classes: "work-packages-activities-tab-journals-item-component--user-name-container hidden-for-desktop"+ ) do |user_name_container|user_name_container.with_row(classes: "work-packages-activities-tab-journals-item-component--user-name ellipsis") dotruncated_user_name(journal.user)end@@ -29,20 +37,22 @@render(Primer::Beta::Text.new(font_size: :small, color: :subtle, mt: 1)) { format_time(journal.created_at) }endend- header_start_container.with_column(mr: 1,- classes: "work-packages-activities-tab-journals-item-component--user-name ellipsis hidden-for-mobile") do+ header_start_container.with_column(+ mr: 1,+ classes: "work-packages-activities-tab-journals-item-component--user-name ellipsis hidden-for-mobile"+ ) dotruncated_user_name(journal.user, hover_card: true)endif journal.initial?- header_start_container.with_column(- mr: 1,- classes: "work-packages-activities-tab-journals-item-component-details--journal-type hidden-for-mobile"- ) do- render(Primer::Beta::Text.new(font_size: :small, color: :subtle, mt: 1)) do- I18n.t("activities.work_packages.activity_tab.created_on")- end+ header_start_container.with_column(+ mr: 1,+ classes: "work-packages-activities-tab-journals-item-component-details--journal-type hidden-for-mobile"+ ) do+ render(Primer::Beta::Text.new(font_size: :small, color: :subtle, mt: 1)) do+ I18n.t("activities.work_packages.activity_tab.created_on")endend+ endheader_start_container.with_column(mr: 1, classes: "hidden-for-mobile") doif OpenProject::FeatureDecisions.work_package_comment_id_url_active?activity_anchor_link(journal) { journal_updated_at_formatted_time(journal) }@@ -54,12 +64,14 @@header_container.with_column(flex_layout: true, align_items: :center) do |header_end_container|if has_unread_notifications?header_end_container.with_column(mr: 2, pt: 1) do- render(Primer::Beta::Octicon.new(- :"dot-fill", # color is set via CSS as requested by UI/UX Team- classes: "work-packages-activities-tab-journals-item-component--notification-dot-icon",- size: :medium,- data: { test_selector: "op-journal-unread-notification", "op-ian-center-update-immediate": true }- ))+ render(+ Primer::Beta::Octicon.new(+ :"dot-fill", # color is set via CSS as requested by UI/UX Team+ classes: "work-packages-activities-tab-journals-item-component--notification-dot-icon",+ size: :medium,+ data: { test_selector: "op-journal-unread-notification", "op-ian-center-update-immediate": true }+ )+ )endend@@ -69,12 +81,16 @@endend- header_end_container.with_column(ml: 1,- classes: "work-packages-activities-tab-journals-item-component--action-menu") do+ header_end_container.with_column(+ ml: 1,+ classes: "work-packages-activities-tab-journals-item-component--action-menu"+ ) dorender(Primer::Alpha::ActionMenu.new(data: { test_selector: "op-wp-journal-#{journal.id}-action-menu" })) do |menu|- menu.with_show_button(icon: "kebab-horizontal",- "aria-label": I18n.t(:button_actions),- scheme: :invisible)+ menu.with_show_button(+ icon: "kebab-horizontal",+ "aria-label": I18n.t(:button_actions),+ scheme: :invisible+ )copy_url_action_item(menu)edit_action_item(menu) if allowed_to_edit?quote_action_item(menu) if journal.notes.present? && allowed_to_quote?@@ -94,8 +110,12 @@elsecase statewhen :show- render(WorkPackages::ActivitiesTab::Journals::ItemComponent::Show.new(journal:, filter:,- grouped_emoji_reactions:))+ render(+ WorkPackages::ActivitiesTab::Journals::ItemComponent::Show.new(+ journal:, filter:,+ grouped_emoji_reactions:+ )+ )when :editrender(WorkPackages::ActivitiesTab::Journals::ItemComponent::Edit.new(journal:, filter:))end@@ -105,8 +125,12 @@endendjournal_container.with_row do- render(WorkPackages::ActivitiesTab::Journals::ItemComponent::Details.new(journal:,- has_unread_notifications: notification_on_details?, filter:))+ render(+ WorkPackages::ActivitiesTab::Journals::ItemComponent::Details.new(+ journal:,+ has_unread_notifications: notification_on_details?, filter:+ )+ )endendenddiff --git a/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb b/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erbindex 95c076c3187..3bb4f7aa7e9 100644--- a/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb+++ b/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb@@ -1,11 +1,13 @@<%=component_wrapper do- render(Primer::Alpha::Overlay.new(- title: I18n.t("reactions.action_title"),- padding: :condensed,- anchor_side: :outside_top,- visually_hide_title: true- )) do |overlay|+ render(+ Primer::Alpha::Overlay.new(+ title: I18n.t("reactions.action_title"),+ padding: :condensed,+ anchor_side: :outside_top,+ visually_hide_title: true+ )+ ) do |overlay|overlay.with_show_button(icon: "smiley","aria-label": I18n.t("reactions.add_reaction"),@@ -18,21 +20,23 @@flex_layout(flex_wrap: :wrap, classes: "op-add-reactions-overlay") do |add_reactions_container|EmojiReaction.available_emoji_reactions.each do |emoji, reaction|add_reactions_container.with_column(mr: 2) do- render(Primer::Beta::Button.new(- scheme: button_scheme(reaction),- color: :default,- bg: counter_color(reaction),- id: "overlay-#{journal.id}-#{reaction}",- test_selector: "overlay-reaction-#{reaction}",- tag: :a,- href: href(reaction:),- data: {- turbo_stream: true,- turbo_method: :put,- "work-packages--activities-tab--index-target": "reactionButton",- },- aria: { label: I18n.t("reactions.react_with", reaction: reaction.to_s.humanize(capitalize: false)) }- )) do+ render(+ Primer::Beta::Button.new(+ scheme: button_scheme(reaction),+ color: :default,+ bg: counter_color(reaction),+ id: "overlay-#{journal.id}-#{reaction}",+ test_selector: "overlay-reaction-#{reaction}",+ tag: :a,+ href: href(reaction:),+ data: {+ turbo_stream: true,+ turbo_method: :put,+ "work-packages--activities-tab--index-target": "reactionButton",+ },+ aria: { label: I18n.t("reactions.react_with", reaction: reaction.to_s.humanize(capitalize: false)) }+ )+ ) doemojiendenddiff --git a/app/components/work_packages/activities_tab/journals/item_component/edit.html.erb b/app/components/work_packages/activities_tab/journals/item_component/edit.html.erbindex 3e06b98ddd1..45a6850f905 100644--- a/app/components/work_packages/activities_tab/journals/item_component/edit.html.erb+++ b/app/components/work_packages/activities_tab/journals/item_component/edit.html.erb@@ -14,15 +14,17 @@endform_container.with_row(flex_layout: true, mt: 3, justify_content: :flex_end) do |submit_container|submit_container.with_column(mr: 2) do- render(Primer::Beta::Button.new(- scheme: :secondary,- size: :medium,- tag: :a,- href: cancel_edit_work_package_activity_path(work_package.id, id: journal.id, filter:),- data: { turbo_stream: true }- )) do- t("button_cancel")- end+ render(+ Primer::Beta::Button.new(+ scheme: :secondary,+ size: :medium,+ tag: :a,+ href: cancel_edit_work_package_activity_path(work_package.id, id: journal.id, filter:),+ data: { turbo_stream: true }+ )+ ) do+ t("button_cancel")+ endendsubmit_container.with_column dorender(WorkPackages::ActivitiesTab::Journals::Submit.new(f))diff --git a/app/components/work_packages/activities_tab/journals/new_component.html.erb b/app/components/work_packages/activities_tab/journals/new_component.html.erbindex 3cb7db5a178..6cbb764660d 100644--- a/app/components/work_packages/activities_tab/journals/new_component.html.erb+++ b/app/components/work_packages/activities_tab/journals/new_component.html.erb@@ -5,10 +5,12 @@display: button_row_display_value,data: {"work-packages--activities-tab--index-target": "buttonRow"- }) do+ }+ ) doflex_layout(justify_content: :space_between) do |button_row|button_row.with_column(classes: "work-packages-activities-tab-journals-new-component--input-trigger-column", mr: 2) do- render(Primer::Beta::Button.new(+ render(+ Primer::Beta::Button.new(text_align: :left,scheme: :default,size: :medium,@@ -17,17 +19,20 @@"action": "click->work-packages--activities-tab--index#showForm dragover->work-packages--activities-tab--index#showForm","test_selector": "op-open-work-package-journal-form-trigger"}- )) do+ )+ ) dorender(Primer::Beta::Text.new(color: :muted, font_weight: :normal)) { t("activities.work_packages.activity_tab.label_type_to_comment") }endendbutton_row.with_column do- render(Primer::Beta::IconButton.new(+ render(+ Primer::Beta::IconButton.new(scheme: :default,icon: :"paper-airplane","aria-label": t("activities.work_packages.activity_tab.label_submit_comment"),disabled: true- ))+ )+ )endendend@@ -56,16 +61,18 @@render(WorkPackages::ActivitiesTab::Journals::NotesForm.new(f))endform_container.with_column do- render(Primer::Beta::IconButton.new(- scheme: :default,- icon: :"paper-airplane",- "aria-label": t("activities.work_packages.activity_tab.label_submit_comment"),- type: :submit,- data: {- "test_selector": "op-submit-work-package-journal-form",- "work-packages--activities-tab--index-target": "formSubmitButton"- }- ))+ render(+ Primer::Beta::IconButton.new(+ scheme: :default,+ icon: :"paper-airplane",+ "aria-label": t("activities.work_packages.activity_tab.label_submit_comment"),+ type: :submit,+ data: {+ "test_selector": "op-submit-work-package-journal-form",+ "work-packages--activities-tab--index-target": "formSubmitButton"+ }+ )+ )endendenddiff --git a/app/components/work_packages/activities_tab/journals/revision_component.html.erb b/app/components/work_packages/activities_tab/journals/revision_component.html.erbindex 3529fe071d0..54d7cc44372 100644--- a/app/components/work_packages/activities_tab/journals/revision_component.html.erb+++ b/app/components/work_packages/activities_tab/journals/revision_component.html.erb@@ -1,63 +1,81 @@<%=component_wrapper(class: "work-packages-activities-tab-journals-item-component") do- flex_layout(data: {- test_selector: "op-wp-revision-entry-#{changeset.id}"- }) do |revision_container|+ flex_layout(+ data: {+ test_selector: "op-wp-revision-entry-#{changeset.id}"+ }+ ) do |revision_container|revision_container.with_row do- render(border_box_container(- id: "activity-anchor-r#{changeset.revision}",- padding: :condensed,- "aria-label": I18n.t("activities.work_packages.activity_tab.commented")- )) do |border_box_component|+ render(+ border_box_container(+ id: "activity-anchor-r#{changeset.revision}",+ padding: :condensed,+ "aria-label": I18n.t("activities.work_packages.activity_tab.commented")+ )+ ) do |border_box_component|border_box_component.with_header(px: 2, py: 1, data: { test_selector: "op-revision-header" }) doflex_layout(align_items: :center, justify_content: :space_between, classes: "work-packages-activities-tab-revision-component--header") do |header_container|- header_container.with_column(flex_layout: true,- classes: "work-packages-activities-tab-journals-item-component--header-start-container ellipsis") do |header_start_container|+ header_container.with_column(+ flex_layout: true,+ classes: "work-packages-activities-tab-journals-item-component--header-start-container ellipsis"+ ) do |header_start_container|header_start_container.with_column(mr: 2) doif changeset.userrender(Users::AvatarComponent.new(user: changeset.user, show_name: false, size: :mini))endend- header_start_container.with_column(mr: 1, flex_layout: true,- classes: "work-packages-activities-tab-journals-item-component--user-name-container hidden-for-desktop") do |user_name_container|+ header_start_container.with_column(+ mr: 1, flex_layout: true,+ classes: "work-packages-activities-tab-journals-item-component--user-name-container hidden-for-desktop"+ ) do |user_name_container|user_name_container.with_row(classes: "work-packages-activities-tab-journals-item-component--user-name ellipsis") dorender_user_nameenduser_name_container.with_row dorender(Primer::Beta::Text.new(font_size: :small, color: :subtle, mr: 1)) do- committed_text = render(Primer::Beta::Link.new(- href: revision_url,- scheme: :secondary,- underline: false,- font_size: :small,- target: "_blank"- )) do+ committed_text = render(+ Primer::Beta::Link.new(+ href: revision_url,+ scheme: :secondary,+ underline: false,+ font_size: :small,+ target: "_blank"+ )+ ) doI18n.t("js.label_committed_link", revision_identifier: short_revision)end- I18n.t("js.label_committed_at",- committed_revision_link: committed_text.html_safe,- date: format_time(changeset.committed_on)).html_safe+ I18n.t(+ "js.label_committed_at",+ committed_revision_link: committed_text.html_safe,+ date: format_time(changeset.committed_on)+ ).html_safeendendend- header_start_container.with_column(mr: 1,- classes: "work-packages-activities-tab-journals-item-component--user-name ellipsis hidden-for-mobile") do+ header_start_container.with_column(+ mr: 1,+ classes: "work-packages-activities-tab-journals-item-component--user-name ellipsis hidden-for-mobile"+ ) dorender_user_nameendheader_start_container.with_column(mr: 1, classes: "hidden-for-mobile") dorender(Primer::Beta::Text.new(font_size: :small, color: :subtle, mr: 1)) do- committed_text = render(Primer::Beta::Link.new(- href: revision_url,- scheme: :secondary,- underline: false,- font_size: :small,- target: "_blank"- )) do+ committed_text = render(+ Primer::Beta::Link.new(+ href: revision_url,+ scheme: :secondary,+ underline: false,+ font_size: :small,+ target: "_blank"+ )+ ) doI18n.t("js.label_committed_link", revision_identifier: short_revision)end- I18n.t("js.label_committed_at",- committed_revision_link: committed_text.html_safe,- date: format_time(changeset.committed_on)).html_safe+ I18n.t(+ "js.label_committed_at",+ committed_revision_link: committed_text.html_safe,+ date: format_time(changeset.committed_on)+ ).html_safeendendenddiff --git a/app/components/work_packages/details/tab_component.html.erb b/app/components/work_packages/details/tab_component.html.erbindex 7a2f8c76dfb..9e3d051f7e8 100644--- a/app/components/work_packages/details/tab_component.html.erb+++ b/app/components/work_packages/details/tab_component.html.erb@@ -1,35 +1,46 @@<%=- flex_layout(classes: "op-work-package-details-tab-component", data: {- "application-target": "dynamic",- controller: "work-packages--details--tabs"- }) do |flex|+ flex_layout(+ classes: "op-work-package-details-tab-component", data: {+ "application-target": "dynamic",+ controller: "work-packages--details--tabs"+ }+ ) do |flex|flex.with_column(classes: "op-work-package-details-tab-component--action") do- render(Primer::Beta::IconButton.new(icon: :"chevron-left",- tag: :a,- classes: "hidden-for-tablet",- scheme: :invisible,- data: {- action: "click->work-packages--details--tabs#scrollLeft"- },- aria: { label: I18n.t(:label_scroll_left) }))+ render(+ Primer::Beta::IconButton.new(+ icon: :"chevron-left",+ tag: :a,+ classes: "hidden-for-tablet",+ scheme: :invisible,+ data: {+ action: "click->work-packages--details--tabs#scrollLeft"+ },+ aria: { label: I18n.t(:label_scroll_left) }+ )+ )endflex.with_column(flex: 1, classes: "op-work-package-details-tab-component--tabs", test_selector: "wp-details-tab-component--tabs") do- render(Primer::Alpha::UnderlineNav.new(align: :left,- label: "Tabs",- data: {- "work-packages--details--tabs-target": "underlineNav",- })) do |component|+ render(+ Primer::Alpha::UnderlineNav.new(+ align: :left,+ label: "Tabs",+ data: {+ "work-packages--details--tabs-target": "underlineNav",+ }+ )+ ) do |component|menu_items.each do |node|- component.with_tab(selected: @tab == node.name,- href: helpers.url_for_with_params(**node.url),- test_selector: "wp-details-tab-component--tab-#{node.name}",- data: {- turbo: true,- turbo_stream: true,- turbo_action: "replace",- "work-packages--details--tabs-target": @tab == node.name ? "activeElement" : ""- }+ component.with_tab(+ selected: @tab == node.name,+ href: helpers.url_for_with_params(**node.url),+ test_selector: "wp-details-tab-component--tab-#{node.name}",+ data: {+ turbo: true,+ turbo_stream: true,+ turbo_action: "replace",+ "work-packages--details--tabs-target": @tab == node.name ? "activeElement" : ""+ }) do |c|c.with_text { t("js.work_packages.tabs.#{node.name}") }count = node.badge(work_package:).to_i@@ -40,35 +51,47 @@endflex.with_column(classes: "op-work-package-details-tab-component--action") do- render(Primer::Beta::IconButton.new(icon: :"chevron-right",- tag: :a,- classes: "hidden-for-tablet",- scheme: :invisible,- data: {- action: "click->work-packages--details--tabs#scrollRight"- },- aria: { label: I18n.t(:label_scroll_right) }))+ render(+ Primer::Beta::IconButton.new(+ icon: :"chevron-right",+ tag: :a,+ classes: "hidden-for-tablet",+ scheme: :invisible,+ data: {+ action: "click->work-packages--details--tabs#scrollRight"+ },+ aria: { label: I18n.t(:label_scroll_right) }+ )+ )endflex.with_column(classes: "op-work-package-details-tab-component--action") do- render(Primer::Beta::IconButton.new(icon: :"screen-full",- tag: :a,- classes: "hidden-for-small-laptops",- href: work_package_path(work_package.id, full_screen_tab),- target: "_top",- scheme: :invisible,- test_selector: "wp-details-tab-component--full-screen",- aria: { label: I18n.t("js.button_show_fullscreen") }))+ render(+ Primer::Beta::IconButton.new(+ icon: :"screen-full",+ tag: :a,+ classes: "hidden-for-small-laptops",+ href: work_package_path(work_package.id, full_screen_tab),+ target: "_top",+ scheme: :invisible,+ test_selector: "wp-details-tab-component--full-screen",+ aria: { label: I18n.t("js.button_show_fullscreen") }+ )+ )endflex.with_column(classes: "op-work-package-details-tab-component--action") do- render(Primer::Beta::IconButton.new(icon: :x,- tag: :a,- href: base_route,- data: { turbo: true, target: "_top", turbo_action: "advance" },- scheme: :invisible,- test_selector: "wp-details-tab-component--close",- aria: { label: I18n.t(:button_close) }))+ render(+ Primer::Beta::IconButton.new(+ icon: :x,+ tag: :a,+ href: base_route,+ data: { turbo: true, target: "_top", turbo_action: "advance" },+ scheme: :invisible,+ test_selector: "wp-details-tab-component--close",+ aria: { label: I18n.t(:button_close) }+ )+ )endend%>diff --git a/app/components/work_packages/exports/csv/export_settings_component.html.erb b/app/components/work_packages/exports/csv/export_settings_component.html.erbindex dddd90a2649..387bbccad53 100644--- a/app/components/work_packages/exports/csv/export_settings_component.html.erb+++ b/app/components/work_packages/exports/csv/export_settings_component.html.erb@@ -1,20 +1,23 @@<%= flex_layout do |container| %><%= container.with_row do |_columns| %><%= render WorkPackages::Exports::ColumnSelectionComponent.new(- query,- "columns-select-export-csv",- I18n.t("export.dialog.columns.input_caption_table")- ) %>+ query,+ "columns-select-export-csv",+ I18n.t("export.dialog.columns.input_caption_table")+ ) %><% end %><%= container.with_row do |_csv_include_description| %><%= render OpenProject::Common::DividerComponent.new %>- <%= render(Primer::Alpha::CheckBox.new(- id: "show_descriptions_csv",- name: "show_descriptions",- value: "true",- unchecked_value: "false",- label: I18n.t("export.dialog.xls.include_descriptions.label"),- caption: I18n.t("export.dialog.xls.include_descriptions.caption"),- visually_hide_label: false)) %>+ <%= render(+ Primer::Alpha::CheckBox.new(+ id: "show_descriptions_csv",+ name: "show_descriptions",+ value: "true",+ unchecked_value: "false",+ label: I18n.t("export.dialog.xls.include_descriptions.label"),+ caption: I18n.t("export.dialog.xls.include_descriptions.caption"),+ visually_hide_label: false+ )+ ) %><% end %><% end %>diff --git a/app/components/work_packages/exports/modal_dialog_component.html.erb b/app/components/work_packages/exports/modal_dialog_component.html.erbindex e4469f69b9d..10f597cb27f 100644--- a/app/components/work_packages/exports/modal_dialog_component.html.erb+++ b/app/components/work_packages/exports/modal_dialog_component.html.erb@@ -1,34 +1,37 @@-<%= render(Primer::Alpha::Dialog.new(- title: I18n.t("export.dialog.title"),- size: :xlarge,- id: MODAL_ID,- data: {- "application-target": "dynamic",- controller: "work-packages--export--dialog"- }-)) do |dialog| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: I18n.t("export.dialog.title"),+ size: :xlarge,+ id: MODAL_ID,+ data: {+ "application-target": "dynamic",+ controller: "work-packages--export--dialog"+ }+ )+ ) do |dialog| %><% dialog.with_header(variant: :large) %><% 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|- export_formats_settings.each do |format|- component.with_item(- label: format[:label], icon: format[:icon], selected: format[:selected],- data: {- "work-packages--export--dialog-format-param": format[:id],- action: "click:segmented-control#select click->work-packages--export--dialog#formatChanged"- })- end- end %>+ export_formats_settings.each do |format|+ component.with_item(+ label: format[:label], icon: format[:icon], selected: format[:selected],+ data: {+ "work-packages--export--dialog-format-param": format[:id],+ action: "click:segmented-control#select click->work-packages--export--dialog#formatChanged"+ }+ )+ end+ end %><%= render OpenProject::Common::DividerComponent.new %><% end %><% export_formats_settings.each do |format| %><% modal_body.with_row(- classes: format[:selected] ? nil : "d-none",- data: { format: format[:id], "work-packages--export--dialog-target": "formatTab" }- ) do |_format_tabs| %>+ classes: format[:selected] ? nil : "d-none",+ data: { format: format[:id], "work-packages--export--dialog-target": "formatTab" }+ ) do |_format_tabs| %><%= primer_form_with(url: export_format_url(format[:id]),id: "#{EXPORT_FORM_ID}-#{format[:id]}",@@ -48,12 +51,15 @@<% end %><% dialog.with_footer do %><%= render(Primer::ButtonComponent.new(data: { "close-dialog-id": MODAL_ID })) { I18n.t(:button_cancel) } %>- <%= render(Primer::ButtonComponent.new(- data: {- "close-dialog-id": MODAL_ID,- "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") } %>+ <%= render(+ Primer::ButtonComponent.new(+ data: {+ "close-dialog-id": MODAL_ID,+ "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") } %><% end %><% end %>diff --git a/app/components/work_packages/exports/pdf/export_settings_component.html.erb b/app/components/work_packages/exports/pdf/export_settings_component.html.erbindex adfaedd9d96..aa3ed8093c3 100644--- a/app/components/work_packages/exports/pdf/export_settings_component.html.erb+++ b/app/components/work_packages/exports/pdf/export_settings_component.html.erb@@ -1,35 +1,43 @@<%=- flex_layout(data: {- "application-target": "dynamic",- controller: "work-packages--export--pdf--settings"- }) do |container|+ flex_layout(+ data: {+ "application-target": "dynamic",+ controller: "work-packages--export--pdf--settings"+ }+ ) do |container|%><%= container.with_row do %>- <%= render(Primer::Alpha::RadioButtonGroup.new(- full_width: true,- name: "pdf_export_type",- label: I18n.t("export.dialog.pdf.export_type.label"))) do |component|- pdf_export_types.each do |entry|- component.radio_button(label: entry[:label],- value: entry[:value],- checked: current_pdf_export_type == entry[:value],- disabled: entry[:disabled] ? true : nil,- data: {- "work-packages--export--pdf--settings-name-param": entry[:value],- action: "work-packages--export--pdf--settings#typeChanged"- },- caption: entry[:caption])- end- end %>+ <%= render(+ Primer::Alpha::RadioButtonGroup.new(+ full_width: true,+ name: "pdf_export_type",+ label: I18n.t("export.dialog.pdf.export_type.label")+ )+ ) do |component|+ pdf_export_types.each do |entry|+ component.radio_button(+ label: entry[:label],+ value: entry[:value],+ checked: current_pdf_export_type == entry[:value],+ disabled: entry[:disabled] ? true : nil,+ data: {+ "work-packages--export--pdf--settings-name-param": entry[:value],+ action: "work-packages--export--pdf--settings#typeChanged"+ },+ caption: entry[:caption]+ )+ end+ end %><%= render OpenProject::Common::DividerComponent.new %><% end %><% pdf_export_types.reject { |entry| entry[:disabled] }.each do |entry| %><%= container.with_row(- classes: current_pdf_export_type == entry[:value] ? nil : "d-none",- data: {- "pdf-export-type": entry[:value],- "work-packages--export--pdf--settings-target": "fields"- }) do |_pdf_export_type| %>+ classes: current_pdf_export_type == entry[:value] ? nil : "d-none",+ data: {+ "pdf-export-type": entry[:value],+ "work-packages--export--pdf--settings-target": "fields"+ }+ ) do |_pdf_export_type| %><%= render(entry[:component].new(query)) %><% 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.erbindex 694ac5c7cee..e57594e76f5 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@@ -1,11 +1,11 @@<%= flex_layout do |container| %><% container.with_row do |_columns| %><%= render WorkPackages::Exports::ColumnSelectionComponent.new(- query,- "columns-select-export-pdf-report",- I18n.t("export.dialog.columns.input_caption_report"),- I18n.t("export.dialog.columns.input_label_report")- ) %>+ query,+ "columns-select-export-pdf-report",+ I18n.t("export.dialog.columns.input_caption_report"),+ I18n.t("export.dialog.columns.input_label_report")+ ) %><% end %><% container.with_row do |_columns| %><%= render OpenProject::Common::DividerComponent.new %>@@ -27,12 +27,16 @@<% end %><%= container.with_row do |_pdf_report_images| %><%= render OpenProject::Common::DividerComponent.new %>- <%= render(Primer::Alpha::CheckBox.new(name: "show_images",- checked: true,- value: "true",- unchecked_value: "false",- label: I18n.t("export.dialog.pdf.include_images.label"),- caption: I18n.t("export.dialog.pdf.include_images.caption"),- visually_hide_label: false)) %>+ <%= render(+ Primer::Alpha::CheckBox.new(+ name: "show_images",+ checked: true,+ value: "true",+ unchecked_value: "false",+ label: I18n.t("export.dialog.pdf.include_images.label"),+ caption: I18n.t("export.dialog.pdf.include_images.caption"),+ visually_hide_label: false+ )+ ) %><% end %><% end %>diff --git a/app/components/work_packages/exports/pdf/table/export_settings_component.html.erb b/app/components/work_packages/exports/pdf/table/export_settings_component.html.erbindex 40cd43cd9ee..64eb44bb3e7 100644--- a/app/components/work_packages/exports/pdf/table/export_settings_component.html.erb+++ b/app/components/work_packages/exports/pdf/table/export_settings_component.html.erb@@ -1,5 +1,5 @@<%= render WorkPackages::Exports::ColumnSelectionComponent.new(- query,- "columns-select-export-pdf-table",- I18n.t("export.dialog.columns.input_caption_table")-) %>+ query,+ "columns-select-export-pdf-table",+ I18n.t("export.dialog.columns.input_caption_table")+ ) %>diff --git a/app/components/work_packages/exports/xls/export_settings_component.html.erb b/app/components/work_packages/exports/xls/export_settings_component.html.erbindex 802b8fc6e67..7077876b9c9 100644--- a/app/components/work_packages/exports/xls/export_settings_component.html.erb+++ b/app/components/work_packages/exports/xls/export_settings_component.html.erb@@ -1,31 +1,37 @@<%= flex_layout do |container| %><%= container.with_row do |_columns| %><%= render WorkPackages::Exports::ColumnSelectionComponent.new(- query,- "columns-select-export-xls",- I18n.t("export.dialog.columns.input_caption_table")- ) %>+ query,+ "columns-select-export-xls",+ I18n.t("export.dialog.columns.input_caption_table")+ ) %><% end %><%= container.with_row do |_xls_include_relations| %><%= render OpenProject::Common::DividerComponent.new %>- <%= render(Primer::Alpha::CheckBox.new(- id: "show_relations_xls",- name: "show_relations",- value: "true",- unchecked_value: "false",- label: I18n.t("export.dialog.xls.include_relations.label"),- caption: I18n.t("export.dialog.xls.include_relations.caption"),- visually_hide_label: false)) %>+ <%= render(+ Primer::Alpha::CheckBox.new(+ id: "show_relations_xls",+ name: "show_relations",+ value: "true",+ unchecked_value: "false",+ label: I18n.t("export.dialog.xls.include_relations.label"),+ caption: I18n.t("export.dialog.xls.include_relations.caption"),+ visually_hide_label: false+ )+ ) %><% end %><%= container.with_row do |_xls_include_description| %><%= render OpenProject::Common::DividerComponent.new %>- <%= render(Primer::Alpha::CheckBox.new(- id: "show_descriptions_xls",- name: "show_descriptions",- value: "true",- unchecked_value: "false",- label: I18n.t("export.dialog.xls.include_descriptions.label"),- caption: I18n.t("export.dialog.xls.include_descriptions.caption"),- visually_hide_label: false)) %>+ <%= render(+ Primer::Alpha::CheckBox.new(+ id: "show_descriptions_xls",+ name: "show_descriptions",+ value: "true",+ unchecked_value: "false",+ label: I18n.t("export.dialog.xls.include_descriptions.label"),+ caption: I18n.t("export.dialog.xls.include_descriptions.caption"),+ visually_hide_label: false+ )+ ) %><% end %><% end %>diff --git a/app/components/work_packages/hover_card_component.html.erb b/app/components/work_packages/hover_card_component.html.erbindex 096bd5b7a57..f729d62d327 100644--- a/app/components/work_packages/hover_card_component.html.erb+++ b/app/components/work_packages/hover_card_component.html.erb@@ -16,12 +16,16 @@grid.with_area(:assignee, tag: :div, font_size: :small, color: :muted) doif @assignee.present?# Render the avatar without a hover card => opening another hover card within a hover card is not supported- render(Users::AvatarComponent.new(user: @assignee,- show_name: true,- link: false,- size: :mini,- classes: "op-wp-hover-card--principal",- hover_card: { active: false }))+ render(+ Users::AvatarComponent.new(+ user: @assignee,+ show_name: true,+ link: false,+ size: :mini,+ classes: "op-wp-hover-card--principal",+ hover_card: { active: false }+ )+ )elseconcat(render(Primer::Beta::Octicon.new(icon: :person, mr: 1)))concat(render(Primer::Beta::Text.new) { "-" })diff --git a/app/components/work_packages/info_line_component.html.erb b/app/components/work_packages/info_line_component.html.erbindex a62250927f1..509a6b07bf8 100644--- a/app/components/work_packages/info_line_component.html.erb+++ b/app/components/work_packages/info_line_component.html.erb@@ -3,14 +3,16 @@flex.with_column(mr: 2) dorender(WorkPackages::HighlightedTypeComponent.new(work_package: @work_package, font_size: :small))end- flex.with_column(mr: 2) do- render(Primer::Beta::Link.new(- href: url_for(controller: "/work_packages", action: "show", id: @work_package),- title: @work_package.subject,- target: :_blank,- font_size: @font_size,- color: :muted- )) { "##{@work_package.id}" }+ flex.with_column(mr: 2) do+ render(+ Primer::Beta::Link.new(+ href: url_for(controller: "/work_packages", action: "show", id: @work_package),+ title: @work_package.subject,+ target: :_blank,+ font_size: @font_size,+ color: :muted+ )+ ) { "##{@work_package.id}" }endflex.with_column dorender WorkPackages::StatusBadgeComponent.new(status: @work_package.status)diff --git a/app/components/work_packages/progress/status_based/modal_body_component.html.erb b/app/components/work_packages/progress/status_based/modal_body_component.html.erbindex 602e7a4f149..875852194d2 100644--- a/app/components/work_packages/progress/status_based/modal_body_component.html.erb+++ b/app/components/work_packages/progress/status_based/modal_body_component.html.erb@@ -11,11 +11,15 @@) do |f| %><%= flex_layout do |modal_body| %><% modal_body.with_row(classes: "FormControl-horizontalGroup--sm-vertical") do |_fields| %>- <%= render(WorkPackages::ProgressForm.new(f,- work_package:,- mode:,- focused_field:,- touched_field_map:)) %>+ <%= render(+ WorkPackages::ProgressForm.new(+ f,+ work_package:,+ mode:,+ focused_field:,+ touched_field_map:+ )+ ) %><% end %><% modal_body.with_row(mt: 3) do |_tooltip| %>@@ -27,8 +31,12 @@<% modal_body.with_row(mt: 3) do |_actions_row| %><%= flex_layout(justify_content: :flex_end) do |action_buttons| %><%= action_buttons.with_column do %>- <%= render(Primer::Beta::Button.new(scheme: :primary,- type: :submit)) { t(:button_save) } %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :primary,+ type: :submit+ )+ ) { t(:button_save) } %><% end %><% end %><% end %>diff --git a/app/components/work_packages/progress/work_based/modal_body_component.html.erb b/app/components/work_packages/progress/work_based/modal_body_component.html.erbindex d2b0549278a..af94620a264 100644--- a/app/components/work_packages/progress/work_based/modal_body_component.html.erb+++ b/app/components/work_packages/progress/work_based/modal_body_component.html.erb@@ -11,18 +11,26 @@) do |f| %><%= flex_layout do |modal_body| %><% modal_body.with_row(classes: "FormControl-horizontalGroup--sm-vertical") do |_fields| %>- <%= render(WorkPackages::ProgressForm.new(f,- work_package:,- mode:,- focused_field:,- touched_field_map:)) %>+ <%= render(+ WorkPackages::ProgressForm.new(+ f,+ work_package:,+ mode:,+ focused_field:,+ touched_field_map:+ )+ ) %><% end %><% modal_body.with_row(mt: 3) do |_actions_row| %><%= flex_layout(justify_content: :flex_end) do |action_buttons| %><%= action_buttons.with_column do %>- <%= render(Primer::Beta::Button.new(scheme: :primary,- type: :submit)) { t(:button_save) } %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :primary,+ type: :submit+ )+ ) { t(:button_save) } %><% end %><% end %><% end %>diff --git a/app/components/work_packages/reminder/modal_body_component.html.erb b/app/components/work_packages/reminder/modal_body_component.html.erbindex 136dddb8190..4c050952b48 100644--- a/app/components/work_packages/reminder/modal_body_component.html.erb+++ b/app/components/work_packages/reminder/modal_body_component.html.erb@@ -15,35 +15,49 @@<%= render(WorkPackages::Reminder::Note.new(f)) %><% end %><% if reminder.persisted? %>- <%= form_flex_container.with_row(flex_layout: true,- justify_content: :space_between) do |actions_row| %>+ <%= form_flex_container.with_row(+ flex_layout: true,+ justify_content: :space_between+ ) do |actions_row| %><%= actions_row.with_column do %>- <%= render(Primer::Beta::Button.new(- scheme: :danger,- type: :submit,- formaction: work_package_reminder_path(remindable, reminder),- formmethod: :delete- )) { I18n.t(:button_remove_reminder) } %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :danger,+ type: :submit,+ formaction: work_package_reminder_path(remindable, reminder),+ formmethod: :delete+ )+ ) { I18n.t(:button_remove_reminder) } %><% end %><%= actions_row.with_column(flex_layout: true) do |actions_sub_row| %><%= actions_sub_row.with_column(mr: 2) do %><%= render(Primer::Beta::Button.new(**cancel_button_props)) { I18n.t(:button_cancel) } %><% end %><%= actions_sub_row.with_column do %>- <%= render(Primer::Beta::Button.new(scheme: :primary,- type: :submit)) { I18n.t(:button_save) } %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :primary,+ type: :submit+ )+ ) { I18n.t(:button_save) } %><% end %><% end %><% end %><% else %>- <%= form_flex_container.with_row(flex_layout: true,- justify_content: :flex_end) do |actions_row| %>+ <%= form_flex_container.with_row(+ flex_layout: true,+ justify_content: :flex_end+ ) do |actions_row| %><%= actions_row.with_column(mr: 2) do %><%= render(Primer::Beta::Button.new(**cancel_button_props)) { I18n.t(:button_cancel) } %><% end %><%= actions_row.with_column do %>- <%= render(Primer::Beta::Button.new(scheme: :primary,- type: :submit)) { I18n.t(:button_set_reminder) } %>+ <%= render(+ Primer::Beta::Button.new(+ scheme: :primary,+ type: :submit+ )+ ) { I18n.t(:button_set_reminder) } %><% end %><% end %><% end %>diff --git a/app/components/work_packages/status_button_component.html.erb b/app/components/work_packages/status_button_component.html.erbindex 5c28c8fa34f..3550328d880 100644--- a/app/components/work_packages/status_button_component.html.erb+++ b/app/components/work_packages/status_button_component.html.erb@@ -13,9 +13,11 @@end@items.each do |item|- menu.with_item(label: item.name,- content_arguments: { classes: "__hl_inline_status_#{item.id}",- align_items: :center }) do |menu_item|+ menu.with_item(+ label: item.name,+ content_arguments: { classes: "__hl_inline_status_#{item.id}",+ align_items: :center }+ ) do |menu_item|menu_item.with_trailing_visual_icon(icon: :lock) if item.is_readonly?endenddiff --git a/app/components/workflows/page_header_component.html.erb b/app/components/workflows/page_header_component.html.erbindex 8ba1be2e573..0c989933946 100644--- a/app/components/workflows/page_header_component.html.erb+++ b/app/components/workflows/page_header_component.html.erb@@ -32,24 +32,28 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { title }header.with_breadcrumbs(breadcrumb_items)- header.with_action_button(tag: :a,- mobile_icon: :copy,- mobile_label: t(:button_copy),- size: :medium,- href: copy_workflows_path,- aria: { label: I18n.t(:button_copy) },- title: I18n.t(:button_copy)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :copy,+ mobile_label: t(:button_copy),+ size: :medium,+ href: copy_workflows_path,+ aria: { label: I18n.t(:button_copy) },+ title: I18n.t(:button_copy)+ ) do |button|button.with_leading_visual_icon(icon: :copy)t(:button_copy)end- header.with_action_button(tag: :a,- mobile_icon: :info,- mobile_label: t(:label_workflow_summary),- size: :medium,- href: workflows_path,- aria: { label: I18n.t(:label_workflow_summary) },- title: I18n.t(:label_workflow_summary)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :info,+ mobile_label: t(:label_workflow_summary),+ size: :medium,+ href: workflows_path,+ aria: { label: I18n.t(:label_workflow_summary) },+ title: I18n.t(:label_workflow_summary)+ ) do |button|button.with_leading_visual_icon(icon: :info)t(:label_workflow_summary)enddiff --git a/app/views/account/_login.html.erb b/app/views/account/_login.html.erbindex 42b76029495..698cd87df3d 100644--- a/app/views/account/_login.html.erb+++ b/app/views/account/_login.html.erb@@ -28,8 +28,10 @@ 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">@@ -47,8 +49,8 @@ See COPYRIGHT and LICENSE files for more details.<% elsif Setting::SelfRegistration.enabled? %><%# show here if autologin is disabled, otherwise below lost_password link %><%= link_to t(:label_register),- account_register_path,- title: t(:label_register) %>+ account_register_path,+ title: t(:label_register) %><% end %></div></div>@@ -60,14 +62,14 @@ See COPYRIGHT and LICENSE files for more details.</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? %><%= link_to t(:label_register),- account_register_path,- title: t(:label_register) %>+ account_register_path,+ title: t(:label_register) %><% end %></div></div>diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erbindex 7c9e540acf7..98903b8bc75 100644--- a/app/views/account/_password_login_form.html.erb+++ b/app/views/account/_password_login_form.html.erb@@ -28,11 +28,11 @@ See COPYRIGHT and LICENSE files for more details.++#%><%= styled_form_tag(- {action: "login"},+ { action: "login" },autocomplete: "off",class: "-wide-labels user-login--form",data: { turbo: false } # allow redirects without turbo- ) do %>+ ) do %><%= back_url_hidden_field_tag %><div class="form--field -required">diff --git a/app/views/account/_register.html.erb b/app/views/account/_register.html.erbindex e3826390099..586b3793027 100644--- a/app/views/account/_register.html.erb+++ b/app/views/account/_register.html.erb@@ -31,7 +31,8 @@ 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">diff --git a/app/views/account/exit.html.erb b/app/views/account/exit.html.erbindex f1294ab3c94..ea253cdd1b3 100644--- a/app/views/account/exit.html.erb+++ b/app/views/account/exit.html.erb@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% # LOCALS+<%# LOCALSfail ArgumentError, "missing instructions" unless defined? instructions %><% html_title t(:label_login) %>diff --git a/app/views/account/lost_password.html.erb b/app/views/account/lost_password.html.erbindex cbc5b4987ce..62ae0cb2b1d 100644--- a/app/views/account/lost_password.html.erb+++ b/app/views/account/lost_password.html.erb@@ -31,13 +31,15 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_password_lost) }- header.with_breadcrumbs([{ href: home_path, text: organization_name },- t(:label_password_lost)])+ header.with_breadcrumbs(+ [{ href: home_path, text: organization_name },+ t(:label_password_lost)]+ )end%><section class="form--section">- <%= styled_form_tag({action: "lost_password"}) do %>+ <%= styled_form_tag({ action: "lost_password" }) do %><div class="form--field -required"><%= styled_label_tag "mail", User.human_attribute_name(:mail) %><span class="form--field-container">diff --git a/app/views/account/password_recovery.html.erb b/app/views/account/password_recovery.html.erbindex 04c37f30e8b..33d456d67ae 100644--- a/app/views/account/password_recovery.html.erb+++ b/app/views/account/password_recovery.html.erb@@ -31,13 +31,15 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_password_lost) }- header.with_breadcrumbs([{ href: home_path, text: organization_name },- t(:label_password_lost)])+ header.with_breadcrumbs(+ [{ href: home_path, text: organization_name },+ t(:label_password_lost)]+ )end%><%= error_messages_for "user" %>-<%= styled_form_tag({token: @token.value}, autocomplete: "off") do %>+<%= 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) %>@@ -50,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.</div><div class="form--field -required"><%= styled_label_tag "new_password_confirmation",- User.human_attribute_name(: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" %></div>diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erbindex 99dee39d04d..f3900b9951b 100644--- a/app/views/activities/index.html.erb+++ b/app/views/activities/index.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { (@author.nil? ? t(:label_activity) : t(:label_user_activity, value: link_to_user(@author))).html_safe }- header.with_description { t(:label_date_from_to, start: format_date(@date_to - @days), end: format_date(@date_to-1)) }- header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),- *([ href: project_overview_path(@project.id), text: @project.name ] if @project),- t(:label_activity)])+ header.with_description { t(:label_date_from_to, start: format_date(@date_to - @days), end: format_date(@date_to - 1)) }+ header.with_breadcrumbs(+ [*([href: home_path, text: organization_name] unless @project),+ *([href: project_overview_path(@project.id), text: @project.name] if @project),+ t(:label_activity)]+ )end%>@@ -47,24 +49,28 @@ See COPYRIGHT and LICENSE files for more details.<% end %><div style="float:left;">- <%= link_to_content_update(t(:label_previous),- {- from: (@date_to - @days - 1),- 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"}) %>+ <%= link_to_content_update(+ t(:label_previous),+ {+ from: (@date_to - @days - 1),+ 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" }+ ) %></div><div style="float:right;">- <%= link_to_content_update(t(:label_next),- {- from: (@date_to + @days - 1),- 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 %>+ <%= link_to_content_update(+ t(:label_next),+ {+ from: (@date_to + @days - 1),+ 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 %></div> <%= other_formats_links do |f| %>@@ -72,8 +78,10 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% content_for :header_tags do %>- <%= auto_discovery_link_tag(:atom,- { format: "atom", from: nil, key: User.current.rss_key }) %>+ <%= auto_discovery_link_tag(+ :atom,+ { 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.erbindex e9d863c8ce0..71a51fe6bf6 100644--- a/app/views/admin/attachments/quarantined_attachments/index.html.erb+++ b/app/views/admin/attachments/quarantined_attachments/index.html.erb@@ -28,10 +28,12 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Admin::AttachmentsSettingsHeaderComponent.new(- title: t("antivirus_scan.quarantined_attachments.title"),- selected: 3,- ))+ render(+ Admin::AttachmentsSettingsHeaderComponent.new(+ title: t("antivirus_scan.quarantined_attachments.title"),+ selected: 3,+ )+ )%><%= render ::Admin::QuarantinedAttachments::TableComponent.new(rows: @attachments) %>diff --git a/app/views/admin/backups/reset_token.html.erb b/app/views/admin/backups/reset_token.html.erbindex 7dbd9d6ec2f..1a4a4b2f24e 100644--- a/app/views/admin/backups/reset_token.html.erb+++ b/app/views/admin/backups/reset_token.html.erb@@ -33,16 +33,16 @@ See COPYRIGHT and LICENSE files for more details.<% html_title(t(:label_administration), t("backup.reset_token.heading_#{action}")) -%><%= password_confirmation_form_for(- @user,- as: :user,- url: { action: "perform_token_reset" },- builder: ::TabularFormBuilder,- lang: current_language,- html: {- method: :post,- class: "-wide-labels confirm_required request-for-confirmation form danger-zone"- }-) do |f| %>+ @user,+ as: :user,+ url: { action: "perform_token_reset" },+ builder: ::TabularFormBuilder,+ lang: current_language,+ html: {+ method: :post,+ class: "-wide-labels confirm_required request-for-confirmation form danger-zone"+ }+ ) do |f| %><div class='wiki'><section class="form--section"><h3 class="form--section-title">@@ -62,17 +62,17 @@ See COPYRIGHT and LICENSE files for more details.<p><%= t(- "backup.reset_token.verification",- word: "<em class=\"danger-zone--expected-value\">#{t("backup.reset_token.verification_word_#{action}")}</em>",- action: t("backup.reset_token.verification_word_#{action}")- ).html_safe %>+ "backup.reset_token.verification",+ word: "<em class=\"danger-zone--expected-value\">#{t("backup.reset_token.verification_word_#{action}")}</em>",+ action: t("backup.reset_token.verification_word_#{action}")+ ).html_safe %></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"- end %>+ 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></div>diff --git a/app/views/admin/backups/show.html.erb b/app/views/admin/backups/show.html.erbindex db25379fb0b..2d6d372099f 100644--- a/app/views/admin/backups/show.html.erb+++ b/app/views/admin/backups/show.html.erb@@ -58,9 +58,9 @@ See COPYRIGHT and LICENSE files for more details.<% if @backup_token.present? %><%= angular_component_tag "opce-backup", data: {- 'job-status-id': @job_status_id,- 'last-backup-date': @last_backup_date,- 'last-backup-attachment-id': @last_backup_attachment_id,- 'may-include-attachments': @may_include_attachments-} %>+ 'job-status-id': @job_status_id,+ 'last-backup-date': @last_backup_date,+ 'last-backup-attachment-id': @last_backup_attachment_id,+ 'may-include-attachments': @may_include_attachments+ } %><% end %>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.erbindex e0d04b17cd3..97b7fb11fd2 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@@ -30,19 +30,25 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), "#{CustomField.model_name.human} #{h @custom_field.name}", t(:label_project_plural) %><%=- render(Admin::CustomFields::EditFormHeaderComponent.new(custom_field: @custom_field,- selected: :custom_field_projects))+ render(+ Admin::CustomFields::EditFormHeaderComponent.new(+ custom_field: @custom_field,+ selected: :custom_field_projects+ )+ )%><%=render(Primer::OpenProject::SubHeader.new(test_selector: "add-projects-sub-header")) do |component|component.with_action_component do- render(Primer::Beta::Button.new(- scheme: :primary,- tag: :a,- href: new_custom_field_project_path(@custom_field),- data: { controller: "async-dialog" }- )) do |button|+ render(+ Primer::Beta::Button.new(+ scheme: :primary,+ tag: :a,+ href: new_custom_field_project_path(@custom_field),+ data: { controller: "async-dialog" }+ )+ ) do |button|button.with_leading_visual_icon(icon: "op-include-projects")I18n.t(:label_add_projects)end@@ -58,9 +64,11 @@ See COPYRIGHT and LICENSE files for more details.component.with_description { I18n.t("custom_fields.admin.custom_field_projects.is_for_all_blank_slate.description") }endelse- render(Admin::CustomFields::CustomFieldProjects::TableComponent.new(- query: @available_custom_fields_projects_query,- params: params.merge({ custom_field: @custom_field }))+ render(+ Admin::CustomFields::CustomFieldProjects::TableComponent.new(+ query: @available_custom_fields_projects_query,+ params: params.merge({ custom_field: @custom_field })+ ))end%>diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erbindex db253617e2e..c9c3b4825b3 100644--- a/app/views/admin/index.html.erb+++ b/app/views/admin/index.html.erb@@ -32,15 +32,17 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_overview) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_overview)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_overview)]+ )end%><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 %>- <%= render(Primer::Beta::Octicon.new(icon: menu_node.icon, height: 32, classes: "menu-block--icon", "aria-label": menu_node.caption)) %>+ <%= 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 %><% end %>diff --git a/app/views/admin/info.html.erb b/app/views/admin/info.html.erbindex 00043aea9e3..c52712862be 100644--- a/app/views/admin/info.html.erb+++ b/app/views/admin/info.html.erb@@ -32,73 +32,79 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_information_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_information_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_information_plural)]+ )end%><%= call_hook(:view_admin_info_top) %><%= render(AttributeGroups::AttributeGroupComponent.new) do |component|- if Setting.show_product_version?- core_link = linked_sha_reference(OpenProject::VERSION.core_sha, OpenProject::VERSION.core_url)- component.with_attribute(key: t(:label_core_build), value: core_link) if core_link.present?-- product_link = linked_sha_reference(OpenProject::VERSION.product_sha, OpenProject::VERSION.product_url)- component.with_attribute(key: t(:label_product_version), value: product_link) if product_link.present?- end-- component.with_attribute(key: t(:label_core_version), value: OpenProject::Info.versioned_name)- component.with_attribute(key: t(:label_database_version), value: @db_version)-- if display_security_badge_graphic?- content = content_tag :object, nil, data: security_badge_url, type: "image/svg+xml"- 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)- end-- if OpenProject::Database.version_deprecated?- value = <<~STR.html_safe- <p>- Starting with OpenProject 12.0, PostgreSQL 13 is required to use OpenProject.- <br/>- We have prepared #{static_link_to(:postgres_13_upgrade, label: 'upgrade guides for all installation methods')}.- You can perform the upgrade ahead of the release at any time by following the guides.- </p>+ if Setting.show_product_version?+ core_link = linked_sha_reference(OpenProject::VERSION.core_sha, OpenProject::VERSION.core_url)+ component.with_attribute(key: t(:label_core_build), value: core_link) if core_link.present?++ product_link = linked_sha_reference(OpenProject::VERSION.product_sha, OpenProject::VERSION.product_url)+ component.with_attribute(key: t(:label_product_version), value: product_link) if product_link.present?+ end++ component.with_attribute(key: t(:label_core_version), value: OpenProject::Info.versioned_name)+ component.with_attribute(key: t(:label_database_version), value: @db_version)++ if display_security_badge_graphic?+ content = content_tag :object, nil, data: security_badge_url, type: "image/svg+xml"+ 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)+ end++ if OpenProject::Database.version_deprecated?+ value = <<~STR.html_safe+ <p>+ Starting with OpenProject 12.0, PostgreSQL 13 is required to use OpenProject.+ <br/>+ We have prepared #{static_link_to(:postgres_13_upgrade, label: 'upgrade guides for all installation methods')}.+ 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:)- end+ component.with_attribute(key: "Deprecation warning", value:)+ end- if (updated_on = OpenProject::VERSION.updated_on).present?- component.with_attribute(key: t(:label_last_change_on), value: format_time(updated_on))- end-end %>+ if (updated_on = OpenProject::VERSION.updated_on).present?+ component.with_attribute(key: t(:label_last_change_on), value: format_time(updated_on))+ end+ end %><%= render(AttributeGroups::AttributeGroupComponent.new) do |component|- component.with_header(title: I18n.t(:label_system))+ component.with_header(title: I18n.t(:label_system))- @checklist.each do |label, result|- aria_label = result ? t(:general_text_Yes) : t(:general_text_No)- 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-end %>+ @checklist.each do |label, result|+ aria_label = result ? t(:general_text_Yes) : t(:general_text_No)+ 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+ end %><% @storage_information.each_with_index do |(_, entries), i| %><%=render(AttributeGroups::AttributeGroupComponent.new) do |component|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))+ component.with_attribute(+ key: t(:label_storage_for),+ 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))+ component.with_attribute(+ key: t(:label_storage_free_space),+ value: number_to_human_size(entries[:data][:free], precision: 2)+ )value = number_to_human_size(entries[:data][:used], precision: 2)value += "(#{entries[:data][:percent_used].round(2)})"diff --git a/app/views/admin/plugins.html.erb b/app/views/admin/plugins.html.erbindex 933ac8647ee..25ded5c46fe 100644--- a/app/views/admin/plugins.html.erb+++ b/app/views/admin/plugins.html.erb@@ -31,8 +31,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_plugins) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_plugins) ])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_plugins)]+ )end%>diff --git a/app/views/admin/settings/aggregation_settings/show.html.erb b/app/views/admin/settings/aggregation_settings/show.html.erbindex 00ed50be99c..f19389bb65a 100644--- a/app/views/admin/settings/aggregation_settings/show.html.erb+++ b/app/views/admin/settings/aggregation_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:'menus.admin.aggregation') }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },- t(:'menus.admin.aggregation')])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },+ t(:'menus.admin.aggregation')]+ )end%>@@ -45,10 +47,14 @@ See COPYRIGHT and LICENSE files for more details.min: 0,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 %>+ <%= t(+ :'admin.journal_aggregation.explanation.text',+ webhook_link: link_to(+ t(:'admin.journal_aggregation.explanation.link'),+ admin_outgoing_webhooks_path,+ target: "_blank"+ )+ ).html_safe %><br><%= t(:text_hint_disable_with_0) %></span>diff --git a/app/views/admin/settings/api_settings/show.html.erb b/app/views/admin/settings/api_settings/show.html.erbindex d56ef7021b5..e118f8e9fe3 100644--- a/app/views/admin/settings/api_settings/show.html.erb+++ b/app/views/admin/settings/api_settings/show.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_api_access_key_type) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },- t(:label_api_access_key_type)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },+ t(:label_api_access_key_type)]+ )end%>@@ -51,7 +53,8 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field"><%= setting_check_box :apiv3_write_readonly_attributes, container_class: "-slim" %><div class="form--field-instructions">- <p><%= t(:setting_apiv3_write_readonly_attributes_instructions_html,+ <p><%= t(+ :setting_apiv3_write_readonly_attributes_instructions_html,api_documentation_link: static_link_to(:api_docs)) %></p></div>@@ -79,8 +82,10 @@ See COPYRIGHT and LICENSE files for more details.<%= 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,- origin_link: ::OpenProject::Static::Links[:origin_mdn_documentation][:href]) %></p>+ <p><%= t(+ :setting_apiv3_cors_origins_text_html,+ origin_link: ::OpenProject::Static::Links[:origin_mdn_documentation][:href]+ ) %></p></div></div></section>diff --git a/app/views/admin/settings/attachments_settings/show.html.erb b/app/views/admin/settings/attachments_settings/show.html.erbindex 6b05bc8f9a7..4d8e52b99a9 100644--- a/app/views/admin/settings/attachments_settings/show.html.erb+++ b/app/views/admin/settings/attachments_settings/show.html.erb@@ -28,10 +28,12 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Admin::AttachmentsSettingsHeaderComponent.new(- title: t(:"attributes.attachments"),- selected: 1,- ))+ render(+ Admin::AttachmentsSettingsHeaderComponent.new(+ title: t(:"attributes.attachments"),+ selected: 1,+ )+ )%><%= styled_form_tag(@@ -51,7 +53,8 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field"><%= setting_text_area :attachment_whitelist, rows: 5, container_class: "-wide" %><div class="form--field-instructions">- <%= t("settings.attachments.whitelist_text_html",+ <%= t(+ "settings.attachments.whitelist_text_html",ext_example: "*.jpg",mime_example: "image/jpeg",) %>diff --git a/app/views/admin/settings/authentication_settings/show.html.erb b/app/views/admin/settings/authentication_settings/show.html.erbindex 0f2c0726c64..851e30ef3ac 100644--- a/app/views/admin/settings/authentication_settings/show.html.erb+++ b/app/views/admin/settings/authentication_settings/show.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_authentication_settings) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- t(:label_authentication_settings)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ t(:label_authentication_settings)]+ )end%>@@ -44,10 +46,10 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field"><%= setting_check_box :login_required %></div><div class="form--field"><%= setting_select :self_registration, [[t(:label_disabled), Setting::SelfRegistration.disabled.to_s],- [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" %>+ [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" %></div><div class="form--field">@@ -70,8 +72,10 @@ See COPYRIGHT and LICENSE files for more details.[[t(:label_disabled), ""]] + providers,container_class: "-middle" %><span class="form--field-instructions">- <%= t("settings.authentication.omniauth_direct_login_hint_html",- internal_path: internal_signin_url) %>+ <%= t(+ "settings.authentication.omniauth_direct_login_hint_html",+ internal_path: internal_signin_url+ ) %></span></div></fieldset>@@ -89,8 +93,8 @@ See COPYRIGHT and LICENSE files for more details.<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 %>+ [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>@@ -132,12 +136,12 @@ See COPYRIGHT and LICENSE files for more details.<fieldset class="form--fieldset"><legend class="form--fieldset-legend"><%= I18n.t(:session, scope: [:settings]) %></legend><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),- days.to_s]- end),- container_class: "-xslim" %>+ ([[t(:label_disabled), 0]] ++ Settings::Definition[:autologin].allowed.collect do |days|+ [t("datetime.distance_in_words.x_days", count: days),+ days.to_s]+ end),+ 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;">@@ -155,7 +159,7 @@ 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" %>diff --git a/app/views/admin/settings/date_format_settings/show.html.erb b/app/views/admin/settings/date_format_settings/show.html.erbindex 223f37b2c51..9e6b5b9fe52 100644--- a/app/views/admin/settings/date_format_settings/show.html.erb+++ b/app/views/admin/settings/date_format_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_date_format) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_working_days_and_hours_path, text: t(:label_calendars_and_dates) },- t(:label_date_format)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_working_days_and_hours_path, text: t(:label_calendars_and_dates) },+ t(:label_date_format)]+ )end%>@@ -48,24 +50,24 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field"><%= setting_select :date_format,- Settings::Definition[:date_format].allowed.collect {|f| [Date.today.strftime(f), f]},+ Settings::Definition[:date_format].allowed.collect { |f| [Date.today.strftime(f), f] },blank: :label_language_based,container_class: "-wide" %></div><div class="form--field"><%= setting_select :time_format,- Settings::Definition[:time_format].allowed.collect {|f| [Time.now.strftime(f), f]},+ Settings::Definition[:time_format].allowed.collect { |f| [Time.now.strftime(f), f] },blank: :label_language_based,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></div>diff --git a/app/views/admin/settings/experimental_settings/show.html.erb b/app/views/admin/settings/experimental_settings/show.html.erbindex e7931457acb..7d9c90ef1e8 100644--- a/app/views/admin/settings/experimental_settings/show.html.erb+++ b/app/views/admin/settings/experimental_settings/show.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_experimental) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_general_path, text: t(:label_system_settings) },- t(:label_experimental)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_general_path, text: t(:label_system_settings) },+ t(:label_experimental)]+ )end%>diff --git a/app/views/admin/settings/general_settings/show.html.erb b/app/views/admin/settings/general_settings/show.html.erbindex c3b82e21402..1abccb9facc 100644--- a/app/views/admin/settings/general_settings/show.html.erb+++ b/app/views/admin/settings/general_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_general) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_general_path, text: t(:label_system_settings) },- t(:label_general)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_general_path, text: t(:label_system_settings) },+ t(:label_general)]+ )end%>@@ -70,10 +72,12 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field"><%= setting_check_box :security_badge_displayed %><span class="form--field-instructions">- <%= t(:text_notice_security_badge_displayed_html,+ <%= t(+ :text_notice_security_badge_displayed_html,information_panel_label: t(:label_information),more_info_url: ::OpenProject::Static::Links[:security_badge_documentation][:href],- information_panel_path: info_admin_index_path) %>+ information_panel_path: info_admin_index_path+ ) %></span></div><% end %>diff --git a/app/views/admin/settings/icalendar_settings/show.html.erb b/app/views/admin/settings/icalendar_settings/show.html.erbindex f851e2f7129..bd1c6cc6623 100644--- a/app/views/admin/settings/icalendar_settings/show.html.erb+++ b/app/views/admin/settings/icalendar_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_calendar_subscriptions) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_working_days_and_hours_path, text: t(:label_calendars_and_dates) },- t(:label_calendar_subscriptions)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_working_days_and_hours_path, text: t(:label_calendars_and_dates) },+ t(:label_calendar_subscriptions)]+ )end%>diff --git a/app/views/admin/settings/incoming_mails_settings/show.html.erb b/app/views/admin/settings/incoming_mails_settings/show.html.erbindex 117a3b42af1..aa3ae1eb8ea 100644--- a/app/views/admin/settings/incoming_mails_settings/show.html.erb+++ b/app/views/admin/settings/incoming_mails_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:'label_incoming_emails') }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },- t(:'label_incoming_emails')])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },+ t(:'label_incoming_emails')]+ )end%>diff --git a/app/views/admin/settings/languages_settings/show.html.erb b/app/views/admin/settings/languages_settings/show.html.erbindex 2e95017a2fa..5816a509a15 100644--- a/app/views/admin/settings/languages_settings/show.html.erb+++ b/app/views/admin/settings/languages_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_languages) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_general_path, text: t(:label_system_settings) },- t(:label_languages)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_general_path, text: t(:label_system_settings) },+ t(:label_languages)]+ )end%>diff --git a/app/views/admin/settings/mail_notifications_settings/show.html.erb b/app/views/admin/settings/mail_notifications_settings/show.html.erbindex 20f5fcf8487..1fdfb0d7d51 100644--- a/app/views/admin/settings/mail_notifications_settings/show.html.erb+++ b/app/views/admin/settings/mail_notifications_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:'menus.admin.mail_notification') }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },- t(:'menus.admin.mail_notification')])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },+ t(:'menus.admin.mail_notification')]+ )end%>diff --git a/app/views/admin/settings/new_project_settings/show.html.erb b/app/views/admin/settings/new_project_settings/show.html.erbindex 524982f9366..2d2d3bcc115 100644--- a/app/views/admin/settings/new_project_settings/show.html.erb+++ b/app/views/admin/settings/new_project_settings/show.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_project_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_project_custom_fields_path, text: t(:label_project_plural) },- t(:label_project_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_project_custom_fields_path, text: t(:label_project_plural) },+ t(:label_project_new)]+ )end%>@@ -41,13 +43,15 @@ See COPYRIGHT and LICENSE files for more details.<fieldset class="form--fieldset"><div class="form--field"><%= setting_check_box :default_projects_public %></div><div class="form--field">- <%= setting_multiselect(:default_projects_modules,- OpenProject::AccessControl.available_project_modules(sorted: true).collect {|m| [l_or_humanize(m, prefix: "project_module_"), m.to_s]}) %>+ <%= setting_multiselect(+ :default_projects_modules,+ OpenProject::AccessControl.available_project_modules(sorted: true).collect { |m| [l_or_humanize(m, prefix: "project_module_"), m.to_s] }+ ) %></div><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>+ Role.givable.collect { |r| [r.name, r.id.to_s] },+ blank: "--- #{t(:actionview_instancetag_blank_option)} ---",+ container_class: "-middle" %></div></fieldset><%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>diff --git a/app/views/admin/settings/progress_tracking/show.html.erb b/app/views/admin/settings/progress_tracking/show.html.erbindex 02e39a324ad..ff04f5828af 100644--- a/app/views/admin/settings/progress_tracking/show.html.erb+++ b/app/views/admin/settings/progress_tracking/show.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_progress_tracking) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- t(:label_progress_tracking)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ t(:label_progress_tracking)]+ )end%><%=@@ -53,9 +55,11 @@ primer_form_with(})form.html_content do- tag.div(class: "op-toast -warning -with-bottom-spacing",- hidden: true,- data: { admin__progress_tracking_target: "warningToast" }) do+ tag.div(+ class: "op-toast -warning -with-bottom-spacing",+ hidden: true,+ data: { admin__progress_tracking_target: "warningToast" }+ ) dotag.div(class: "op-toast--content") dotag.p(data: { admin__progress_tracking_target: "warningText" })enddiff --git a/app/views/admin/settings/project_custom_fields/edit.html.erb b/app/views/admin/settings/project_custom_fields/edit.html.erbindex 726b2bbb1d1..47e6f015d4b 100644--- a/app/views/admin/settings/project_custom_fields/edit.html.erb+++ b/app/views/admin/settings/project_custom_fields/edit.html.erb@@ -30,10 +30,12 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), t("settings.project_attributes.heading"), @custom_field.name %><%=- render(Settings::ProjectCustomFields::EditFormHeaderComponent.new(- custom_field: @custom_field,- selected: :project_custom_field_edit- ))+ render(+ Settings::ProjectCustomFields::EditFormHeaderComponent.new(+ custom_field: @custom_field,+ selected: :project_custom_field_edit+ )+ )%><%= error_messages_for "custom_field" %>@@ -43,8 +45,8 @@ See COPYRIGHT and LICENSE files for more details."admin--custom-fields-format-config-value": OpenProject::CustomFieldFormatDependent.stimulus_config %><%= labelled_tabular_form_for @custom_field, as: :custom_field,- url: admin_settings_project_custom_field_path(@custom_field),- html: {method: :put, id: "custom_field_form"} do |f| %>+ url: admin_settings_project_custom_field_path(@custom_field),+ html: { method: :put, id: "custom_field_form" } do |f| %><%= render partial: "custom_fields/form", locals: { f: f, custom_field: @custom_field } %><% if @custom_field.new_record? %><%= hidden_field_tag "type", @custom_field.type %>diff --git a/app/views/admin/settings/project_custom_fields/index.html.erb b/app/views/admin/settings/project_custom_fields/index.html.erbindex 6a856aba4f3..e8e72ebd3b5 100644--- a/app/views/admin/settings/project_custom_fields/index.html.erb+++ b/app/views/admin/settings/project_custom_fields/index.html.erb@@ -30,7 +30,9 @@ See COPYRIGHT and LICENSE files for more details.<div data-turbo="true"><%= render(Settings::ProjectCustomFields::HeaderComponent.new) %>- <%= render(Settings::ProjectCustomFieldSections::IndexComponent.new(- project_custom_field_sections: @project_custom_field_sections- )) %>+ <%= render(+ Settings::ProjectCustomFieldSections::IndexComponent.new(+ project_custom_field_sections: @project_custom_field_sections+ )+ ) %></div>diff --git a/app/views/admin/settings/project_custom_fields/new.html.erb b/app/views/admin/settings/project_custom_fields/new.html.erbindex c42701066e3..01676f8300c 100644--- a/app/views/admin/settings/project_custom_fields/new.html.erb+++ b/app/views/admin/settings/project_custom_fields/new.html.erb@@ -38,8 +38,8 @@ See COPYRIGHT and LICENSE files for more details."admin--custom-fields-format-config-value": OpenProject::CustomFieldFormatDependent.stimulus_config %><%= labelled_tabular_form_for @custom_field, as: :custom_field,- url: admin_settings_project_custom_fields_path,- html: { id: "custom_field_form" } do |f| %>+ url: admin_settings_project_custom_fields_path,+ html: { id: "custom_field_form" } do |f| %><%= render partial: "custom_fields/form", locals: { f: f, custom_field: @custom_field } %><% if @custom_field.new_record? %><%= hidden_field_tag "type", @custom_field.type %>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.erbindex a1f056e369e..44d55eea517 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@@ -28,21 +28,25 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Settings::ProjectCustomFields::EditFormHeaderComponent.new(- custom_field: @custom_field,- selected: :project_custom_field_project_mappings- ))+ render(+ Settings::ProjectCustomFields::EditFormHeaderComponent.new(+ custom_field: @custom_field,+ selected: :project_custom_field_project_mappings+ )+ )%><%=render(Primer::OpenProject::SubHeader.new(test_selector: "add-projects-sub-header")) do |component|component.with_action_component do- render(Primer::Beta::Button.new(- scheme: :primary,- tag: :a,- href: new_link_admin_settings_project_custom_field_path(@custom_field),- data: { controller: "async-dialog" }- )) do |button|+ render(+ Primer::Beta::Button.new(+ scheme: :primary,+ tag: :a,+ 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")I18n.t(:label_add_projects)end@@ -52,14 +56,16 @@ See COPYRIGHT and LICENSE files for more details.<%=if @custom_field.required?- render Primer::OpenProject::FeedbackMessage.new(icon_arguments: { icon: :checklist}, border: true) do |component|+ render Primer::OpenProject::FeedbackMessage.new(icon_arguments: { icon: :checklist }, border: true) do |component|component.with_heading(tag: :h2).with_content(I18n.t("projects.settings.project_custom_fields.is_required_blank_slate.heading"))component.with_description { I18n.t("projects.settings.project_custom_fields.is_required_blank_slate.description") }endelse- render(Settings::ProjectCustomFields::ProjectCustomFieldMapping::TableComponent.new(- query: @project_custom_field_mappings_query,- params: params.merge({ custom_field: @custom_field }))+ render(+ Settings::ProjectCustomFields::ProjectCustomFieldMapping::TableComponent.new(+ query: @project_custom_field_mappings_query,+ params: params.merge({ custom_field: @custom_field })+ ))end%>diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erbindex 8595e8f93b0..552c3c5caee 100644--- a/app/views/admin/settings/projects_settings/show.html.erb+++ b/app/views/admin/settings/projects_settings/show.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_project_list_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_project_custom_fields_path, text: t(:label_project_plural) },- t(:label_project_list_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_project_custom_fields_path, text: t(:label_project_plural) },+ t(:label_project_list_plural)]+ )end%>diff --git a/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erb b/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erbindex 3d3cdc340b1..9e5b7d87a5a 100644--- a/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erb+++ b/app/views/admin/settings/repositories_settings/_repositories_checkout.html.erb@@ -32,7 +32,7 @@<%= setting_label key, label: :setting_repository_checkout_text %><div class="form--field-container"><%= styled_text_area_tag key, Setting.repository_checkout_data[vendor]["text"],- placeholder: t("repositories.checkout.default_instructions.#{vendor}") %>+ placeholder: t("repositories.checkout.default_instructions.#{vendor}") %></div><div class="form--field-instructions"><%= t("repositories.checkout.text_instructions") %></div></div>diff --git a/app/views/admin/settings/repositories_settings/show.html.erb b/app/views/admin/settings/repositories_settings/show.html.erbindex 1e5c821813e..d55a1ff5b36 100644--- a/app/views/admin/settings/repositories_settings/show.html.erb+++ b/app/views/admin/settings/repositories_settings/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_repository_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_general_path, text: t(:label_system_settings) },- t(:label_repository_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_general_path, text: t(:label_system_settings) },+ t(:label_repository_plural)]+ )end%>@@ -57,25 +59,27 @@ See COPYRIGHT and LICENSE files for more details.</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",- prevent_default: false) %>+ <% csp_onclick(+ "jQuery('#settings_sys_api_key').prop('disabled', !this.checked)",+ "#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",- disabled: !Setting.sys_api_enabled?,- label: :setting_mail_handler_api_key,- container_class: "-middle" %>+ id: "settings_sys_api_key",+ disabled: !Setting.sys_api_enabled?,+ label: :setting_mail_handler_api_key,+ container_class: "-middle" %></div><%available_scms = OpenProject::SCM::Manager.registered- .map {|vendor, klass| [klass.vendor_name, vendor.to_s] }+ .map { |vendor, klass| [klass.vendor_name, vendor.to_s] }manageable_scms = OpenProject::SCM::Manager.manageable- .map {|vendor, klass| [klass.vendor_name, vendor.to_s, { disabled: !klass.enabled? }]}+ .map { |vendor, klass| [klass.vendor_name, vendor.to_s, { disabled: !klass.enabled? }] }%><div class="form--field">@@ -124,20 +128,22 @@ 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></div><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") %>+ <% csp_onclick(+ "jQuery('#settings_commit_logtime_activity_id').prop('disabled', !this.checked)",+ "#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>+ [[t(:label_default), 0]] + TimeEntryActivity.shared.map { |activity| [activity.name, activity.id.to_s] },+ disabled: !Setting.commit_logtime_enabled?,+ container_class: "-middle" %></div></fieldset><%= 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.erbindex 2b2936ec447..14448a63138 100644--- a/app/views/admin/settings/show_plugin.html.erb+++ b/app/views/admin/settings/show_plugin.html.erb@@ -32,15 +32,17 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { @page_title }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- *(@breadcrumb_elements if @breadcrumb_elements.present?),- @page_title])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ *(@breadcrumb_elements if @breadcrumb_elements.present?),+ @page_title]+ )end%><div id="settings">- <%= styled_form_tag({controller: "/admin/settings", action: "update_plugin" }) do %>- <%= render partial: @partial, locals: {settings: @settings} %>+ <%= styled_form_tag({ controller: "/admin/settings", action: "update_plugin" }) do %>+ <%= render partial: @partial, locals: { settings: @settings } %><%= 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.erbindex 80d0f274cf6..787fece5810 100644--- a/app/views/admin/settings/users_settings/show.html.erb+++ b/app/views/admin/settings/users_settings/show.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_user_settings) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_users_path, text: t(:label_user_and_permission) },- t(:label_user_settings)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_users_path, text: t(:label_user_and_permission) },+ t(:label_user_settings)]+ )end%>@@ -98,8 +100,10 @@ See COPYRIGHT and LICENSE files for more details.<%= I18n.t("consent.text_update_consent_time") %><br><strong>- <%= I18n.t("consent.update_consent_last_time",- update_time: Setting.consent_time.present? ? format_time(Setting.consent_time) : t(:label_never)) %>+ <%= I18n.t(+ "consent.update_consent_last_time",+ update_time: Setting.consent_time.present? ? format_time(Setting.consent_time) : t(:label_never)+ ) %></strong></div></div>diff --git a/app/views/admin/settings/virus_scanning_settings/_av_form.html.erb b/app/views/admin/settings/virus_scanning_settings/_av_form.html.erbindex cfd24cd9e47..6365f806e01 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@@ -3,7 +3,8 @@<div class="form--field"><%= 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",+ <p><%= t(+ "settings.antivirus.modes.clamav_socket_html",example: content_tag(:code, "/var/run/clamav/clamd.ctl"),) %></p>@@ -13,7 +14,8 @@<div class="form--field"><%= 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",+ <p><%= t(+ "settings.antivirus.modes.clamav_host_html",example: content_tag(:code, "remotehost:1024"),) %></p>@@ -29,7 +31,8 @@],container_class: "-wide" %><div class="form--field-instructions">- <p><%= t("settings.antivirus.actions.instructions_html",+ <p><%= t(+ "settings.antivirus.actions.instructions_html",quarantine_option: t("settings.antivirus.actions.quarantine"),delete_option: t("settings.antivirus.actions.delete")) %></p>diff --git a/app/views/admin/settings/virus_scanning_settings/show.html.erb b/app/views/admin/settings/virus_scanning_settings/show.html.erbindex 5582818d21a..317db9a828e 100644--- a/app/views/admin/settings/virus_scanning_settings/show.html.erb+++ b/app/views/admin/settings/virus_scanning_settings/show.html.erb@@ -28,10 +28,12 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Admin::AttachmentsSettingsHeaderComponent.new(- title: t("settings.antivirus.title"),- selected: 2- ))+ render(+ Admin::AttachmentsSettingsHeaderComponent.new(+ title: t("settings.antivirus.title"),+ selected: 2+ )+ )%><%= styled_form_tag(@@ -55,7 +57,8 @@ See COPYRIGHT and LICENSE files for more details.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)",diff --git a/app/views/admin/settings/work_packages_general/show.html.erb b/app/views/admin/settings/work_packages_general/show.html.erbindex b0c7d3445a6..a9bcc82aff0 100644--- a/app/views/admin/settings/work_packages_general/show.html.erb+++ b/app/views/admin/settings/work_packages_general/show.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_general) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- t(:label_general)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ t(:label_general)]+ )end%>@@ -51,14 +53,16 @@ See COPYRIGHT and LICENSE files for more details.</div></div><div class="form--field settings--highlighting-mode">- <%= setting_select(:work_package_list_default_highlighting_mode,- Query::Highlighting::QUERY_HIGHLIGHTING_MODES.map do |mode|- [t("settings.highlighting.mode_long.#{mode}"), mode]- end,- Hash.new.tap do |options|- options[:container_class] = "-middle"- options[:disabled] = "disabled" unless EnterpriseToken.allows_to?(:conditional_highlighting)- end) %>+ <%= setting_select(+ :work_package_list_default_highlighting_mode,+ Query::Highlighting::QUERY_HIGHLIGHTING_MODES.map do |mode|+ [t("settings.highlighting.mode_long.#{mode}"), mode]+ end,+ Hash.new.tap do |options|+ options[:container_class] = "-middle"+ options[:disabled] = "disabled" unless EnterpriseToken.allows_to?(:conditional_highlighting)+ end+ ) %><%= render partial: "enterprise_feature_hint",locals: {ee_feature: :conditional_highlighting,@@ -71,10 +75,12 @@ See COPYRIGHT and LICENSE files for more details.</div><% if EnterpriseToken.allows_to? :conditional_highlighting %><div class="form--field -indented -vertical settings--highlighted-attributes" style="<%= "display: none" unless Setting[:work_package_list_default_highlighting_mode] == "inline" %>">- <%= setting_multiselect(:work_package_list_default_highlighted_attributes,- Query.available_columns(nil).select(&:highlightable).map do |column|- [column.caption, column.name.to_s]- end) %>+ <%= setting_multiselect(+ :work_package_list_default_highlighted_attributes,+ Query.available_columns(nil).select(&:highlightable).map do |column|+ [column.caption, column.name.to_s]+ end+ ) %></div><% end %></section>diff --git a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb b/app/views/admin/settings/working_days_and_hours_settings/show.html.erbindex 80f82d5479f..410b88269bc 100644--- a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb+++ b/app/views/admin/settings/working_days_and_hours_settings/show.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title(test_selector: "op-working-days-admin-settings--title") { t(:label_working_days_and_hours) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_working_days_and_hours_path, text: t(:label_calendars_and_dates) },- t(:label_working_days_and_hours)])- end+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_working_days_and_hours_path, text: t(:label_calendars_and_dates) },+ t(:label_working_days_and_hours)]+ )+ end%><%= styled_form_tag(diff --git a/app/views/announcements/edit.html.erb b/app/views/announcements/edit.html.erbindex 40b0dee8027..e8fe63845a7 100644--- a/app/views/announcements/edit.html.erb+++ b/app/views/announcements/edit.html.erb@@ -3,16 +3,18 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { "#{t(:label_announcement)} (#{notice_annoucement_active})" }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_announcement)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_announcement)]+ )end%><%= error_messages_for "announcement" %><%= labelled_tabular_form_for @announcement,- :url => {:action => :update},- :html => {:method => :put} do |f| %>+ :url => { :action => :update },+ :html => { :method => :put } do |f| %><div class="form--field"><%= f.text_area :text,:cols => 80,diff --git a/app/views/api_docs/index.html.erb b/app/views/api_docs/index.html.erbindex 42fc3805f4f..96390b08ed0 100644--- a/app/views/api_docs/index.html.erb+++ b/app/views/api_docs/index.html.erb@@ -1,7 +1,9 @@<%= nonced_javascript_include_tag "openapi-explorer.min.js" %>-<%= 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")) %>+<%= 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")+ ) %>diff --git a/app/views/attribute_help_texts/_form.html.erb b/app/views/attribute_help_texts/_form.html.erbindex 81a2049746e..5c7723c64d5 100644--- a/app/views/attribute_help_texts/_form.html.erb+++ b/app/views/attribute_help_texts/_form.html.erb@@ -40,9 +40,11 @@ See COPYRIGHT and LICENSE files for more details.<% end %></div>- <% resource = ::API::V3::HelpTexts::HelpTextRepresenter.new(@attribute_help_text,- current_user: current_user,- embed_links: true) %>+ <% resource = ::API::V3::HelpTexts::HelpTextRepresenter.new(+ @attribute_help_text,+ current_user: current_user,+ embed_links: true+ ) %><div class="form--field -required -visible-overflow"><%= f.text_area :help_text,diff --git a/app/views/attribute_help_texts/_tab.html.erb b/app/views/attribute_help_texts/_tab.html.erbindex 75efb26a5e2..192c9500f8d 100644--- a/app/views/attribute_help_texts/_tab.html.erb+++ b/app/views/attribute_help_texts/_tab.html.erb@@ -56,7 +56,8 @@(attribute_help_text_path(attribute_help_text)),method: :delete,data: { confirm: I18n.t(:text_are_you_sure) },- title: t(:button_delete)) %>+ title: t(:button_delete)+ ) %></td></tr><% end %>diff --git a/app/views/attribute_help_texts/edit.html.erb b/app/views/attribute_help_texts/edit.html.erbindex 99862491e27..d78e69dfd58 100644--- a/app/views/attribute_help_texts/edit.html.erb+++ b/app/views/attribute_help_texts/edit.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { @attribute_help_text.attribute_caption }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: attribute_help_texts_path, text: t(:"attribute_help_texts.label_plural") },- { href: attribute_help_texts_path(tab: @attribute_help_text.attribute_scope), text: @attribute_help_text.type_caption },- @attribute_help_text.attribute_caption])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: attribute_help_texts_path, text: t(:"attribute_help_texts.label_plural") },+ { href: attribute_help_texts_path(tab: @attribute_help_text.attribute_scope), text: @attribute_help_text.type_caption },+ @attribute_help_text.attribute_caption]+ )end%>diff --git a/app/views/attribute_help_texts/index.html.erb b/app/views/attribute_help_texts/index.html.erbindex fc54e016ec0..9a308640566 100644--- a/app/views/attribute_help_texts/index.html.erb+++ b/app/views/attribute_help_texts/index.html.erb@@ -28,30 +28,32 @@ See COPYRIGHT and LICENSE files for more details.++#%><% tabs = [- {- 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"),- label: :label_project- }-] %>+ {+ 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"),+ label: :label_project+ }+ ] %><%= render AttributeHelpTexts::IndexPageHeaderComponent.new(tabs: tabs) %><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t("attribute_help_texts.add_new") },- title: I18n.t("attribute_help_texts.add_new"),- tag: :a,- href: new_attribute_help_text_path(name: selected_tab(tabs)[:name]),- test_selector: "attribute-help-texts--create-button") do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t("attribute_help_texts.add_new") },+ title: I18n.t("attribute_help_texts.add_new"),+ tag: :a,+ href: new_attribute_help_text_path(name: selected_tab(tabs)[:name]),+ test_selector: "attribute-help-texts--create-button"+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.attribute_help_text")enddiff --git a/app/views/attribute_help_texts/new.html.erb b/app/views/attribute_help_texts/new.html.erbindex fe1bac6eb40..aa63c3dd92d 100644--- a/app/views/attribute_help_texts/new.html.erb+++ b/app/views/attribute_help_texts/new.html.erb@@ -32,17 +32,19 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:"attribute_help_texts.add_new") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: attribute_help_texts_path, text: t(:"attribute_help_texts.label_plural") },- { href: attribute_help_texts_path(tab: @attribute_help_text.attribute_scope), text: @attribute_help_text.type_caption },- t(:"attribute_help_texts.add_new")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: attribute_help_texts_path, text: t(:"attribute_help_texts.label_plural") },+ { href: attribute_help_texts_path(tab: @attribute_help_text.attribute_scope), text: @attribute_help_text.type_caption },+ t(:"attribute_help_texts.add_new")]+ )end%><%= labelled_tabular_form_for @attribute_help_text,as: "attribute_help_text",url: { action: :create },- html: {id: "attribute_help_text_form"} do |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" %>diff --git a/app/views/categories/_form.html.erb b/app/views/categories/_form.html.erbindex 760e9e0d6df..313c23297a2 100644--- a/app/views/categories/_form.html.erb+++ b/app/views/categories/_form.html.erb@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.Principal.possible_assignee(@project).ordered_by_name- .collect{|u| [u.name, u.id]},+ .collect { |u| [u.name, u.id] },include_blank: true,container_class: "-slim" %></div>diff --git a/app/views/categories/destroy.html.erb b/app/views/categories/destroy.html.erbindex 8537ca8cbeb..4b215538aac 100644--- a/app/views/categories/destroy.html.erb+++ b/app/views/categories/destroy.html.erb@@ -30,14 +30,16 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @category.name }- 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: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },- @category.name])+ 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: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },+ @category.name]+ )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">diff --git a/app/views/categories/edit.html.erb b/app/views/categories/edit.html.erbindex 5cadee1ad9f..009f3ab68d9 100644--- a/app/views/categories/edit.html.erb+++ b/app/views/categories/edit.html.erb@@ -30,10 +30,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @category.name }- 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: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },- @category.name])+ 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: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },+ @category.name]+ )end%>diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erbindex 2bd0d3be779..40001f7c981 100644--- a/app/views/categories/new.html.erb+++ b/app/views/categories/new.html.erb@@ -30,11 +30,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_work_package_category_new) }- 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: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },- t(:label_work_package_category_new)- ])+ 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: project_settings_categories_path(@project.id), text: t(:label_work_package_category_plural) },+ t(:label_work_package_category_new)]+ )end%>diff --git a/app/views/colors/_color_autocomplete_field.html.erb b/app/views/colors/_color_autocomplete_field.html.erbindex 792e2dc3d79..9b2eaf3ed27 100644--- a/app/views/colors/_color_autocomplete_field.html.erb+++ b/app/views/colors/_color_autocomplete_field.html.erb@@ -1,19 +1,21 @@<% form_field_class = form_field_class || "" %>-<% container_class = container_class || "" %>-<% highlight_text_inline = highlight_text_inline || false %>+<% 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") %></label><div class="form--field-container"><%= form.hidden_field :color_id %>- <%= 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]"}) %>+ <%= 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]" }+ ) %></div><div class="form--field-instructions"><%= label %></div></div>diff --git a/app/views/colors/confirm_destroy.html.erb b/app/views/colors/confirm_destroy.html.erbindex 63502166b36..1a90268d67a 100644--- a/app/views/colors/confirm_destroy.html.erb+++ b/app/views/colors/confirm_destroy.html.erb@@ -30,16 +30,18 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { @color.name }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: colors_path, text: t(:label_color_plural) },- @color.name])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: colors_path, text: t(:label_color_plural) },+ @color.name]+ )end%><%= labelled_tabular_form_for @color,- url: color_url(@color),- html: {method: "delete"},- as: :color do |f| %>+ url: color_url(@color),+ html: { method: "delete" },+ as: :color do |f| %><div class='flash warning'><%= t("colors.label_really_delete_color") %>diff --git a/app/views/colors/edit.html.erb b/app/views/colors/edit.html.erbindex ea825c7c18e..242fc7cd202 100644--- a/app/views/colors/edit.html.erb+++ b/app/views/colors/edit.html.erb@@ -33,8 +33,8 @@ See COPYRIGHT and LICENSE files for more details.<%= render Colors::EditPageHeaderComponent.new(color: @color) %><%= labelled_tabular_form_for @color,- url: color_url(@color),- html: {method: "put"}, as: :color do |f| %>+ url: color_url(@color),+ html: { method: "put" }, as: :color do |f| %><%= render partial: "form",- locals: {f: f, color: @color} %>+ locals: { f: f, color: @color } %><% end %>diff --git a/app/views/colors/index.html.erb b/app/views/colors/index.html.erbindex e9e4f5235e2..417d32db5b1 100644--- a/app/views/colors/index.html.erb+++ b/app/views/colors/index.html.erb@@ -32,17 +32,21 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_color_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_color_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_color_plural)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t("colors.index.label_new_color") },- title: I18n.t("colors.index.label_new_color"),- tag: :a,- href: new_color_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t("colors.index.label_new_color") },+ title: I18n.t("colors.index.label_new_color"),+ tag: :a,+ href: new_color_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.attributes.type.color")end@@ -53,8 +57,8 @@ 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",- style: "background-color: #{color.hexcode}" do %>+ class: "color--preview-patch",+ style: "background-color: #{color.hexcode}" do %><%= link_to color.name,edit_color_path(color),class: color.bright? ? "-bright" : "-dark" %>diff --git a/app/views/colors/new.html.erb b/app/views/colors/new.html.erbindex 1ef7c9b6a02..e14f8b53e4a 100644--- a/app/views/colors/new.html.erb+++ b/app/views/colors/new.html.erb@@ -32,16 +32,18 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t("colors.new.label_new_color") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: colors_path, text: t(:label_color_plural) },- t("colors.new.label_new_color") ])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: colors_path, text: t(:label_color_plural) },+ t("colors.new.label_new_color")]+ )end%><%= labelled_tabular_form_for @color,- url: colors_url,- html: {method: "post"},- as: :color do |f| %>+ url: colors_url,+ html: { method: "post" },+ as: :color do |f| %><%= render partial: "form",- locals: {f: f, color: @color} %>+ locals: { f: f, color: @color } %><% end %>diff --git a/app/views/common/_favicons.html.erb b/app/views/common/_favicons.html.erbindex 1b003b1f433..577efde303c 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/_tabs.html.erb b/app/views/common/_tabs.html.erbindex d82296bc171..532d369af58 100644--- a/app/views/common/_tabs.html.erb+++ b/app/views/common/_tabs.html.erb@@ -33,6 +33,6 @@ See COPYRIGHT and LICENSE files for more details.<% end %><%= content_tag "div",- render(partial: selected_tab[:partial], locals: { f: f, tab: selected_tab } ),+ render(partial: selected_tab[:partial], locals: { f: f, tab: selected_tab }),id: "tab-content-#{selected_tab[:name]}",class: "tab-content" %>diff --git a/app/views/common/list_attachments.json.erb b/app/views/common/list_attachments.json.erbindex 9824a8ff544..3b5ecbd988d 100644--- a/app/views/common/list_attachments.json.erb+++ b/app/views/common/list_attachments.json.erb@@ -28,10 +28,10 @@ See COPYRIGHT and LICENSE files for more details.++#%><%= attachments.select { |a| a.readable? and a.visible? }- .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),- is_image: !!a.image? # doing the !! as image? for whatever reason returns null or a number- }- }.to_json.html_safe %>+ .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),+ 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.erbindex 230cbef3873..eefc7f0a745 100644--- a/app/views/common/upsale.html.erb+++ b/app/views/common/upsale.html.erb@@ -40,19 +40,23 @@<br><%= 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 %>+ <%= 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><% 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 %>+ <%= 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><% end %>diff --git a/app/views/custom_actions/edit.html.erb b/app/views/custom_actions/edit.html.erbindex b96cc09a72c..a65ea495f3f 100644--- a/app/views/custom_actions/edit.html.erb+++ b/app/views/custom_actions/edit.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @custom_action.name }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- { href: custom_actions_path, text: t("custom_actions.plural") },- @custom_action.name ])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ { href: custom_actions_path, text: t("custom_actions.plural") },+ @custom_action.name]+ )end%>diff --git a/app/views/custom_actions/index.html.erb b/app/views/custom_actions/index.html.erbindex 2f6bd62f3e3..52ffc0c4cb6 100644--- a/app/views/custom_actions/index.html.erb+++ b/app/views/custom_actions/index.html.erb@@ -3,20 +3,24 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("custom_actions.plural") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- t("custom_actions.plural") ])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ t("custom_actions.plural")]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t("custom_actions.new") },- title: I18n.t("custom_actions.new"),- test_selector: "op-admin-custom-actions--button-new",- tag: :a,- href: new_custom_action_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t("custom_actions.new") },+ title: I18n.t("custom_actions.new"),+ test_selector: "op-admin-custom-actions--button-new",+ tag: :a,+ href: new_custom_action_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)CustomAction.model_name.humanenddiff --git a/app/views/custom_actions/new.html.erb b/app/views/custom_actions/new.html.erbindex d3a7e756a5d..a0974bce9e9 100644--- a/app/views/custom_actions/new.html.erb+++ b/app/views/custom_actions/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("custom_actions.new") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- { href: custom_actions_path, text: t("custom_actions.plural") },- t("custom_actions.new") ])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ { href: custom_actions_path, text: t("custom_actions.plural") },+ t("custom_actions.new")]+ )end%>diff --git a/app/views/custom_fields/_custom_options.html.erb b/app/views/custom_fields/_custom_options.html.erbindex fda6c9120f1..e75d56027b9 100644--- a/app/views/custom_fields/_custom_options.html.erb+++ b/app/views/custom_fields/_custom_options.html.erb@@ -86,7 +86,7 @@ See COPYRIGHT and LICENSE files for more details.<td><span class="dragula-handle icon icon-table icon-drag-handle"></span><%= co_f.hidden_field :id,- disabled:true,+ disabled: true,class: "custom-option-id" %><%= co_f.text_field :value,disabled: true,diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erbindex 2875b174942..97aee712200 100644--- a/app/views/custom_fields/_form.html.erb+++ b/app/views/custom_fields/_form.html.erb@@ -41,9 +41,9 @@ See COPYRIGHT and LICENSE files for more details.<% if @custom_field.type == 'ProjectCustomField' %><div class="form--field -required"><%= f.select :custom_field_section_id,- ProjectCustomFieldSection.all.collect { |s| [s.name, s.id] },- { container_class: "-slim" },- required: true %>+ ProjectCustomFieldSection.all.collect { |s| [s.name, s.id] },+ { container_class: "-slim" },+ required: true %></div><% end %><div class="form--field">diff --git a/app/views/custom_fields/_tab.html.erb b/app/views/custom_fields/_tab.html.erbindex 591ee13d768..610c95b735c 100644--- a/app/views/custom_fields/_tab.html.erb+++ b/app/views/custom_fields/_tab.html.erb@@ -158,7 +158,8 @@ See COPYRIGHT and LICENSE files for more details.(custom_field_path(custom_field)),method: :delete,data: { confirm: I18n.t(:text_are_you_sure) },- title: t(:button_delete)) %>+ title: t(:button_delete)+ ) %></td></tr><% end %>diff --git a/app/views/custom_fields/index.html.erb b/app/views/custom_fields/index.html.erbindex d517dc8cdc1..657483ce59a 100644--- a/app/views/custom_fields/index.html.erb+++ b/app/views/custom_fields/index.html.erb@@ -33,11 +33,13 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_custom_field_new) },- title: I18n.t(:label_custom_field_new),- tag: :a,- href: new_custom_field_path(type: selected_tab(custom_fields_tabs)[:name])) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_custom_field_new) },+ title: I18n.t(:label_custom_field_new),+ tag: :a,+ href: new_custom_field_path(type: selected_tab(custom_fields_tabs)[:name])+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.custom_field")enddiff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erbindex 509cbbb7c5b..1ca1328a6b6 100644--- a/app/views/custom_fields/new.html.erb+++ b/app/views/custom_fields/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new(test_selector: "custom-fields--page-header")) do |header|header.with_title { t(:label_custom_field_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: custom_fields_path, text: t(:label_custom_field_plural) },- { href: custom_fields_path(tab: @custom_field.type), text: I18n.t(@custom_field.type_name) },- t(:label_custom_field_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: custom_fields_path, text: t(:label_custom_field_plural) },+ { href: custom_fields_path(tab: @custom_field.type), text: I18n.t(@custom_field.type_name) },+ t(:label_custom_field_new)]+ )end%>@@ -48,7 +50,7 @@ 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| %>+ 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),diff --git a/app/views/custom_styles/_inline_css_logo.erb b/app/views/custom_styles/_inline_css_logo.erbindex ea9e7279727..0195ea979c7 100644--- a/app/views/custom_styles/_inline_css_logo.erb+++ b/app/views/custom_styles/_inline_css_logo.erb@@ -32,16 +32,16 @@ See COPYRIGHT and LICENSE files for more details.isRu = I18n.locale == :rulogo_url = if isRu- asset_path("logo-white-bg-ua.png")- else- asset_path("logo_openproject_white_big.png")- end+ asset_path("logo-white-bg-ua.png")+ else+ asset_path("logo_openproject_white_big.png")+ endhigh_contrast_logo_url = if isRu- asset_path("logo-black-bg-ua.png")- else- asset_path("logo_openproject.png")- end+ asset_path("logo-black-bg-ua.png")+ else+ asset_path("logo_openproject.png")+ endhigh_contrast_bim_logo_url = asset_path("bim/logo_openproject_bim_big_coloured.png")diff --git a/app/views/custom_styles/_interface.html.erb b/app/views/custom_styles/_interface.html.erbindex 73338df555a..adaa0d20da7 100644--- a/app/views/custom_styles/_interface.html.erb+++ b/app/views/custom_styles/_interface.html.erb@@ -8,15 +8,19 @@<label class="form--label"><%= I18n.t("admin.custom_styles.colors.#{design_color.variable}") %>:</label><span class="form--field-container"><div class="form--field-affix">- <%= icon_for_color(OpenStruct.new(variable: design_color.variable,- hexcode: design_color.hexcode),- data: { target: "#design_colors_" + design_color.variable }) %>+ <%= icon_for_color(+ OpenStruct.new(+ variable: design_color.variable,+ hexcode: design_color.hexcode+ ),+ data: { target: "#design_colors_" + design_color.variable }+ ) %></div><span class="form--text-field-container"><%= styled_text_field_tag "design_colors[]" + design_color.variable,design_color.hexcode,class: "design-color--variable-input",- data: { 'variable-name': design_color.variable } %>+ data: { 'variable-name': design_color.variable } %></span></span><div class="form--field-instructions">diff --git a/app/views/custom_styles/_pdf_export_styles.html.erb b/app/views/custom_styles/_pdf_export_styles.html.erbindex f2c54911aba..8c1f67200ce 100644--- a/app/views/custom_styles/_pdf_export_styles.html.erb+++ b/app/views/custom_styles/_pdf_export_styles.html.erb@@ -98,9 +98,13 @@ See COPYRIGHT and LICENSE files for more details.<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 : "" %>- <%= icon_for_color(OpenStruct.new(variable: design_color_name,- hexcode: design_color_hex),- data: { target: "#" + design_color_name }) %>+ <%= icon_for_color(+ OpenStruct.new(+ variable: design_color_name,+ hexcode: design_color_hex+ ),+ data: { target: "#" + design_color_name }+ ) %></div><span class="form--text-field-container"><%= styled_text_field_tag design_color_name,diff --git a/app/views/custom_styles/show.html.erb b/app/views/custom_styles/show.html.erbindex 6f2b814d2a1..412bc87bc41 100644--- a/app/views/custom_styles/show.html.erb+++ b/app/views/custom_styles/show.html.erb@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.</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.erbindex 474061c4038..0dd36994624 100644--- a/app/views/custom_styles/upsale.html.erb+++ b/app/views/custom_styles/upsale.html.erb@@ -31,9 +31,9 @@ See COPYRIGHT and LICENSE files for more details.<%= 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_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"} %>diff --git a/app/views/customizable/_form.html.erb b/app/views/customizable/_form.html.erbindex 9a44108f2fe..789a8bdb179 100644--- a/app/views/customizable/_form.html.erb+++ b/app/views/customizable/_form.html.erb@@ -49,22 +49,22 @@ See COPYRIGHT and LICENSE files for more details.custom_field.attribute_name,(show_required ? "-required" : ""),wide_labels] do- container_class = case custom_field.field_format- when "text"- "-xxwide"- when "date"- "-xslim"- else- input_size- end+ container_class = case custom_field.field_format+ when "text"+ "-xxwide"+ when "date"+ "-xslim"+ else+ input_size+ end- options = { container_class: }+ options = { container_class: }- if help_text- options[:help_text] = help_text.merge(attribute: custom_field.attribute_name(:camel_case))- end+ if help_text+ options[:help_text] = help_text.merge(attribute: custom_field.attribute_name(:camel_case))+ end- cf_form.cf_form_field(options)- end %>+ cf_form.cf_form_field(options)+ end %><% end %><% end %>diff --git a/app/views/digest_mailer/work_packages.text.erb b/app/views/digest_mailer/work_packages.text.erbindex a67417edcfc..c107116a711 100644--- a/app/views/digest_mailer/work_packages.text.erb+++ b/app/views/digest_mailer/work_packages.text.erb@@ -9,7 +9,7 @@<%= "=" * (("# " + 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) %>diff --git a/app/views/enterprises/_current.html.erb b/app/views/enterprises/_current.html.erbindex 58f0e249bc8..40fb2783375 100644--- a/app/views/enterprises/_current.html.erb+++ b/app/views/enterprises/_current.html.erb@@ -10,15 +10,16 @@data-reprieve-days-left="<%= @current_token.reprieve_days_left %>"></opce-enterprise-active-saved-trial>-<%= form_tag(enterprise_path,- 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"),- button_continue: t(:button_delete),- icon_continue: "delete"- )+<%= form_tag(+ enterprise_path,+ 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"),+ button_continue: t(:button_delete),+ icon_continue: "delete"+ )) do %><%= styled_button_tag t(:button_delete),method: :delete,diff --git a/app/views/enterprises/show.html.erb b/app/views/enterprises/show.html.erbindex 4df8b725325..a4f373a33b1 100644--- a/app/views/enterprises/show.html.erb+++ b/app/views/enterprises/show.html.erb@@ -3,8 +3,10 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_enterprise_edition) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_enterprise_edition)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_enterprise_edition)]+ )end%>diff --git a/app/views/enumerations/_form.html.erb b/app/views/enumerations/_form.html.erbindex c655c6e9008..b4dff252fca 100644--- a/app/views/enumerations/_form.html.erb+++ b/app/views/enumerations/_form.html.erb@@ -45,10 +45,10 @@ See COPYRIGHT and LICENSE files for more details.<% if @enumeration.class.colored? %><%= render partial: "/colors/color_autocomplete_field",locals: {- form: f,- object: @enumeration,- type: "enumeration",- label: @enumeration.color_label+ form: f,+ object: @enumeration,+ type: "enumeration",+ label: @enumeration.color_label} %><% end %></section>diff --git a/app/views/enumerations/destroy.html.erb b/app/views/enumerations/destroy.html.erbindex 989f9a8db3f..340579df0e8 100644--- a/app/views/enumerations/destroy.html.erb+++ b/app/views/enumerations/destroy.html.erb@@ -39,5 +39,5 @@ See COPYRIGHT and LICENSE files for more details.</section><%= styled_submit_tag t(:button_apply), class: "-primary" %><%= link_to t(:button_cancel), { controller: "/enumerations", action: "index" },- class: "button" %>+ class: "button" %><% end %>diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erbindex d9e9e910333..59226155ad2 100644--- a/app/views/enumerations/index.html.erb+++ b/app/views/enumerations/index.html.erb@@ -31,8 +31,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_enumerations) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_enumerations)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ t(:label_enumerations)]+ )end%>diff --git a/app/views/enumerations/new.html.erb b/app/views/enumerations/new.html.erbindex ba33d9c1c5c..8149ec27660 100644--- a/app/views/enumerations/new.html.erb+++ b/app/views/enumerations/new.html.erb@@ -35,8 +35,7 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },{ href: enumerations_path, text: t(:label_enumerations) },- nested_breadcrumb_element(t(@enumeration.option_name), t(:label_enumeration_new))- ],+ nested_breadcrumb_element(t(@enumeration.option_name), t(:label_enumeration_new))],selected_item_font_weight: :normal)enddiff --git a/app/views/filters/date/_input_options.html.erb b/app/views/filters/date/_input_options.html.erbindex df23dbf436c..7a3c89a69c5 100644--- a/app/views/filters/date/_input_options.html.erb+++ b/app/views/filters/date/_input_options.html.erb@@ -20,5 +20,5 @@<%= 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 : ""} %>+ to_value: value_format == "between-dates" ? filter.values.second : "" } %></div>diff --git a/app/views/filters/list/_select.html.erb b/app/views/filters/list/_select.html.erbindex f2d6987a202..e55be1b4bf7 100644--- a/app/views/filters/list/_select.html.erb+++ b/app/views/filters/list/_select.html.erb@@ -1,17 +1,18 @@<div class="<%= multi_value ? "multi-select" : "single-select" %>"><span class="inline-label">- <% select_options = [ :value,- options_from_collection_for_select(- filter.allowed_values,- :second,- :first,- selected_values),- {- class: "form--select -slim",- 'data-filter--filters-form-target': "filterValueSelect",- 'data-filter-name': filter.name,- id: "#{filter.name}_value"- }]+ <% select_options = [:value,+ options_from_collection_for_select(+ filter.allowed_values,+ :second,+ :first,+ selected_values+ ),+ {+ class: "form--select -slim",+ 'data-filter--filters-form-target': "filterValueSelect",+ 'data-filter-name': filter.name,+ id: "#{filter.name}_value"+ }]if multi_valueselect_options.third[:multiple] = trueend %>diff --git a/app/views/forums/edit.html.erb b/app/views/forums/edit.html.erbindex 8e498a469e1..05612cb2850 100644--- a/app/views/forums/edit.html.erb+++ b/app/views/forums/edit.html.erb@@ -29,10 +29,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @forum.name }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- { href: project_forums_path(@project.id), text: t(:label_forum_plural) },- @forum.name- ]) end+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_forums_path(@project.id), text: t(:label_forum_plural) },+ @forum.name]+ )+ end%><%= labelled_tabular_form_for [@project, @forum] do |f| %>diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erbindex 2e006729985..c60039082e0 100644--- a/app/views/forums/index.html.erb+++ b/app/views/forums/index.html.erb@@ -31,19 +31,23 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_forum_plural) }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- t(:label_forum_plural)- ]) end+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ t(:label_forum_plural)]+ )+ end%><% if User.current.allowed_in_project?(:manage_forums, @project) %><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: t(:label_forum_new) },- title: t(:label_forum_new),- tag: :a,- href: new_project_forum_path(@project)) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: t(:label_forum_new) },+ title: t(:label_forum_new),+ tag: :a,+ href: new_project_forum_path(@project)+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.forum")end@@ -138,9 +142,9 @@ See COPYRIGHT and LICENSE files for more details.<td class="small-icons"><% if authorize_for 'forums', 'edit' %><%= reorder_links "forum", controller: "/forums",- action: "move",- project_id: @project,- id: forum %>+ action: "move",+ project_id: @project,+ id: forum %><% end %></td><td class="buttons">diff --git a/app/views/forums/new.html.erb b/app/views/forums/new.html.erbindex bff2b83e666..c4863929a00 100644--- a/app/views/forums/new.html.erb+++ b/app/views/forums/new.html.erb@@ -30,14 +30,15 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_forum_new) }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- { href: project_forums_path(@project.id), text: t(:label_forum_plural) },- t(:label_forum_new)- ])- end+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_forums_path(@project.id), text: t(:label_forum_plural) },+ t(:label_forum_new)]+ )+ end%><%= labelled_tabular_form_for [@project, @forum] do |f| %>- <%= render partial: "form", locals: {f: 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" %><% end %>diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erbindex 5fe9e04cc62..6f8d2b19590 100644--- a/app/views/forums/show.html.erb+++ b/app/views/forums/show.html.erb@@ -53,9 +53,11 @@ See COPYRIGHT and LICENSE files for more details.render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { @forum.name }header.with_description { @forum.description }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: project_forums_path(@project), text: t(:label_forum_plural) },- @forum.name])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_forums_path(@project), text: t(:label_forum_plural) },+ @forum.name]+ )watcher_action_button(header, @forum)end@@ -64,12 +66,14 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::SubHeader.new) do |subheader|if authorize_for(:messages, :new)- subheader.with_action_button(scheme: :primary,- 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|+ subheader.with_action_button(+ scheme: :primary,+ 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|button.with_leading_visual_icon(icon: :plus)t(:label_message)enddiff --git a/app/views/groups/_general.html.erb b/app/views/groups/_general.html.erbindex 8662f409fcb..d6387e18b5e 100644--- a/app/views/groups/_general.html.erb+++ b/app/views/groups/_general.html.erb@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<%= labelled_tabular_form_for @group, url: group_path(@group), html: {method: :put}, as: :group do |f| %>+<%= 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" %><% end %>diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erbindex bebade6f9bd..8b6c14809ca 100644--- a/app/views/groups/_users.html.erb+++ b/app/views/groups/_users.html.erb@@ -53,11 +53,11 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field -vertical"><%=angular_component_tag "opce-user-autocompleter",- inputs: {- inputName: "user_ids",- filters: autocompleter_filters(@group),- },- class: "new-group-members--autocomplete"+ inputs: {+ inputName: "user_ids",+ filters: autocompleter_filters(@group),+ },+ class: "new-group-members--autocomplete"%></div><div>diff --git a/app/views/groups/_users_table.html.erb b/app/views/groups/_users_table.html.erbindex ff15f39817d..45a3897aa5d 100644--- a/app/views/groups/_users_table.html.erb+++ b/app/views/groups/_users_table.html.erb@@ -51,9 +51,9 @@ See COPYRIGHT and LICENSE files for more details.<td class="user"><%= link_to_user user %></td><td class="buttons"><%= link_to "", member_of_group_path(@group, user),- method: :delete,- class: "icon icon-remove",- title: t(:button_remove) %>+ method: :delete,+ class: "icon icon-remove",+ title: t(:button_remove) %></td></tr><% end %>diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erbindex 0d984e2b0dd..b20830cdb68 100644--- a/app/views/groups/index.html.erb+++ b/app/views/groups/index.html.erb@@ -32,19 +32,23 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_group_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_users_path, text: t(:label_user_and_permission) },- t(:label_group_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_users_path, text: t(:label_user_and_permission) },+ t(:label_group_plural)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_group_new) },- title: I18n.t(:label_group_new),- tag: :a,- href: new_group_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_group_new) },+ title: I18n.t(:label_group_new),+ tag: :a,+ href: new_group_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.group")end@@ -90,10 +94,10 @@ See COPYRIGHT and LICENSE files for more details.<td><%= group.users.size %></td><td class="buttons"><%= link_to "", group,- data: { confirm: t(:text_are_you_sure) },- method: :delete,- class: "icon icon-delete",- title: t(:button_delete) %>+ data: { confirm: t(:text_are_you_sure) },+ method: :delete,+ class: "icon icon-delete",+ title: t(:button_delete) %></td></tr><% end %>@@ -103,6 +107,8 @@ See COPYRIGHT and LICENSE files for more details.</div></div><% else %>- <%= no_results_box(action_url: new_group_path,- display_action: true) %>+ <%= no_results_box(+ action_url: new_group_path,+ display_action: true+ ) %><% end %>diff --git a/app/views/groups/new.html.erb b/app/views/groups/new.html.erbindex ecdd7a32f89..e0faf978cb0 100644--- a/app/views/groups/new.html.erb+++ b/app/views/groups/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_group_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_users_path, text: t(:label_user_and_permission) },- { href: groups_path, text: t(:label_group_plural) },- t(:label_group_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_users_path, text: t(:label_user_and_permission) },+ { href: groups_path, text: t(:label_group_plural) },+ t(:label_group_new)]+ )end%>diff --git a/app/views/homescreen/blocks/_administration.html.erb b/app/views/homescreen/blocks/_administration.html.erbindex bdb8a29e7c9..d0c1beafadd 100644--- a/app/views/homescreen/blocks/_administration.html.erb+++ b/app/views/homescreen/blocks/_administration.html.erb@@ -3,11 +3,11 @@<ul class="widget-box--arrow-links"><li><%= link_to t(:label_project_plural), projects_path,- title: t(:label_project_plural) %>+ title: t(:label_project_plural) %></li><li><%= link_to t(:label_user_plural), users_path,- title: t(:label_user_plural) %>+ title: t(:label_user_plural) %></li><li><%= link_to t(:label_group_plural), groups_path,@@ -15,34 +15,34 @@</li><li><%= link_to t(:label_role_and_permissions), roles_path,- title: t(:label_role_and_permissions) %>+ title: t(:label_role_and_permissions) %></li><li><%= link_to t(:label_work_package_types), types_path,- title: t(:label_work_package_types) %>+ title: t(:label_work_package_types) %></li><li><%= link_to t(:label_work_package_status), statuses_path,- title: t(:label_work_package_status) %>+ title: t(:label_work_package_status) %></li><li><%= link_to t(:label_workflow_plural), workflows_path,- title: t(:label_workflow_plural) %>+ title: t(:label_workflow_plural) %></li><li><%= link_to t("attributes.custom_values"), custom_fields_path,- title: t("attributes.custom_values") %>+ title: t("attributes.custom_values") %></li><li><%= link_to t(:label_system_settings), admin_settings_general_path,- title: t(:label_system_settings) %>+ title: t(:label_system_settings) %></li><li><%= link_to t(:label_custom_style), custom_style_path,- title: t(:label_custom_style) %>+ title: t(:label_custom_style) %></li><%= call_hook(:homescreen_administration_links) %></ul>diff --git a/app/views/homescreen/blocks/_community.html.erb b/app/views/homescreen/blocks/_community.html.erbindex 79eb088f72e..55c2d3fe3e4 100644--- a/app/views/homescreen/blocks/_community.html.erb+++ b/app/views/homescreen/blocks/_community.html.erb@@ -13,16 +13,20 @@<%= 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")},+ <%= 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")}) %>+ title: t("homescreen.links.newsletter") }+ ) %></li><li><%= static_link_to :blog %>diff --git a/app/views/homescreen/blocks/_projects.html.erb b/app/views/homescreen/blocks/_projects.html.erbindex 992e63a0290..1ccd3e61f64 100644--- a/app/views/homescreen/blocks/_projects.html.erb+++ b/app/views/homescreen/blocks/_projects.html.erb@@ -5,10 +5,13 @@<ul class="widget-box--arrow-links"><% @favorite_projects.each do |project| %><li>- <%= render(Primer::Beta::Octicon.new(- icon: "star-fill",- classes: "op-primer--star-icon",- "aria-label": I18n.t(:label_favorite))) %>+ <%= render(+ Primer::Beta::Octicon.new(+ icon: "star-fill",+ classes: "op-primer--star-icon",+ "aria-label": I18n.t(:label_favorite)+ )+ ) %><%= link_to project, project_path(project),title: short_project_description(project),@@ -37,9 +40,9 @@<div class="widget-box--blocks--buttons"><% if User.current.allowed_globally?(:add_project) %><%= link_to new_project_path,- { class: "button -primary",- aria: {label: t(:label_project_new)},- title: t(:label_project_new)} do %>+ { class: "button -primary",+ aria: { label: t(:label_project_new) },+ title: t(:label_project_new) } do %><%= op_icon("button--icon icon-add") %><span class="button--text"><%= Project.model_name.human %></span><% end %>diff --git a/app/views/homescreen/blocks/_upsale.html.erb b/app/views/homescreen/blocks/_upsale.html.erbindex 21cc6d32e63..ce836da768a 100644--- a/app/views/homescreen/blocks/_upsale.html.erb+++ b/app/views/homescreen/blocks/_upsale.html.erb@@ -29,10 +29,12 @@<% end %>- <%= link_to(OpenProject::Static::Links.links[:pricing][:href],- class: "button -primary",- target: "_blank",- rel: "noopener") do %>+ <%= 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><% end %>diff --git a/app/views/homescreen/index.html.erb b/app/views/homescreen/index.html.erbindex 97f05b6c010..1d19517b224 100644--- a/app/views/homescreen/index.html.erb+++ b/app/views/homescreen/index.html.erb@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { I18n.t("label_home") }- header.with_breadcrumbs([{ href: home_path, text: organization_name}, I18n.t(:label_home)])+ header.with_breadcrumbs([{ href: home_path, text: organization_name }, I18n.t(:label_home)])end%>diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erbindex 197c5f1af7d..bc71be1f677 100644--- a/app/views/layouts/admin.html.erb+++ b/app/views/layouts/admin.html.erb@@ -29,12 +29,16 @@ See COPYRIGHT and LICENSE files for more details.<%if local_assigns[:additional_breadcrumb].nil?- breadcrumb_paths(ActionController::Base.helpers.link_to(t(:label_administration), admin_index_path),- default_breadcrumb)+ breadcrumb_paths(+ ActionController::Base.helpers.link_to(t(:label_administration), admin_index_path),+ default_breadcrumb+ )else- breadcrumb_paths(ActionController::Base.helpers.link_to(t(:label_administration), admin_index_path),- default_breadcrumb,- local_assigns[:additional_breadcrumb])+ breadcrumb_paths(+ ActionController::Base.helpers.link_to(t(:label_administration), admin_index_path),+ default_breadcrumb,+ local_assigns[:additional_breadcrumb]+ )end%>diff --git a/app/views/ldap_auth_sources/edit.html.erb b/app/views/ldap_auth_sources/edit.html.erbindex 72cf1050f38..9f5ad4488c1 100644--- a/app/views/ldap_auth_sources/edit.html.erb+++ b/app/views/ldap_auth_sources/edit.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @ldap_auth_source.name }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- { href: ldap_auth_sources_path, text: t(:label_ldap_auth_source_plural) },- @ldap_auth_source.name])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: ldap_auth_sources_path, text: t(:label_ldap_auth_source_plural) },+ @ldap_auth_source.name]+ )end%>diff --git a/app/views/ldap_auth_sources/index.html.erb b/app/views/ldap_auth_sources/index.html.erbindex 22e57c74284..da4281b01a9 100644--- a/app/views/ldap_auth_sources/index.html.erb+++ b/app/views/ldap_auth_sources/index.html.erb@@ -32,20 +32,24 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_ldap_auth_source_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- I18n.t(:label_ldap_auth_source_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ I18n.t(:label_ldap_auth_source_plural)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_ldap_auth_source_new) },- title: I18n.t(:label_ldap_auth_source_new),- tag: :a,- test_selector: "op-admin-ldap-connection--button-new",- href: new_ldap_auth_source_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_ldap_auth_source_new) },+ title: I18n.t(:label_ldap_auth_source_new),+ tag: :a,+ test_selector: "op-admin-ldap-connection--button-new",+ href: new_ldap_auth_source_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t(:label_ldap_auth_source)enddiff --git a/app/views/ldap_auth_sources/new.html.erb b/app/views/ldap_auth_sources/new.html.erbindex f2c995b462e..26e2f27ee38 100644--- a/app/views/ldap_auth_sources/new.html.erb+++ b/app/views/ldap_auth_sources/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_ldap_auth_source_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- { href: ldap_auth_sources_path, text: t(:label_ldap_auth_source_plural) },- I18n.t(:label_ldap_auth_source_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: ldap_auth_sources_path, text: t(:label_ldap_auth_source_plural) },+ I18n.t(:label_ldap_auth_source_new)]+ )end%>diff --git a/app/views/mailer/_mailer_header.html.erb b/app/views/mailer/_mailer_header.html.erbindex 443e138f786..d7d2419243c 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;">diff --git a/app/views/mailer/_notification_row.html.erb b/app/views/mailer/_notification_row.html.erbindex a6b599b8c11..040820e5bdc 100644--- a/app/views/mailer/_notification_row.html.erb+++ b/app/views/mailer/_notification_row.html.erb@@ -4,7 +4,7 @@<%= 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) %><td>@@ -32,7 +32,8 @@<% 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>diff --git a/app/views/mailer/_notification_settings_table.html.erb b/app/views/mailer/_notification_settings_table.html.erbindex 80631068fc6..6d8208956b4 100644--- a/app/views/mailer/_notification_settings_table.html.erb+++ b/app/views/mailer/_notification_settings_table.html.erb@@ -12,9 +12,9 @@<%= placeholder_cell("10px", vertical: true) %><td><%= render partial: "mailer/notification_settings_button", locals: {- url: button_url,- text: button_text- } %>+ url: button_url,+ text: button_text+ } %></td></tr></table>diff --git a/app/views/mailer/_spacer_table.html.erb b/app/views/mailer/_spacer_table.html.erbindex 265429b18ea..5ca677860eb 100644--- a/app/views/mailer/_spacer_table.html.erb+++ b/app/views/mailer/_spacer_table.html.erb@@ -4,7 +4,7 @@</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) %><td>diff --git a/app/views/member_mailer/added_project.html.erb b/app/views/member_mailer/added_project.html.erbindex 319fad82169..94b0bdddd2d 100644--- a/app/views/member_mailer/added_project.html.erb+++ b/app/views/member_mailer/added_project.html.erb@@ -1,7 +1,9 @@<%=- raw I18n.t(:"mail_member_added_project.body.added_by.#{@message.present? ? 'with_message' : 'without_message'}",- project: link_to_project(@project, only_path: false),- user: link_to_user(User.current, only_path: false))+ raw I18n.t(+ :"mail_member_added_project.body.added_by.#{@message.present? ? 'with_message' : 'without_message'}",+ project: link_to_project(@project, only_path: false),+ user: link_to_user(User.current, only_path: false)+ )%><%= format_text(@message) %>diff --git a/app/views/member_mailer/added_project.text.erb b/app/views/member_mailer/added_project.text.erbindex c78bf91ac98..9dda1c701f7 100644--- a/app/views/member_mailer/added_project.text.erb+++ b/app/views/member_mailer/added_project.text.erb@@ -1,7 +1,9 @@<%=- I18n.t(:"mail_member_added_project.body.added_by.#{@message.present? ? 'with_message' : 'without_message'}",- project: @project.name,- user: User.current.name)+ I18n.t(+ :"mail_member_added_project.body.added_by.#{@message.present? ? 'with_message' : 'without_message'}",+ project: @project.name,+ user: User.current.name+ )%><%= @message %>diff --git a/app/views/member_mailer/updated_global.html.erb b/app/views/member_mailer/updated_global.html.erbindex d5ed1c509c3..264349cdc62 100644--- a/app/views/member_mailer/updated_global.html.erb+++ b/app/views/member_mailer/updated_global.html.erb@@ -1,6 +1,8 @@<%=- raw I18n.t(:"mail_member_updated_global.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",- user: link_to_user(User.current, only_path: false))+ raw I18n.t(+ :"mail_member_updated_global.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",+ user: link_to_user(User.current, only_path: false)+ )%><%= format_text(@message) %>diff --git a/app/views/member_mailer/updated_global.text.erb b/app/views/member_mailer/updated_global.text.erbindex 6c3ec539e14..8a54c87b4ce 100644--- a/app/views/member_mailer/updated_global.text.erb+++ b/app/views/member_mailer/updated_global.text.erb@@ -1,6 +1,8 @@<%=- I18n.t(:"mail_member_updated_global.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",- user: User.current.name)+ I18n.t(+ :"mail_member_updated_global.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",+ user: User.current.name+ )%><%= @message %>diff --git a/app/views/member_mailer/updated_project.html.erb b/app/views/member_mailer/updated_project.html.erbindex f659df510e0..c1c112005ad 100644--- a/app/views/member_mailer/updated_project.html.erb+++ b/app/views/member_mailer/updated_project.html.erb@@ -1,7 +1,9 @@<%=- raw I18n.t(:"mail_member_updated_project.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",- project: link_to_project(@project, only_path: false),- user: link_to_user(User.current, only_path: false))+ raw I18n.t(+ :"mail_member_updated_project.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",+ project: link_to_project(@project, only_path: false),+ user: link_to_user(User.current, only_path: false)+ )%><%= format_text(@message) %>diff --git a/app/views/member_mailer/updated_project.text.erb b/app/views/member_mailer/updated_project.text.erbindex d21f09ca973..5b0c09bfdbb 100644--- a/app/views/member_mailer/updated_project.text.erb+++ b/app/views/member_mailer/updated_project.text.erb@@ -1,7 +1,9 @@<%=- I18n.t(:"mail_member_updated_project.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",- project: @project.name,- user: User.current.name)+ I18n.t(+ :"mail_member_updated_project.body.updated_by.#{@message.present? ? 'with_message' : 'without_message'}",+ project: @project.name,+ user: User.current.name+ )%><%= I18n.t(:'mail_member_updated_project.body.roles') %>diff --git a/app/views/members/_autocomplete_for_member.html.erb b/app/views/members/_autocomplete_for_member.html.erbindex 974d7b89f45..111955a42e8 100644--- a/app/views/members/_autocomplete_for_member.html.erb+++ b/app/views/members/_autocomplete_for_member.html.erb@@ -63,7 +63,7 @@ See COPYRIGHT and LICENSE files for more details.</div></div><%= styled_button_tag t(:button_add),- id: "member-add-submit",- class: "button -primary -with-icon icon-checkmark",- style: roles.any? && (principals.any? && principals.size <= 20) ? "": "display:none" %>+ 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" %>diff --git a/app/views/members/_member_form.html.erb b/app/views/members/_member_form.html.erbindex b461e15908d..2313d7e885a 100644--- a/app/views/members/_member_form.html.erb+++ b/app/views/members/_member_form.html.erb@@ -27,17 +27,19 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<%= labelled_tabular_form_for(:member, url: main_app.project_members_path,- method: :post,- html: { id: "members_add_form",- class: "form -vertical -bordered -medium-compressed"},- data: {- '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| %>+<%= labelled_tabular_form_for(+ :member, url: main_app.project_members_path,+ method: :post,+ html: { id: "members_add_form",+ class: "form -vertical -bordered -medium-compressed" },+ data: {+ '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") %>"class="hide-member-form-button form--close icon-context icon-close"data-action="members-form#hideAddMemberForm"></a>@@ -82,10 +84,10 @@ See COPYRIGHT and LICENSE files for more details.<%= select_tag "member[role_ids][]", options_for_select(options),multiple: false,no_label: true,- title: t(:label_role_search),+ title: t(:label_role_search),tabIndex: 0,- class: "form--select",- id: "member_role_ids" %>+ class: "form--select",+ id: "member_role_ids" %></div></div></div>diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erbindex f033b67a299..6d141a84904 100644--- a/app/views/messages/_form.html.erb+++ b/app/views/messages/_form.html.erb@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.<% 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 %>diff --git a/app/views/messages/edit.html.erb b/app/views/messages/edit.html.erbindex 926d188e4db..6082a63ea9b 100644--- a/app/views/messages/edit.html.erb+++ b/app/views/messages/edit.html.erb@@ -30,11 +30,13 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @message.subject }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- { href: project_forums_path(@project), text: t(:label_forum_plural) },- { href: project_forum_path(@project, @forum), text: @forum.name },- @message.subject])- end+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_forums_path(@project), text: t(:label_forum_plural) },+ { href: project_forum_path(@project, @forum), text: @forum.name },+ @message.subject]+ )+ end%><%= labelled_tabular_form_for @message,diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erbindex 44e87bc5fd5..b95ed233e32 100644--- a/app/views/messages/new.html.erb+++ b/app/views/messages/new.html.erb@@ -30,10 +30,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|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 },- 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 },+ t(:label_message_new)]+ )end%><%= labelled_tabular_form_for @message,diff --git a/app/views/my/_password_form_fields.html.erb b/app/views/my/_password_form_fields.html.erbindex e2b8b832dcc..a2501eaba64 100644--- a/app/views/my/_password_form_fields.html.erb+++ b/app/views/my/_password_form_fields.html.erb@@ -77,10 +77,14 @@ See COPYRIGHT and LICENSE files for more details.container_class: (defined? input_size) ? "-#{input_size}" : "" %></div><div class="form--field-instructions">- <%= I18n.t(:confirm,- scope: [:activerecord, :errors, :models, :user, :attributes, :password, :match]) %>+ <%= I18n.t(+ :confirm,+ scope: [:activerecord, :errors, :models, :user, :attributes, :password, :match]+ ) %><br>- <%= I18n.t(:description,- scope: [:activerecord, :errors, :models, :user, :attributes, :password, :match]) %>+ <%= I18n.t(+ :description,+ scope: [:activerecord, :errors, :models, :user, :attributes, :password, :match]+ ) %></div></div>diff --git a/app/views/my/access_token.html.erb b/app/views/my/access_token.html.erbindex a72a14f6212..651fc13e6dd 100644--- a/app/views/my/access_token.html.erb+++ b/app/views/my/access_token.html.erb@@ -32,18 +32,20 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|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")])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ 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",- locals: { ical_tokens_grouped_by_query: @ical_tokens_grouped_by_query } %>+ locals: { ical_tokens_grouped_by_query: @ical_tokens_grouped_by_query } %><%= render partial: "my/access_token_partials/oauth_tokens_section",- locals: { granted_applications: granted_applications } %>+ locals: { granted_applications: granted_applications } %><%= render partial: "my/access_token_partials/rss_tokens_section",- locals: { rss_token: @user.rss_token } %>+ locals: { rss_token: @user.rss_token } %><%= render partial: "my/access_token_partials/storage_tokens_section",locals: { storage_tokens: @storage_tokens } %><div class="generic-table--container">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.erbindex c83399e1892..61b022efd13 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@@ -65,12 +65,14 @@ See COPYRIGHT and LICENSE files for more details.</td><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)),- test_selector: "oauth-token-row-#{application.id}-revoke" },- method: :post,- class: "icon icon-delete" %>+ 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)+ ),+ test_selector: "oauth-token-row-#{application.id}-revoke" },+ method: :post,+ class: "icon icon-delete" %></td></tr><% end %>diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erbindex f16a7b95b75..442d0ce72e2 100644--- a/app/views/my/account.html.erb+++ b/app/views/my/account.html.erb@@ -32,8 +32,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_profile) }- header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },- t(:label_profile)])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ t(:label_profile)]+ )end%>diff --git a/app/views/my/notifications.html.erb b/app/views/my/notifications.html.erbindex 645df5f0ac7..641c1ba1ef4 100644--- a/app/views/my/notifications.html.erb+++ b/app/views/my/notifications.html.erb@@ -32,8 +32,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { I18n.t("js.notifications.settings.title") }- header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },- I18n.t("js.notifications.settings.title")])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ I18n.t("js.notifications.settings.title")]+ )end%>diff --git a/app/views/my/password.html.erb b/app/views/my/password.html.erbindex aa195c6c039..a5369c46378 100644--- a/app/views/my/password.html.erb+++ b/app/views/my/password.html.erb@@ -31,14 +31,18 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title(test_selector: "change_password_header_title") { t(:button_change_password) }- header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },- t(:button_change_password)])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ t(:button_change_password)]+ )end%><%= error_messages_for "user" %>-<%= styled_form_tag({ action: :change_password },- { autocomplete: "off", class: "form -wide-labels" }) do %>+<%= styled_form_tag(+ { action: :change_password },+ { 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">diff --git a/app/views/my/reminders.html.erb b/app/views/my/reminders.html.erbindex fc77cbf56a2..17afc40f1fe 100644--- a/app/views/my/reminders.html.erb+++ b/app/views/my/reminders.html.erb@@ -32,8 +32,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { I18n.t("js.reminders.settings.title") }- header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },- I18n.t("js.reminders.settings.title")])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ I18n.t("js.reminders.settings.title")]+ )end%>diff --git a/app/views/my/sessions/index.html.erb b/app/views/my/sessions/index.html.erbindex b227a15be4a..7694aef54c6 100644--- a/app/views/my/sessions/index.html.erb+++ b/app/views/my/sessions/index.html.erb@@ -31,8 +31,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t("users.sessions.title") }- header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },- t("users.sessions.title")])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ t("users.sessions.title")]+ )end%>diff --git a/app/views/my/settings.html.erb b/app/views/my/settings.html.erbindex 9b12045db7c..4ec9fffcbcb 100644--- a/app/views/my/settings.html.erb+++ b/app/views/my/settings.html.erb@@ -32,17 +32,19 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_setting_plural) }- header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },- t(:label_setting_plural)])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ t(:label_setting_plural)]+ )end%><%= 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| %>+ lang: current_language,+ 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>+ <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) %>diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erbindex 1822f6982ef..49127a8417e 100644--- a/app/views/news/edit.html.erb+++ b/app/views/news/edit.html.erb@@ -31,10 +31,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @news.title }- header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),- *([ href: project_overview_path(@project.id), text: @project.name ] if @project),- *([ href: project_news_index_path(@project.id), text: t(:label_news_plural) ] if @project),- @news.title])+ header.with_breadcrumbs(+ [*([href: home_path, text: organization_name] unless @project),+ *([href: project_overview_path(@project.id), text: @project.name] if @project),+ *([href: project_news_index_path(@project.id), text: t(:label_news_plural)] if @project),+ @news.title]+ )end%>diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erbindex 53b32f69763..8e237a5206e 100644--- a/app/views/news/index.html.erb+++ b/app/views/news/index.html.erb@@ -36,21 +36,25 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_news_plural) }- header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),- *([ href: project_overview_path(@project.id), text: @project.name ] if @project),- t(:label_news_plural)])+ header.with_breadcrumbs(+ [*([href: home_path, text: organization_name] unless @project),+ *([href: project_overview_path(@project.id), text: @project.name] if @project),+ t(:label_news_plural)]+ )end%><% if managable %><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: t(:label_news_new)},- title: I18n.t(:label_work_package_status_new),- tag: :a,- id: "new_news_link",- data: { "test-selector": "add-news-button"},- href: new_project_news_path(@project)) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: t(:label_news_new) },+ title: I18n.t(:label_work_package_status_new),+ tag: :a,+ 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)t(:label_news_singular)end@@ -72,8 +76,10 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% else %><% if managable %>- <%= no_results_box(action_url: new_project_news_path(@project),- display_action: true) %>+ <%= no_results_box(+ action_url: new_project_news_path(@project),+ display_action: true+ ) %><% else %><%= no_results_box %><% end %>@@ -82,9 +88,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.erbindex 3fae29245be..ddb16de6540 100644--- a/app/views/news/new.html.erb+++ b/app/views/news/new.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_news_new) }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: project_news_index_path(@project), text: t(:label_news_plural)},- t(:label_news_new)])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_news_index_path(@project), text: t(:label_news_plural) },+ t(:label_news_new)]+ )end%>diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erbindex 0e3db7c376e..1e1a1199de9 100644--- a/app/views/news/show.html.erb+++ b/app/views/news/show.html.erb@@ -30,18 +30,22 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { "#{avatar(@news.author)} #{h @news.title}".html_safe }- header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),- *([ href: project_overview_path(@project.id), text: @project.name ] if @project),- *([ href: project_news_index_path(@project.id), text: t(:label_news_plural) ] if @project),- @news.title])+ header.with_breadcrumbs(+ [*([href: home_path, text: organization_name] unless @project),+ *([href: project_overview_path(@project.id), text: @project.name] if @project),+ *([href: project_news_index_path(@project.id), text: t(:label_news_plural)] if @project),+ @news.title]+ )if User.current.allowed_in_project?(:manage_news, @project)- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_news_path(@news),- aria: { label: I18n.t(:button_edit) },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ 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")button.with_leading_visual_icon(icon: :pencil)t(:button_edit)@@ -51,14 +55,15 @@ See COPYRIGHT and LICENSE files for more details.watcher_action_button(header, @news)if User.current.allowed_in_project?(:manage_news, @project)- header.with_action_button(scheme: :danger,- tag: :a,- href: news_path(@news),- mobile_icon: :trash,- mobile_label: I18n.t("button_delete"),- data: { confirm: t(:text_are_you_sure), method: :delete, },- aria: { label: I18n.t("button_delete") },- ) do |button|+ header.with_action_button(+ scheme: :danger,+ tag: :a,+ href: news_path(@news),+ mobile_icon: :trash,+ mobile_label: I18n.t("button_delete"),+ data: { confirm: t(:text_are_you_sure), method: :delete, },+ aria: { label: I18n.t("button_delete") },+ ) do |button|button.with_leading_visual_icon(icon: :trash)I18n.t("button_delete")end@@ -92,12 +97,12 @@ See COPYRIGHT and LICENSE files for more details.<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},- data: { confirm: t(:text_are_you_sure) },- method: :delete,- class: "no-decoration-on-hover",- title: t(:button_delete),- alt: t(:button_delete) %>+ { controller: "/news/comments", action: "destroy", id: comment },+ data: { confirm: t(:text_are_you_sure) },+ method: :delete,+ class: "no-decoration-on-hover",+ title: t(:button_delete),+ alt: t(:button_delete) %></div><h4 class="author additional-information"><%= avatar(comment.author) %><%= authoring comment.created_at, comment.author %></h4><%= format_text(comment.comments, object: comment) %>diff --git a/app/views/oauth/applications/_form.html.erb b/app/views/oauth/applications/_form.html.erbindex 56eda0fbdb1..e8ed22fc5fb 100644--- a/app/views/oauth/applications/_form.html.erb+++ b/app/views/oauth/applications/_form.html.erb@@ -80,9 +80,11 @@ See COPYRIGHT and LICENSE files for more details.<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)) %>+ authorization_code_flow_link: static_link_to(:oauth_authorization_code_flow)+ ) %></p><div class="form--field -visible-overflow">@@ -90,7 +92,7 @@ See COPYRIGHT and LICENSE files for more details.</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 %>+ <%= f.hidden_field :client_credentials_user_id, value: @application.client_credentials_user_id %><%=angular_component_tag "opce-user-autocompleter",inputs: {diff --git a/app/views/oauth/applications/edit.html.erb b/app/views/oauth/applications/edit.html.erbindex f853f707b88..48baa29b785 100644--- a/app/views/oauth/applications/edit.html.erb+++ b/app/views/oauth/applications/edit.html.erb@@ -33,10 +33,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { h(@application.name) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- { href: oauth_applications_path, text: t("oauth.application.plural") },- h(@application.name)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: oauth_applications_path, text: t("oauth.application.plural") },+ h(@application.name)]+ )end%>diff --git a/app/views/oauth/applications/index.html.erb b/app/views/oauth/applications/index.html.erbindex c9dc6f66d2a..73422fd0d23 100644--- a/app/views/oauth/applications/index.html.erb+++ b/app/views/oauth/applications/index.html.erb@@ -31,19 +31,23 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("oauth.application.plural") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- t("oauth.application.plural")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ t("oauth.application.plural")]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t("oauth.application.new") },- title: I18n.t("oauth.application.new"),- tag: :a,- test_selector: "op-admin-oauth--button-new",- href: new_oauth_application_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t("oauth.application.new") },+ title: I18n.t("oauth.application.new"),+ tag: :a,+ test_selector: "op-admin-oauth--button-new",+ href: new_oauth_application_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("oauth.application.singular")enddiff --git a/app/views/oauth/applications/new.html.erb b/app/views/oauth/applications/new.html.erbindex 130233f23b8..d4d93851062 100644--- a/app/views/oauth/applications/new.html.erb+++ b/app/views/oauth/applications/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("oauth.application.new") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- { href: oauth_applications_path, text: t("oauth.application.plural") },- t("oauth.application.new")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: oauth_applications_path, text: t("oauth.application.plural") },+ t("oauth.application.new")]+ )end%>diff --git a/app/views/oauth/applications/show.html.erb b/app/views/oauth/applications/show.html.erbindex e82c37f8f2d..5f58394c748 100644--- a/app/views/oauth/applications/show.html.erb+++ b/app/views/oauth/applications/show.html.erb@@ -35,14 +35,14 @@ See COPYRIGHT and LICENSE files for more details.<% component.with_header(title: t(:label_details)) %><% component.with_attribute(- key: @application.class.human_attribute_name(:uid),- value: @application.uid- ) %>+ key: @application.class.human_attribute_name(:uid),+ value: @application.uid+ ) %><% if flash[:_application_secret] %><% component.with_attribute(- key: @application.class.human_attribute_name(:secret)- ) do %>+ key: @application.class.human_attribute_name(:secret)+ ) do %><p><code><%= flash[:_application_secret] %></code><br>@@ -53,8 +53,8 @@ See COPYRIGHT and LICENSE files for more details.<% if user_id = @application.client_credentials_user_id %><% component.with_attribute(- key: t("oauth.client_credentials_impersonation_set_to")- ) do %>+ 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>@@ -62,34 +62,34 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% component.with_attribute(- key: @application.class.human_attribute_name(:scopes),- value: oauth_scope_translations(@application)- ) %>+ key: @application.class.human_attribute_name(:scopes),+ value: oauth_scope_translations(@application)+ ) %><% component.with_attribute(- key: @application.class.human_attribute_name(:confidential),- value: @application.confidential? ? t(:general_text_Yes) : t(:general_text_No)- ) %>+ key: @application.class.human_attribute_name(:confidential),+ value: @application.confidential? ? t(:general_text_Yes) : t(:general_text_No)+ ) %><% component.with_attribute(- key: @application.class.human_attribute_name(:enabled),- value: @application.enabled? ? t(:general_text_Yes) : t(:general_text_No)- ) %>+ key: @application.class.human_attribute_name(:enabled),+ value: @application.enabled? ? t(:general_text_Yes) : t(:general_text_No)+ ) %><% component.with_attribute(- key: @application.class.human_attribute_name(:redirect_uri),- value: safe_join(@application.redirect_uri.split("\n"), tag(:br))- ) %>+ key: @application.class.human_attribute_name(:redirect_uri),+ value: safe_join(@application.redirect_uri.split("\n"), tag(:br))+ ) %><% if [email protected]_credentials_user_id %><% component.with_attribute(- key: I18n.t(:'doorkeeper.auth_url'),- value: oauth_authorization_url- ) %>+ key: I18n.t(:'doorkeeper.auth_url'),+ value: oauth_authorization_url+ ) %><% end %><% component.with_attribute(- key: I18n.t(:'doorkeeper.access_token_url'),- value: oauth_token_url- ) %>+ key: I18n.t(:'doorkeeper.access_token_url'),+ value: oauth_token_url+ ) %><% end %>diff --git a/app/views/placeholder_users/_form.html.erb b/app/views/placeholder_users/_form.html.erbindex f2366f0bc3c..6a99fea2312 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/deletion_info.html.erb b/app/views/placeholder_users/deletion_info.html.erbindex fda143805bf..ac18f70e7e9 100644--- a/app/views/placeholder_users/deletion_info.html.erb+++ b/app/views/placeholder_users/deletion_info.html.erb@@ -27,20 +27,23 @@ See COPYRIGHT and LICENSE files for more details.++#%><% name = @placeholder_user.name %>-<% html_title(t(:label_administration), "#{ t('placeholder_users.deletion_info.heading', name: name)}") -%>+<% html_title(t(:label_administration), "#{t('placeholder_users.deletion_info.heading', name: name)}") -%><%= labelled_tabular_form_for(- :placeholder_user,- url: placeholder_user_path(@placeholder_user),- html: {- method: :delete,- class: "form danger-zone",- }) do %>+ :placeholder_user,+ url: placeholder_user_path(@placeholder_user),+ html: {+ method: :delete,+ class: "form danger-zone",+ }+ ) do %><div class='wiki'><section class="form--section"><h3 class="form--section-title">- <%= t("placeholder_users.deletion_info.heading",- name: content_tag(:em, name))+ <%= t(+ "placeholder_users.deletion_info.heading",+ name: content_tag(:em, name)+ ).html_safe %></h3>@@ -52,16 +55,17 @@ See COPYRIGHT and LICENSE files for more details.<span><%= t("placeholder_users.deletion_info.irreversible") %></span></p><p>- <%= t("placeholder_users.deletion_info.confirmation",+ <%= t(+ "placeholder_users.deletion_info.confirmation",name: content_tag(:em, name, class: "danger-zone--expected-value")).html_safe %></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"- end %>+ concat content_tag :i, "", class: "button--icon icon-delete"+ concat content_tag :span, t(:button_delete), class: "button--text"+ end %></div></section></div>diff --git a/app/views/placeholder_users/index.html.erb b/app/views/placeholder_users/index.html.erbindex 92082bce194..64afcc31938 100644--- a/app/views/placeholder_users/index.html.erb+++ b/app/views/placeholder_users/index.html.erb@@ -33,19 +33,23 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_placeholder_user_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_users_path, text: t(:label_user_and_permission) },- t(:label_placeholder_user_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_users_path, text: t(:label_user_and_permission) },+ t(:label_placeholder_user_plural)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_placeholder_user_new) },- title: I18n.t(:label_placeholder_user_new),- tag: :a,- href: new_placeholder_user_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_placeholder_user_new) },+ title: I18n.t(:label_placeholder_user_new),+ tag: :a,+ href: new_placeholder_user_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.placeholder_user")end@@ -59,10 +63,10 @@ See COPYRIGHT and LICENSE files for more details.<%= render PlaceholderUsers::TableComponent.new(rows: @placeholder_users) %><% else %><%= 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"- } %>+ 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"+ } %><% end %>diff --git a/app/views/principals/_available_global_roles.html.erb b/app/views/principals/_available_global_roles.html.erbindex 9524f8fe660..920dac8004a 100644--- a/app/views/principals/_available_global_roles.html.erb+++ b/app/views/principals/_available_global_roles.html.erb@@ -40,15 +40,15 @@ 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><% end %>diff --git a/app/views/projects/copy.html.erb b/app/views/projects/copy.html.erbindex 3a0b9d25452..1ab2ee5fd15 100644--- a/app/views/projects/copy.html.erb+++ b/app/views/projects/copy.html.erb@@ -33,8 +33,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { 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") },- title ]) end+ 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") },+ title]+ )+ end%><%= angular_component_tag "opce-copy-project" %>diff --git a/app/views/projects/destroy_info.html.erb b/app/views/projects/destroy_info.html.erbindex ad6ed8fbe7a..a0811099322 100644--- a/app/views/projects/destroy_info.html.erb+++ b/app/views/projects/destroy_info.html.erb@@ -29,15 +29,20 @@ 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_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+ 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%>-<%= styled_form_tag(project_path(@project_to_destroy),- class: "danger-zone",- data: { turbo: false },- method: :delete) do %>+<%= styled_form_tag(+ project_path(@project_to_destroy),+ 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 %>@@ -66,9 +71,9 @@ See COPYRIGHT and LICENSE files for more details.<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"- end %>+ 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 %>diff --git a/app/views/projects/identifier/show.html.erb b/app/views/projects/identifier/show.html.erbindex c7e31e15b25..a0209aa6c83 100644--- a/app/views/projects/identifier/show.html.erb+++ b/app/views/projects/identifier/show.html.erb@@ -30,9 +30,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|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+ 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%><%= error_messages_for @project %>@@ -70,8 +73,10 @@ See COPYRIGHT and LICENSE files for more details.<br><div class="form--field-instructions">- <%= t(:text_length_between, min: 1,- max: Project::IDENTIFIER_MAX_LENGTH) %>+ <%= t(+ :text_length_between, min: 1,+ max: Project::IDENTIFIER_MAX_LENGTH+ ) %><%= t(:text_project_identifier_info).html_safe %></div>diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erbindex abefbf9cc75..ca0ccdac36f 100644--- a/app/views/projects/index.html.erb+++ b/app/views/projects/index.html.erb@@ -38,8 +38,9 @@ See COPYRIGHT and LICENSE files for more details.) %><%= render(Projects::IndexSubHeaderComponent.new(query:, current_user:, disable_buttons: state === :rename)) %><%= render Projects::TableComponent.new(- query:,- current_user: current_user,- params:) %>+ query:,+ current_user: current_user,+ params:+ ) %><%= render Projects::DiskUsageInformationComponent.new(current_user: current_user) %></div>diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erbindex 794bc43dc58..9837b2701d4 100644--- a/app/views/projects/new.html.erb+++ b/app/views/projects/new.html.erb@@ -29,8 +29,8 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t("label_project_new") %><%=render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { t(:label_project_new)}- header.with_breadcrumbs([{ href: home_path, text: organization_name}, t(:label_project_new)])+ header.with_title { t(:label_project_new) }+ header.with_breadcrumbs([{ href: home_path, text: organization_name }, t(:label_project_new)])end%><%= angular_component_tag "opce-new-project" %>diff --git a/app/views/projects/settings/categories/show.html.erb b/app/views/projects/settings/categories/show.html.erbindex 30d21e5ca8c..ff8e71e0cf3 100644--- a/app/views/projects/settings/categories/show.html.erb+++ b/app/views/projects/settings/categories/show.html.erb@@ -29,21 +29,24 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_work_package_category_plural) }- 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(:label_work_package_category_plural)- ])+ 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(:label_work_package_category_plural)]+ )end%><% if current_user.allowed_in_project?(:manage_categories, @project) %><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- 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|+ subheader.with_action_button(+ scheme: :primary,+ 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|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.category")enddiff --git a/app/views/projects/settings/custom_fields/show.html.erb b/app/views/projects/settings/custom_fields/show.html.erbindex fcdc41cd301..7d1a94d91d2 100644--- a/app/views/projects/settings/custom_fields/show.html.erb+++ b/app/views/projects/settings/custom_fields/show.html.erb@@ -30,20 +30,24 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_custom_field_plural) }- 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") },- I18n.t(:label_custom_field_plural)])+ 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") },+ I18n.t(:label_custom_field_plural)]+ )end%><%=if current_user.admin?render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- 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|+ subheader.with_action_button(+ scheme: :primary,+ 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|button.with_leading_visual_icon(icon: :plus)CustomField.model_name.humanenddiff --git a/app/views/projects/settings/life_cycle_steps/index.html.erb b/app/views/projects/settings/life_cycle_steps/index.html.erbindex 05e2233b8a8..65805a9c311 100644--- a/app/views/projects/settings/life_cycle_steps/index.html.erb+++ b/app/views/projects/settings/life_cycle_steps/index.html.erb@@ -29,5 +29,9 @@ See COPYRIGHT and LICENSE files for more details.<%= render(Projects::Settings::LifeCycleSteps::IndexPageHeaderComponent.new(project: @project)) %>-<%= render(Projects::Settings::LifeCycleSteps::IndexComponent.new(project: @project,- life_cycle_definitions: @life_cycle_definitions)) %>+<%= render(+ Projects::Settings::LifeCycleSteps::IndexComponent.new(+ project: @project,+ life_cycle_definitions: @life_cycle_definitions+ )+ ) %>diff --git a/app/views/projects/settings/modules/_form.html.erb b/app/views/projects/settings/modules/_form.html.erbindex 0627c95ebde..da66258b55d 100644--- a/app/views/projects/settings/modules/_form.html.erb+++ b/app/views/projects/settings/modules/_form.html.erb@@ -34,18 +34,20 @@ 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",- inline: true,- size: "1_25",- classnames: "upsale-colored") %>+ <%= spot_icon(+ "enterprise-addons",+ inline: true,+ size: "1_25",+ classnames: "upsale-colored"+ ) %><% end %></label><div class="form--field-container"><%= form.collection_check_box :enabled_module_names,- name,- @project.module_enabled?(name),- l_or_humanize(name, prefix: "project_module_"),- no_label: true %>+ name,+ @project.module_enabled?(name),+ l_or_humanize(name, prefix: "project_module_"),+ no_label: true %></div></div><% end %>diff --git a/app/views/projects/settings/modules/show.html.erb b/app/views/projects/settings/modules/show.html.erbindex 89e9dcc3670..587ed51f469 100644--- a/app/views/projects/settings/modules/show.html.erb+++ b/app/views/projects/settings/modules/show.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_module_plural) }- 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") },- I18n.t(:label_module_plural)])+ 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") },+ I18n.t(:label_module_plural)]+ )end%>diff --git a/app/views/projects/settings/project_custom_fields/show.html.erb b/app/views/projects/settings/project_custom_fields/show.html.erbindex be4ac50fa5f..c2e801491ca 100644--- a/app/views/projects/settings/project_custom_fields/show.html.erb+++ b/app/views/projects/settings/project_custom_fields/show.html.erb@@ -28,7 +28,9 @@ See COPYRIGHT and LICENSE files for more details.++#%><%= render(Projects::Settings::ProjectCustomFieldSections::IndexPageHeaderComponent.new(project: @project)) %>-<%= render(Projects::Settings::ProjectCustomFieldSections::IndexComponent.new(- project: @project,- project_custom_field_sections: @project_custom_field_sections,-)) %>+<%= render(+ Projects::Settings::ProjectCustomFieldSections::IndexComponent.new(+ project: @project,+ project_custom_field_sections: @project_custom_field_sections,+ )+ ) %>diff --git a/app/views/projects/settings/repository/git/_local.html.erb b/app/views/projects/settings/repository/git/_local.html.erbindex 5e52ac0b3c7..6a1b762b720 100644--- a/app/views/projects/settings/repository/git/_local.html.erb+++ b/app/views/projects/settings/repository/git/_local.html.erb@@ -27,18 +27,22 @@ See COPYRIGHT and LICENSE files for more details.++#%><div class="form--field -required">- <%= form.text_field(:url,- label: t("repositories.git.path"),- size: 60,- required: true) %>+ <%= form.text_field(+ :url,+ 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>") %></div></div><div class="form--field -required">- <%= form.select(:path_encoding,- git_path_encoding_options(repository),- label: t("repositories.git.path_encoding")) %>+ <%= form.select(+ :path_encoding,+ git_path_encoding_options(repository),+ label: t("repositories.git.path_encoding")+ ) %><div class="form--field-instructions"><%= t("repositories.git.instructions.path_encoding") %></div>diff --git a/app/views/projects/settings/repository/shared/_managed.html.erb b/app/views/projects/settings/repository/shared/_managed.html.erbindex 06fffeb0948..3d3ad35d0b1 100644--- a/app/views/projects/settings/repository/shared/_managed.html.erb+++ b/app/views/projects/settings/repository/shared/_managed.html.erb@@ -28,11 +28,12 @@ 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"),- disabled: true,- "aria-disabled" => true+ <%= form.text_field(+ :url,+ label: t("repositories.managed_url"),+ value: t("repositories.managed_remote"),+ disabled: true,+ "aria-disabled" => true) %><div class="form--field-instructions"><p><%= t("repositories.managed_remote_note") %></p>@@ -40,13 +41,14 @@ See COPYRIGHT and LICENSE files for more details.</div><% else %><div class="form--field">- <%= form.text_field(:url,- label: t("repositories.managed_url"),- value: repository.new_record? ? repository.managed_repository_url :- repository.url,- disabled: true,- "aria-disabled" => true,- container_class: "-wide"+ <%= form.text_field(+ :url,+ label: t("repositories.managed_url"),+ value: repository.new_record? ? repository.managed_repository_url :+ repository.url,+ disabled: true,+ "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.erbindex aa5732f63c7..dc6c4e93a16 100644--- a/app/views/projects/settings/repository/show.html.erb+++ b/app/views/projects/settings/repository/show.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_repository) }- 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(:label_repository)])+ 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(:label_repository)]+ )end%>diff --git a/app/views/projects/settings/repository/subversion/_existing.html.erb b/app/views/projects/settings/repository/subversion/_existing.html.erbindex c1ed18e03d3..b3e883f6c98 100644--- a/app/views/projects/settings/repository/subversion/_existing.html.erb+++ b/app/views/projects/settings/repository/subversion/_existing.html.erb@@ -27,11 +27,12 @@ See COPYRIGHT and LICENSE files for more details.++#%><div class="form--field -required">- <%= form.text_field(:url,- label: t("repositories.url"),- required: true,- size: 60,- disabled: !repository.new_record?+ <%= form.text_field(+ :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>") %>@@ -45,21 +46,25 @@ See COPYRIGHT and LICENSE files for more details.</div><hr><div class="form--field">- <%= form.text_field(:login,- size: 30,- label: t("repositories.subversion.username"),- container_class: "-middle") %>+ <%= form.text_field(+ :login,+ size: 30,+ 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") %>+ <%= 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"+ ) %><%=content_for(:additional_js_dom_ready) do"jQuery('#repository-password-placeholder')diff --git a/app/views/projects/settings/storage/show.html.erb b/app/views/projects/settings/storage/show.html.erbindex 888b9a34e7d..5de0ebb7097 100644--- a/app/views/projects/settings/storage/show.html.erb+++ b/app/views/projects/settings/storage/show.html.erb@@ -30,9 +30,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_required_disk_storage) }- 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(:label_required_disk_storage)]) end+ 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(:label_required_disk_storage)]+ )+ end%><section class="form--section">diff --git a/app/views/projects/settings/types/show.html.erb b/app/views/projects/settings/types/show.html.erbindex aaed18aac3c..0be452eb330 100644--- a/app/views/projects/settings/types/show.html.erb+++ b/app/views/projects/settings/types/show.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_work_package_types) }- 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") },- I18n.t(:label_work_package_types)])+ 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") },+ I18n.t(:label_work_package_types)]+ )end%>diff --git a/app/views/projects/settings/versions/show.html.erb b/app/views/projects/settings/versions/show.html.erbindex 259159f0f97..b900c2f0cef 100644--- a/app/views/projects/settings/versions/show.html.erb+++ b/app/views/projects/settings/versions/show.html.erb@@ -29,24 +29,27 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_version_plural) }- 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(:label_version_plural)- ])+ 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(:label_version_plural)]+ )end%><% if current_user.allowed_in_project?(:manage_versions, @project) %><%= render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- 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|- button.with_leading_visual_icon(icon: :plus)- t("activerecord.models.version")- end- end %>+ subheader.with_action_button(+ scheme: :primary,+ 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|+ button.with_leading_visual_icon(icon: :plus)+ t("activerecord.models.version")+ end+ end %><% end %><% if @versions.any? %>diff --git a/app/views/reminders/notification_mailer/reminder_notification.html.erb b/app/views/reminders/notification_mailer/reminder_notification.html.erbindex 274e8101abc..0100f4261e1 100644--- a/app/views/reminders/notification_mailer/reminder_notification.html.erb+++ b/app/views/reminders/notification_mailer/reminder_notification.html.erb@@ -17,13 +17,13 @@} %><%= render layout: "mailer/notification_row",- locals: {- work_package: @notification.resource,- unique_reasons: [@notification.reason],- show_count: true,- count: 1,- user: @user- } do %>+ locals: {+ work_package: @notification.resource,+ unique_reasons: [@notification.reason],+ show_count: true,+ count: 1,+ user: @user+ } do %><table <%= placeholder_table_styles %>><tr><td style="line-height: 24px; font-size: 14px; white-space: normal;">diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erbindex 653caa27c0a..f8d417b7187 100644--- a/app/views/repositories/_breadcrumbs.html.erb+++ b/app/views/repositories/_breadcrumbs.html.erb@@ -27,8 +27,10 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<%= link_to({ action: "show", project_id: @project, repo_path: nil, rev: @rev },- { title: I18n.t(:label_repository_root) }) do %>+<%= 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") %><% end %><%diff --git a/app/views/repositories/_dir_list_content.html.erb b/app/views/repositories/_dir_list_content.html.erbindex db0b41b26ea..d265e8cd2c1 100644--- a/app/views/repositories/_dir_list_content.html.erb+++ b/app/views/repositories/_dir_list_content.html.erb@@ -40,7 +40,7 @@ See COPYRIGHT and LICENSE files for more details.<% @entries.each do |entry| %><% tr_id = Digest::MD5.hexdigest(entry.path)- depth = params[:depth].to_i %>+ 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])}" : "" %>@@ -54,20 +54,24 @@ See COPYRIGHT and LICENSE files for more details.data: {action: "repository-navigation#toggleDirectory",element: "dir_#{tr_id}",- url: url_for(action: "show",- project_id: @project,- repo_path: to_path_param(ent_path),- rev: @rev,- depth: (depth + 1),- parent_id: tr_id),+ 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") %> <% 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 %>+ <%= 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 %>diff --git a/app/views/repositories/_link_to_functions.html.erb b/app/views/repositories/_link_to_functions.html.erbindex e42be8194c5..687f7671ba3 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) %> |<% 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.erbindex 774502fae40..878e8f31b64 100644--- a/app/views/repositories/_repository_header.html.erb+++ b/app/views/repositories/_repository_header.html.erb@@ -28,8 +28,10 @@ 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",- vendor_name: @repository.class.vendor_name) do %>+<%= 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"><div class="toolbar-input-group--affix -prepend">@@ -60,17 +62,19 @@ See COPYRIGHT and LICENSE files for more details.<% 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 %>+ class: "button", title: t(:label_statistics) do %><%= op_icon("button--icon icon-chart1") %><% end %></li><% end %>- <%= call_hook(:repositories_navigation_toolbar,- { repository: @repository, project: @project, repository_empty: empty }) %>+ <%= call_hook(+ :repositories_navigation_toolbar,+ { repository: @repository, project: @project, repository_empty: empty }+ ) %><% 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 %>+ class: "button", title: t(:label_setting_plural) do %><%= op_icon("button--icon icon-settings") %><% end %></li>diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erbindex 3e12dc1f3de..a7de659f50f 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">@@ -118,10 +118,12 @@ See COPYRIGHT and LICENSE files for more details.<% if show_diff && (line_num < revisions.size) %><%= radio_button_tag "rev",changeset.identifier,- (line_num==1),+ (line_num == 1),id: "cb-#{line_num}" %>- <% csp_onclick("jQuery('#cbto-#{line_num+1}').attr('checked', true);",- "cb-#{line_num}") %>+ <% csp_onclick(+ "jQuery('#cbto-#{line_num + 1}').attr('checked', true);",+ "cb-#{line_num}"+ ) %><% end %></td><td class="checkbox">@@ -129,10 +131,12 @@ See COPYRIGHT and LICENSE files for more details.<% if show_diff && (line_num > 1) %><%= radio_button_tag "rev_to",changeset.identifier,- (line_num==2),+ (line_num == 2),id: "cbto-#{line_num}" %>- <% csp_onclick("if (jQuery('#cb-#{line_num}').attr('checked')) {jQuery('#cb-#{line_num-1}').attr('checked', true)}",- "cbto-#{line_num}") %>+ <% csp_onclick(+ "if (jQuery('#cb-#{line_num}').attr('checked')) {jQuery('#cb-#{line_num - 1}').attr('checked', true)}",+ "cbto-#{line_num}"+ ) %><% end %></td><td class="committed_on">diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erbindex 1790d5dcf64..c743114bf29 100644--- a/app/views/repositories/annotate.html.erb+++ b/app/views/repositories/annotate.html.erb@@ -39,13 +39,13 @@ See COPYRIGHT and LICENSE files for more details.<% if @annotate.nil? || @annotate.empty? %><%= no_results_box %><% else %>- <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>+ <% colors = Hash.new { |k, v| k[v] = (k.size % 12) } %><div class="autoscroll"><table class="filecontent annotate highlight"><tbody><% line_num = 1 %><% syntax_highlight(@path, to_utf8_for_repositories(@annotate.content)) do |line| %>- <% revision = @annotate.revisions[line_num-1] %>+ <% revision = @annotate.revisions[line_num - 1] %><tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>"><th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th><td class="revision">diff --git a/app/views/repositories/changes.html.erb b/app/views/repositories/changes.html.erbindex d245388a910..bbf71963d54 100644--- a/app/views/repositories/changes.html.erb+++ b/app/views/repositories/changes.html.erb@@ -39,7 +39,9 @@ See COPYRIGHT and LICENSE files for more details.<%= render_properties(@properties) %>-<%= render(partial: "revisions",- locals: {project: @project, path: @path, revisions: @changesets, entry: @entry }) unless @changesets.empty? %>+<%= 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.erbindex 5a558cab2aa..8549681b2f3 100644--- a/app/views/repositories/committers.html.erb+++ b/app/views/repositories/committers.html.erb@@ -29,10 +29,13 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_user_plural) }- 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: project_settings_repository_path, text: t(:label_repository) },- t(:label_user_plural)]) end+ 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: project_settings_repository_path, text: t(:label_repository) },+ t(:label_user_plural)]+ )+ end%><%= simple_format(t(:text_repository_usernames_mapping)) %>diff --git a/app/views/repositories/destroy_info.html.erb b/app/views/repositories/destroy_info.html.erbindex 05277ab045f..0cb12e60b74 100644--- a/app/views/repositories/destroy_info.html.erb+++ b/app/views/repositories/destroy_info.html.erb@@ -30,10 +30,13 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_repository_remove) }- 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: project_settings_repository_path, text: t(:label_repository) },- t(:label_repository_remove)]) end+ 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: project_settings_repository_path, text: t(:label_repository) },+ t(:label_repository_remove)]+ )+ end%><% if @repository.managed? %><%= styled_form_tag(project_repository_path(@project), method: :delete, class: "danger-zone") do %>@@ -57,16 +60,16 @@ See COPYRIGHT and LICENSE files for more details.<div class="danger-zone--verification"><input type="text"><input><%= styled_button_tag project_repository_path(@project),- method: :delete,- title: t(:button_delete),- disabled: true,- class: "-primary" do %>+ method: :delete,+ title: t(:button_delete),+ disabled: true,+ 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 %>+ title: t(:button_cancel),+ class: "button -with-icon icon-cancel" do %><%= t(:button_cancel) %><% end %></div>@@ -77,10 +80,12 @@ See COPYRIGHT and LICENSE files for more details.<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>- <%= 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>+ <%= 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>@@ -89,14 +94,14 @@ See COPYRIGHT and LICENSE files for more details.<%= link_to project_repository_path(@project),title: t(:button_delete),method: :delete,- data: { "test-selector": "remove-repository-button"},+ data: { "test-selector": "remove-repository-button" },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 %>+ title: t(:button_cancel),+ 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.erbindex a07fdc58ee1..b96f181c6ec 100644--- a/app/views/repositories/empty.html.erb+++ b/app/views/repositories/empty.html.erb@@ -32,5 +32,7 @@ See COPYRIGHT and LICENSE files for more details.<%= no_results_box %>-<%= call_hook(:repositories_below_empty_warning,- { repository: @repository, project: @project }) %>+<%= call_hook(+ :repositories_below_empty_warning,+ { repository: @repository, project: @project }+ ) %>diff --git a/app/views/repositories/entry.html.erb b/app/views/repositories/entry.html.erbindex a7508b6f790..2dd2bc3a724 100644--- a/app/views/repositories/entry.html.erb+++ b/app/views/repositories/entry.html.erb@@ -38,4 +38,4 @@ See COPYRIGHT and LICENSE files for more details.<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.erbindex c14e8d7d9b0..bc572562464 100644--- a/app/views/repositories/revision.html.erb+++ b/app/views/repositories/revision.html.erb@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.<% 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>diff --git a/app/views/repositories/revisions.html.erb b/app/views/repositories/revisions.html.erbindex c49b00ccb94..e2bed4bd240 100644--- a/app/views/repositories/revisions.html.erb+++ b/app/views/repositories/revisions.html.erb@@ -37,13 +37,13 @@ See COPYRIGHT and LICENSE files for more details.</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.erbindex 79f0543356f..3c4437e0ac1 100644--- a/app/views/repositories/show.html.erb+++ b/app/views/repositories/show.html.erb@@ -43,17 +43,17 @@ See COPYRIGHT and LICENSE files for more details.<%= 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,- path: to_path_param(@path),- rev: nil- },- method: :get,- id: "revision_selector",- class: "form -vertical",- data: {- 'repository-navigation-target': "form",- }+ <%= form_tag(+ { action: controller.action_name,+ project_id: @project,+ path: to_path_param(@path),+ rev: nil },+ method: :get,+ id: "revision_selector",+ class: "form -vertical",+ data: {+ 'repository-navigation-target': "form",+ }) do %><li class="toolbar-item toolbar-input-group hidden-for-mobile"><div>@@ -99,9 +99,11 @@ See COPYRIGHT and LICENSE files for more details.</li><% end %><li class="toolbar-item -icon-only">- <%= 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 %>+ <%= 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") %><% end %></li>diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erbindex 523ad8fb40b..14f098a8470 100644--- a/app/views/repositories/stats.html.erb+++ b/app/views/repositories/stats.html.erb@@ -30,23 +30,31 @@ See COPYRIGHT and LICENSE files for more details.<%= toolbar title: t(:label_statistics) %><p class="autoscroll">- <%= tag("embed", width: 800,- height: 300,- type: "image/svg+xml",- src: url_for(controller: "/repositories",- action: "graph",- project_id: @project.id,- graph: "commits_per_month")) %>+ <%= tag(+ "embed", width: 800,+ height: 300,+ type: "image/svg+xml",+ src: url_for(+ controller: "/repositories",+ action: "graph",+ project_id: @project.id,+ graph: "commits_per_month"+ )+ ) %></p><% if @show_commits_per_author %><p class="autoscroll">- <%= tag("embed", width: 800,- height: 400,- type: "image/svg+xml",- src: url_for(controller: "/repositories",- action: "graph",- project_id: @project.id,- graph: "commits_per_author")) %>+ <%= tag(+ "embed", width: 800,+ height: 400,+ type: "image/svg+xml",+ src: url_for(+ controller: "/repositories",+ action: "graph",+ project_id: @project.id,+ graph: "commits_per_author"+ )+ ) %></p><% end %>diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erbindex 22425a3a312..2e27d0b90e8 100644--- a/app/views/roles/_form.html.erb+++ b/app/views/roles/_form.html.erb@@ -41,12 +41,14 @@ See COPYRIGHT and LICENSE files for more details.<% if role.new_record? %><%= styled_label_tag :global_role, t(:label_global_role) %><div class="form--field-container">- <%= styled_check_box_tag("global_role",- "1",- role.is_a?(GlobalRole),- data: {- action: "admin--roles#toggle"- }) %>+ <%= styled_check_box_tag(+ "global_role",+ "1",+ role.is_a?(GlobalRole),+ data: {+ action: "admin--roles#toggle"+ }+ ) %></div><% else %><%= styled_label_tag :unchangeable, "#{t(:label_role_type)} #{t(:label_not_changeable)}" %>@@ -58,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.<div data-admin--roles-target="memberAttributes"hidden>- <%= render partial: "member_attributes", locals: { f: f, role: role, roles: roles&.select {|r| !r.is_a?(GlobalRole)} } %>+ <%= render partial: "member_attributes", locals: { f: f, role: role, roles: roles&.select { |r| !r.is_a?(GlobalRole) } } %></div><div data-admin--roles-target="globalPermissions"diff --git a/app/views/roles/_member_attributes.html.erb b/app/views/roles/_member_attributes.html.erbindex 53b3358583b..d1852872552 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/index.html.erb b/app/views/roles/index.html.erbindex b4eb1848d08..61f6de4f48f 100644--- a/app/views/roles/index.html.erb+++ b/app/views/roles/index.html.erb@@ -31,20 +31,24 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { Role.model_name.human(count: 2) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_users_path, text: t(:label_user_and_permission) },- t(:label_role_and_permissions)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_users_path, text: t(:label_user_and_permission) },+ t(:label_role_and_permissions)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_role_new) },- title: I18n.t(:label_role_new),- tag: :a,- test_selector: "roles--create-button",- href: new_role_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_role_new) },+ title: I18n.t(:label_role_new),+ tag: :a,+ test_selector: "roles--create-button",+ href: new_role_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)Role.model_name.humanend@@ -103,15 +107,17 @@ See COPYRIGHT and LICENSE files for more details.</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),- method: :delete,- data: { confirm: t(:text_are_you_sure) },- class: "icon icon-delete",- title: t(:button_delete)) unless role.builtin? %>+ <%= link_to(+ "", role_path(role),+ method: :delete,+ data: { confirm: t(:text_are_you_sure) },+ class: "icon icon-delete",+ title: t(:button_delete)+ ) unless role.builtin? %></td></tr><% end %>diff --git a/app/views/roles/report.html.erb b/app/views/roles/report.html.erbindex 3bc7dfe9c2e..9955f2e0308 100644--- a/app/views/roles/report.html.erb+++ b/app/views/roles/report.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_permissions_report) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_users_path, text: t(:label_user_and_permission) },- t(:label_permissions_report)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_users_path, text: t(:label_user_and_permission) },+ t(:label_permissions_report)]+ )end%>@@ -46,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.<%= 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">@@ -87,10 +89,11 @@ See COPYRIGHT and LICENSE files for more details.<span><%= 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",- title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}") %>+ title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}"+ ) %></span></div></div>@@ -103,10 +106,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",- title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}") %>+ title: "#{t(:button_check_all)}/#{t(:button_uncheck_all)}"+ ) %><%= l_or_humanize(permission.name, prefix: "permission_") %></td><% @roles.each do |role| %>diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erbindex 2694eedd907..cd3abbc614d 100644--- a/app/views/search/index.html.erb+++ b/app/views/search/index.html.erb@@ -44,7 +44,7 @@ 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| %>@@ -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/shares/dialog.turbo_stream.erb b/app/views/shares/dialog.turbo_stream.erbindex ec19e379e13..10c4582102d 100644--- a/app/views/shares/dialog.turbo_stream.erb+++ b/app/views/shares/dialog.turbo_stream.erb@@ -1,3 +1,3 @@<%= turbo_stream.dialog do- render(Shares::ShareDialogComponent.new(strategy: @sharing_strategy, errors: @errors))-end %>+ render(Shares::ShareDialogComponent.new(strategy: @sharing_strategy, errors: @errors))+ end %>diff --git a/app/views/sharing_mailer/shared_work_package.text.erb b/app/views/sharing_mailer/shared_work_package.text.erbindex 0f317660aa2..5fdaff428a9 100644--- a/app/views/sharing_mailer/shared_work_package.text.erb+++ b/app/views/sharing_mailer/shared_work_package.text.erb@@ -2,14 +2,18 @@<%=if @group- I18n.t("mail.sharing.work_packages.summary.group",- user: @sharer,- group: @group,- role_rights: @role_rights)+ I18n.t(+ "mail.sharing.work_packages.summary.group",+ user: @sharer,+ group: @group,+ role_rights: @role_rights+ )else- I18n.t("mail.sharing.work_packages.summary.user",- user: @sharer,- role_rights: @role_rights)+ I18n.t(+ "mail.sharing.work_packages.summary.user",+ user: @sharer,+ role_rights: @role_rights+ )end%><%= "-" * 100 %>diff --git a/app/views/statuses/edit.html.erb b/app/views/statuses/edit.html.erbindex 965700cba2e..03bb2b1574a 100644--- a/app/views/statuses/edit.html.erb+++ b/app/views/statuses/edit.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @status.name_was }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- { href: statuses_path, text: t(:label_status) },- @status.name_was])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ { href: statuses_path, text: t(:label_status) },+ @status.name_was]+ )end%>diff --git a/app/views/statuses/index.html.erb b/app/views/statuses/index.html.erbindex cf0dbfb9369..55af4507749 100644--- a/app/views/statuses/index.html.erb+++ b/app/views/statuses/index.html.erb@@ -32,18 +32,22 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t(:label_status) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- I18n.t(:label_status)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ I18n.t(:label_status)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_work_package_status_new) },- title: I18n.t(:label_work_package_status_new),- tag: :a,- href: new_status_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_work_package_status_new) },+ title: I18n.t(:label_work_package_status_new),+ tag: :a,+ href: new_status_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t(:label_status)enddiff --git a/app/views/statuses/new.html.erb b/app/views/statuses/new.html.erbindex f21775827a5..be96590daaa 100644--- a/app/views/statuses/new.html.erb+++ b/app/views/statuses/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_work_package_status_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- { href: statuses_path, text: t(:label_status) },- t(:label_work_package_status_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ { href: statuses_path, text: t(:label_status) },+ t(:label_work_package_status_new)]+ )end%>diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erbindex 79831e10bcb..69ca0c2d97e 100644--- a/app/views/types/form/_form_configuration.html.erb+++ b/app/views/types/form/_form_configuration.html.erb@@ -54,13 +54,15 @@ See COPYRIGHT and LICENSE files for more details.<% 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",- "",- data: {- 'active-groups': form_attributes[:actives],- 'inactive-attributes': form_attributes[:inactives],- 'no-filter-query': no_filter_query- }) %>+ <%= content_tag(+ "opce-admin-type-form-configuration",+ "",+ data: {+ 'active-groups': form_attributes[:actives],+ 'inactive-attributes': form_attributes[:inactives],+ 'no-filter-query': no_filter_query+ }+ ) %></div></div></div>diff --git a/app/views/types/form/_projects.html.erb b/app/views/types/form/_projects.html.erbindex c1a968bbb34..cc291e9c497 100644--- a/app/views/types/form/_projects.html.erb+++ b/app/views/types/form/_projects.html.erb@@ -41,10 +41,12 @@ See COPYRIGHT and LICENSE files for more details.</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")- end %>+ 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) %></fieldset><% end %>@@ -55,6 +57,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.erbindex 290ea283f1d..fa22c743999 100644--- a/app/views/types/index.html.erb+++ b/app/views/types/index.html.erb@@ -32,19 +32,23 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_type_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- t(:label_type_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ t(:label_type_plural)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:label_type_new) },- title: I18n.t(:label_type_new),- test_selector: "op-admin-types--button-new",- tag: :a,- href: new_type_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:label_type_new) },+ title: I18n.t(:label_type_new),+ test_selector: "op-admin-types--button-new",+ tag: :a,+ href: new_type_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("activerecord.attributes.work_package.type")end@@ -129,7 +133,7 @@ See COPYRIGHT and LICENSE files for more details.<%= t(:text_type_no_workflow) %>(<%= link_to t(:button_edit), { controller: "/workflows",action: "edit",- type_id: type} %>)+ type_id: type } %>)</span><% end %></td>@@ -143,15 +147,15 @@ 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,- method: :delete,- data: { confirm: t(:text_are_you_sure) },- class: "icon icon-delete",- title: t(:button_delete) %>+ method: :delete,+ data: { confirm: t(:text_are_you_sure) },+ class: "icon icon-delete",+ title: t(:button_delete) %><% end %></td></tr>diff --git a/app/views/types/new.html.erb b/app/views/types/new.html.erbindex 933de72555f..899c3b45861 100644--- a/app/views/types/new.html.erb+++ b/app/views/types/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_type_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },- { href: types_path, text: t(:label_type_plural) },- t(:label_type_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },+ { href: types_path, text: t(:label_type_plural) },+ t(:label_type_new)]+ )end%>diff --git a/app/views/user_mailer/incoming_email_error.html.erb b/app/views/user_mailer/incoming_email_error.html.erbindex c42c5012f34..ad8752506ce 100644--- a/app/views/user_mailer/incoming_email_error.html.erb+++ b/app/views/user_mailer/incoming_email_error.html.erb@@ -39,10 +39,10 @@ See COPYRIGHT and LICENSE files for more details.<p><%= t(- :mail_body_incoming_email_error_in_reply_to,- received_at: format_time(@received_at),- from_email: @mail_from- ) %>:+ :mail_body_incoming_email_error_in_reply_to,+ received_at: format_time(@received_at),+ from_email: @mail_from+ ) %>:</p><blockquote>diff --git a/app/views/user_mailer/incoming_email_error.text.erb b/app/views/user_mailer/incoming_email_error.text.erbindex cb2b8acf96d..b099d8b0731 100644--- a/app/views/user_mailer/incoming_email_error.text.erb+++ b/app/views/user_mailer/incoming_email_error.text.erb@@ -34,9 +34,9 @@ See COPYRIGHT and LICENSE files for more details.<%= @logs.join("\n") %><%= t(- :mail_body_incoming_email_error_in_reply_to,- received_at: format_time(@received_at),- from_email: @mail_from-)%>:+ :mail_body_incoming_email_error_in_reply_to,+ received_at: format_time(@received_at),+ from_email: @mail_from+ )%>:<%= @quote %>diff --git a/app/views/user_mailer/password_change_not_possible.html.erb b/app/views/user_mailer/password_change_not_possible.html.erbindex f3a400067c1..2ccdee3da36 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,10 @@ 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>+ name: @provider+ ) %></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.erbindex 162712f2509..c22f7c2545a 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,10 @@ 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) %>+ name: @provider+ ) %><%= 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.erbindex 65682725e33..299c41c34e7 100644--- a/app/views/user_mailer/user_signed_up.html.erb+++ b/app/views/user_mailer/user_signed_up.html.erb@@ -38,12 +38,13 @@ 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])- ) %>+ <%= 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])+ ) %></p><p>diff --git a/app/views/user_mailer/user_signed_up.text.erb b/app/views/user_mailer/user_signed_up.text.erbindex 341f7440834..ebf9bedce67 100644--- a/app/views/user_mailer/user_signed_up.text.erb+++ b/app/views/user_mailer/user_signed_up.text.erb@@ -31,7 +31,8 @@ See COPYRIGHT and LICENSE files for more details.<%= t(:mail_body_register, app_title: Setting.app_title) %><%= @activation_url %>-<%= strip_tags t(:mail_body_register_links_html,+<%= strip_tags t(+ :mail_body_register_links_html,webinar_link: OpenProject::Static::Links.links[:webinar_videos][:href],youtube_link: OpenProject::Configuration.youtube_channel,get_started_link: OpenProject::Static::Links.links[:get_started_videos][:href],diff --git a/app/views/user_mailer/wiki_page_added.html.erb b/app/views/user_mailer/wiki_page_added.html.erbindex 9d537aaa866..56d6aa57464 100644--- a/app/views/user_mailer/wiki_page_added.html.erb+++ b/app/views/user_mailer/wiki_page_added.html.erb@@ -28,8 +28,10 @@ See COPYRIGHT and LICENSE files for more details.++#%><p>- <%= raw t(:mail_body_wiki_page_added,- id: link_to(@wiki_page.title, project_wiki_url(@wiki_page.project, @wiki_page)),- author: @wiki_page.author) %><br>+ <%= raw t(+ :mail_body_wiki_page_added,+ id: link_to(@wiki_page.title, project_wiki_url(@wiki_page.project, @wiki_page)),+ author: @wiki_page.author+ ) %><br><em><%= @wiki_page.journals.last.notes %></em></p>diff --git a/app/views/user_mailer/wiki_page_added.text.erb b/app/views/user_mailer/wiki_page_added.text.erbindex 29d966e6d9f..047a46e9382 100644--- a/app/views/user_mailer/wiki_page_added.text.erb+++ b/app/views/user_mailer/wiki_page_added.text.erb@@ -27,9 +27,11 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<%= t(:mail_body_wiki_page_added,- id: @wiki_page.title,- author: @wiki_page.author) %>+<%= t(+ :mail_body_wiki_page_added,+ id: @wiki_page.title,+ author: @wiki_page.author+ ) %><%= @wiki_page.journals.last.notes %><%= project_wiki_url(@wiki_page.project, @wiki_page) %>diff --git a/app/views/user_mailer/wiki_page_updated.html.erb b/app/views/user_mailer/wiki_page_updated.html.erbindex 962075d34b5..ea7e8a121b5 100644--- a/app/views/user_mailer/wiki_page_updated.html.erb+++ b/app/views/user_mailer/wiki_page_updated.html.erb@@ -28,9 +28,11 @@ See COPYRIGHT and LICENSE files for more details.++#%><p>- <%= raw t(:mail_body_wiki_page_updated,- id: link_to(@wiki_page.title, project_wiki_url(@wiki_page.project, @wiki_page)),- author: @wiki_page.journals.last.user) %><br>+ <%= raw t(+ :mail_body_wiki_page_updated,+ id: link_to(@wiki_page.title, project_wiki_url(@wiki_page.project, @wiki_page)),+ author: @wiki_page.journals.last.user+ ) %><br><em><%= @wiki_page.journals.last.notes %></em></p>diff --git a/app/views/user_mailer/wiki_page_updated.text.erb b/app/views/user_mailer/wiki_page_updated.text.erbindex 11a73c96108..99b83c2a101 100644--- a/app/views/user_mailer/wiki_page_updated.text.erb+++ b/app/views/user_mailer/wiki_page_updated.text.erb@@ -27,9 +27,11 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<%= t(:mail_body_wiki_page_updated,- id: @wiki_page.title,- author: @wiki_page.journals.last.user) %>+<%= t(+ :mail_body_wiki_page_updated,+ id: @wiki_page.title,+ author: @wiki_page.journals.last.user+ ) %><%= @wiki_page.journals.last.notes %><%= project_wiki_url(@wiki_page.project, @wiki_page) %>diff --git a/app/views/users/_consent.html.erb b/app/views/users/_consent.html.erbindex c3dde623d86..ee2c08b82c9 100644--- a/app/views/users/_consent.html.erb+++ b/app/views/users/_consent.html.erb@@ -2,11 +2,13 @@<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 }),- off_text: t(:label_never),- off_description: link_translate("consent.not_yet_consented", links: { consent_settings: consent_link })- }) %>+ <%= 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 }),+ off_text: t(:label_never),+ off_description: link_translate("consent.not_yet_consented", links: { consent_settings: consent_link })+ }+ ) %></section>diff --git a/app/views/users/_groups.html.erb b/app/views/users/_groups.html.erbindex b8859889981..fbd53a1bedd 100644--- a/app/views/users/_groups.html.erb+++ b/app/views/users/_groups.html.erb@@ -28,7 +28,7 @@ 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,diff --git a/app/views/users/_preferences.html.erb b/app/views/users/_preferences.html.erbindex 80adc6593a6..60b7eae2ddb 100644--- a/app/views/users/_preferences.html.erb+++ b/app/views/users/_preferences.html.erb@@ -28,11 +28,11 @@ See COPYRIGHT and LICENSE files for more details.++#%><%= fields_for :pref, @user.pref, builder: TabularFormBuilder, lang: current_language do |pref_fields| %><%= render Settings::TimeZoneSettingComponent.new(- "time_zone",- form: pref_fields,- include_blank: false,- container_class: (defined? input_size) ? "-#{input_size}" : "-wide"- ) %>+ "time_zone",+ form: pref_fields,+ include_blank: false,+ container_class: (defined? input_size) ? "-#{input_size}" : "-wide"+ ) %><div class="form--field"><%= pref_fields.select :theme, theme_options_for_select, container_class: "-middle" %><div class="form--field-instructions">diff --git a/app/views/users/_toolbar.html.erb b/app/views/users/_toolbar.html.erbindex d09c22e236c..c474dc93267 100644--- a/app/views/users/_toolbar.html.erb+++ b/app/views/users/_toolbar.html.erb@@ -35,9 +35,11 @@ See COPYRIGHT and LICENSE files for more details.</li><% if current_user.allowed_globally?(:create_user) && current_user.id != @user.id %><li class="toolbar-item hidden-for-tablet">- <%= form_for(@user,- url: { action: :resend_invitation },- method: :post) do |_form| %>+ <%= form_for(+ @user,+ url: { action: :resend_invitation },+ method: :post+ ) do |_form| %><button class="button" title="<%= t(:tooltip_resend_invitation) %>"><%= op_icon("button--icon icon-mail1") %><span class="button--text"><%= t(:label_send_invitation) %></span>diff --git a/app/views/users/change_status_info.html.erb b/app/views/users/change_status_info.html.erbindex 415fbb92cbf..7199e6916ac 100644--- a/app/views/users/change_status_info.html.erb+++ b/app/views/users/change_status_info.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.++#%>-<% html_title(t(:label_administration), "#{ t(:label_change_status_of_user, username: @user.name)}") -%>+<% html_title(t(:label_administration), "#{t(:label_change_status_of_user, username: @user.name)}") -%><% local_assigns[:additional_breadcrumb] = @user.name %>-<% new_status = t("user.#{@status_change}") %>+<% 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 %><section class="form--section"><h3 class="form--section-title">@@ -43,21 +43,31 @@ See COPYRIGHT and LICENSE files for more details.<%=render(AttributeGroups::AttributeGroupComponent.new) do |component|- component.with_attribute(key: User.human_attribute_name(:login),- value: @user.login)+ component.with_attribute(+ key: User.human_attribute_name(:login),+ value: @user.login+ )- component.with_attribute(key: User.human_attribute_name(:mail),- value: @user.mail)+ component.with_attribute(+ key: User.human_attribute_name(:mail),+ value: @user.mail+ )- component.with_attribute(key: User.human_attribute_name(:name),- value: @user.name)+ component.with_attribute(+ key: User.human_attribute_name(:name),+ value: @user.name+ )- component.with_attribute(key: t(:label_current_status),- value: full_user_status(@user, true))+ component.with_attribute(+ key: t(:label_current_status),+ value: full_user_status(@user, true)+ )- component.with_attribute(key: t(:status_change),- value: new_status)- end+ component.with_attribute(+ key: t(:status_change),+ value: new_status+ )+ end%></section>diff --git a/app/views/users/deletion_info.html.erb b/app/views/users/deletion_info.html.erbindex f2d92f60c32..62ab71784f6 100644--- a/app/views/users/deletion_info.html.erb+++ b/app/views/users/deletion_info.html.erb@@ -28,17 +28,18 @@ See COPYRIGHT and LICENSE files for more details.++#%><% layout = local_assigns[:layout] %>-<% html_title(layout== "my" ? t(:label_my_account) : t(:label_administration), "#{ t('account.deletion_info.heading', name: @user.name)}") -%>+<% html_title(layout == "my" ? t(:label_my_account) : t(:label_administration), "#{t('account.deletion_info.heading', name: @user.name)}") -%><%= render ::Users::DeletePageHeaderComponent.new(layout: layout, user: @user) %><%= labelled_tabular_form_for(- :user,- url: user_path(@user),- html: {- method: :delete, class: "confirm_required form danger-zone",- data: password_confirmation_data_attribute- }) do %>+ :user,+ url: user_path(@user),+ html: {+ 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">@@ -57,15 +58,17 @@ See COPYRIGHT and LICENSE files for more details.<span><%= t("account.deletion_info.info.#{User.current == @user ? 'self' : 'other'}") %></span></p><p>- <%= t("account.deletion_info.login_verification.#{User.current == @user ? 'self' : 'other'}",- name: "<em class=\"danger-zone--expected-value\">#{h(@user.login)}</em>").html_safe %>+ <%= t(+ "account.deletion_info.login_verification.#{User.current == @user ? 'self' : 'other'}",+ name: "<em class=\"danger-zone--expected-value\">#{h(@user.login)}</em>"+ ).html_safe %></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"- end %>+ concat content_tag :i, "", class: "button--icon icon-delete"+ concat content_tag :span, t(:button_delete), class: "button--text"+ end %></div></section></div>diff --git a/app/views/users/form/_preferences.html.erb b/app/views/users/form/_preferences.html.erbindex a9729b8c770..fe723dd53a3 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/_internal_password.html.erb b/app/views/users/form/authentication/_internal_password.html.erbindex a4b666e5b6a..3551be21483 100644--- a/app/views/users/form/authentication/_internal_password.html.erb+++ b/app/views/users/form/authentication/_internal_password.html.erb@@ -26,7 +26,7 @@required: @user.new_record?,disabled: assign_random_password_enabled,data: {- 'disable-when-checked-target': "effect"+ 'disable-when-checked-target': "effect"},container_class: "-middle" %><div class="form--field-instructions">@@ -48,9 +48,11 @@<div class="form--field send-information"><%= styled_label_tag "send_information", t(:label_send_information) %><div class="form--field-container">- <%= styled_check_box_tag("send_information",- "1",- true) %>+ <%= styled_check_box_tag(+ "send_information",+ "1",+ true+ ) %></div></div><% end -%>diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erbindex 54aa510704a..d7afd805ede 100644--- a/app/views/users/index.html.erb+++ b/app/views/users/index.html.erb@@ -32,4 +32,4 @@ See COPYRIGHT and LICENSE files for more details.<%= render Users::IndexSubHeaderComponent.new(groups: @groups, status: @status, params: params) %>-<%= render Users::TableComponent.new(rows: @users, current_user: ) %>+<%= render Users::TableComponent.new(rows: @users, current_user:) %>diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erbindex 4e2d796c3d8..65ec53cc2e8 100644--- a/app/views/users/new.html.erb+++ b/app/views/users/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_user_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_users_path, text: t(:label_user_and_permission) },- { href: users_path, text: t(:label_user_plural) },- t(:label_user_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_users_path, text: t(:label_user_and_permission) },+ { href: users_path, text: t(:label_user_plural) },+ t(:label_user_new)]+ )end%>diff --git a/app/views/versions/_overview.html.erb b/app/views/versions/_overview.html.erbindex e1dfc071411..bfd960ee9b0 100644--- a/app/views/versions/_overview.html.erb+++ b/app/views/versions/_overview.html.erb@@ -58,14 +58,18 @@ See COPYRIGHT and LICENSE files for more details.<% done = version.completed_percent - closed %><%= 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)) %>+ <%= 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) %>%) - <%= 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)) %>+ <%= 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) %>%)<% if version.projects.archived.exists? %><%= op_icon("icon-warning", title: I18n.t("versions.overview.work_packages_in_archived_projects")) %>diff --git a/app/views/versions/_roadmap_version_links.html.erb b/app/views/versions/_roadmap_version_links.html.erbindex 1cb9b19c901..980260d981a 100644--- a/app/views/versions/_roadmap_version_links.html.erb+++ b/app/views/versions/_roadmap_version_links.html.erb@@ -2,7 +2,13 @@<% @versions.each do |version| %><%= link_to format_version_name(version),- project_roadmap_path({ anchor: link_to_version_id(version) }.merge(params.permit(:completed,- :with_subprojects,- type_ids: []).to_h)) %><br>+ project_roadmap_path(+ { anchor: link_to_version_id(version) }.merge(+ params.permit(+ :completed,+ :with_subprojects,+ type_ids: []+ ).to_h+ )+ ) %><br><% end %>diff --git a/app/views/versions/edit.html.erb b/app/views/versions/edit.html.erbindex bdbde16182e..0c3bbba6650 100644--- a/app/views/versions/edit.html.erb+++ b/app/views/versions/edit.html.erb@@ -27,15 +27,17 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% html_title( @version.name, t(:label_version_edit)) %>+<% html_title(@version.name, t(:label_version_edit)) %><%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @version.name }- 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: project_settings_versions_path(@project.id), text: I18n.t("label_version_plural")},- @version.name])+ 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: project_settings_versions_path(@project.id), text: I18n.t("label_version_plural") },+ @version.name]+ )end%>diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erbindex 98e45f52fcb..3651e156051 100644--- a/app/views/versions/index.html.erb+++ b/app/views/versions/index.html.erb@@ -30,22 +30,25 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_roadmap) }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- t(:label_roadmap)- ])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ t(:label_roadmap)]+ )end%><%= render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- 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|- button.with_leading_visual_icon(icon: :plus)- t("activerecord.models.version")- end-end %>+ subheader.with_action_button(+ scheme: :primary,+ 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|+ button.with_leading_visual_icon(icon: :plus)+ t("activerecord.models.version")+ end+ end %><% if @versions.empty? %><%= no_results_box %>@@ -55,7 +58,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>diff --git a/app/views/versions/new.html.erb b/app/views/versions/new.html.erbindex c105eed38a2..140aa735cba 100644--- a/app/views/versions/new.html.erb+++ b/app/views/versions/new.html.erb@@ -31,11 +31,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_version_new) }- 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: project_settings_versions_path(@project.id), text: I18n.t("label_version_plural") },- t(:label_version_new)- ])+ 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: project_settings_versions_path(@project.id), text: I18n.t("label_version_plural") },+ t(:label_version_new)]+ )end%>diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erbindex 23cd7c67758..fbc29160d9e 100644--- a/app/views/versions/show.html.erb+++ b/app/views/versions/show.html.erb@@ -29,50 +29,57 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @version.name }- 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: project_settings_versions_path(@project.id), text: I18n.t("label_version_plural") },- @version.name- ])+ 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: project_settings_versions_path(@project.id), text: I18n.t("label_version_plural") },+ @version.name]+ )if authorize_for(:versions, :edit)- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_version_path(@version),- aria: { label: I18n.t(:button_edit) },- data: { test_selector: "version-edit-button" },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ href: edit_version_path(@version),+ aria: { label: I18n.t(:button_edit) },+ data: { test_selector: "version-edit-button" },+ title: I18n.t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)endendif authorize_for(:versions, :destroy)- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: version_path(@version),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :delete,- test_selector: "version-delete-button"- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: version_path(@version),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :delete,+ test_selector: "version-delete-button"+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)endendif 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: " ")),- 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|+ 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: " ")),+ 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|button.with_leading_visual_icon(icon: :pencil)t(:button_edit_associated_wikipage, page_title: truncate(@version.wiki_page_title, length: 50, separator: " "))enddiff --git a/app/views/wiki/_wiki_export_modal.html.erb b/app/views/wiki/_wiki_export_modal.html.erbindex 47771e7ca14..b50d3559403 100644--- a/app/views/wiki/_wiki_export_modal.html.erb+++ b/app/views/wiki/_wiki_export_modal.html.erb@@ -36,23 +36,23 @@ See COPYRIGHT and LICENSE files for more details.<ul class="op-export-options"><li class="op-export-options--option"><%= link_to url_for(- controller: "/activities",- action: "index",- show_wiki_edits: 1,- apply: true,- key: User.current.rss_key,- format: "atom",- ), class: "op-export-options--option-link" do %>+ 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><% 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 %>+ 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><% end %>diff --git a/app/views/wiki/annotate.html.erb b/app/views/wiki/annotate.html.erbindex 36e352bdca4..7a6d6aad2e3 100644--- a/app/views/wiki/annotate.html.erb+++ b/app/views/wiki/annotate.html.erb@@ -28,17 +28,17 @@ See COPYRIGHT and LICENSE files for more details.++#%><% html_title t(:project_module_wiki), t(:label_history), t(:text_comment_wiki_page, page: @page.title) %>-<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>+<% 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: "edit", id: @page}, class: "button", accesskey: accesskey(:edit)) do %>+ <%= 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 %>+ <%= link_to({ action: "history", id: @page }, class: "button") do %><%= op_icon("button--icon icon-wiki") %><span class="button--text"><%= t(:label_history) %></span><% end %>@@ -49,7 +49,7 @@ See COPYRIGHT and LICENSE files for more details.<%= 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) } %>+<% colors = Hash.new { |k, v| k[v] = (k.size % 12) } %><table class="filecontent annotate"><tbody><% line_num = 1 %>diff --git a/app/views/wiki/destroy.html.erb b/app/views/wiki/destroy.html.erbindex 6638bf7341e..d1f5d0bb3db 100644--- a/app/views/wiki/destroy.html.erb+++ b/app/views/wiki/destroy.html.erb@@ -53,14 +53,14 @@ See COPYRIGHT and LICENSE files for more details.<%= label_tag "reassign_to_id", t(:description_wiki_subpages_reassign), class: "hidden-for-sighted" %><%= styled_select_tag "reassign_to_id",- options_for_select(wiki_page_options_for_select(@reassignable_to)),- { container_class: "-wide"} %>+ options_for_select(wiki_page_options_for_select(@reassignable_to)),+ { container_class: "-wide" } %><% csp_onclick("jQuery('#todo_reassign').attr('checked', true)", "#reassign_to_id") %></div><% end %><%= 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.erbindex 4a81a4b0810..f43fb6bc839 100644--- a/app/views/wiki/diff.html.erb+++ b/app/views/wiki/diff.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.++#%>-<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>+<% 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 %>+ <%= link_to({ action: "history", id: @page }, class: "button") do %><%= op_icon("button--icon icon-wiki") %><span class="button--text"><%= t(:label_history) %></span><% end %>diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erbindex 981b1f545ce..01adbead062 100644--- a/app/views/wiki/edit.html.erb+++ b/app/views/wiki/edit.html.erb@@ -27,14 +27,14 @@ See COPYRIGHT and LICENSE files for more details.++#%><% html_title t(:label_edit), @page.title %>-<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>+<% 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.erbindex c369d5532dd..c0956bed7c4 100644--- a/app/views/wiki/edit_parent_page.html.erb+++ b/app/views/wiki/edit_parent_page.html.erb@@ -30,7 +30,7 @@ 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) %>-<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)] )) %>+<% 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" %><%= labelled_tabular_form_for @page, url: { id: @page, action: "update_parent_page" } do |f| %>diff --git a/app/views/wiki/export_multiple.html.erb b/app/views/wiki/export_multiple.html.erbindex 4e240f477ca..f40668fa2d4 100644--- a/app/views/wiki/export_multiple.html.erb+++ b/app/views/wiki/export_multiple.html.erb@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.<% @pages.each do |page| %><hr><a name="<%= h(page.to_param) %>" />- <%= format_text page ,:text, wiki_links: :anchor %>+ <%= format_text page, :text, wiki_links: :anchor %><% end %></body></html>diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erbindex c1cf425a06a..bd2d2d17743 100644--- a/app/views/wiki/history.html.erb+++ b/app/views/wiki/history.html.erb@@ -28,9 +28,9 @@ See COPYRIGHT and LICENSE files for more details.++#%><%= toolbar title: @page.title %><% 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)] )) %>+<% 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 %>+<%= form_tag({ action: "diff" }, method: :get) do %><div class="generic-table--container"data-application-target="dynamic"data-controller="journal-history">@@ -122,28 +122,32 @@ See COPYRIGHT and LICENSE files for more details.<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",- ver.version,- (line_num==1),- class: "history-cb-from",- id: "cb-#{line_num}",- data: {- 'journal-history-target': "fromVersion",- action: "journal-history#selectToVersion"- }) %>+ <%= radio_button_tag(+ "version_from",+ ver.version,+ (line_num == 1),+ class: "history-cb-from",+ id: "cb-#{line_num}",+ data: {+ '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",- ver.version,- (line_num==2),- id: "cbto-#{line_num}",- data: {- 'journal-history-target': "toVersion",- action: "journal-history#selectFromVersion"- }) %>+ <%= radio_button_tag(+ "version_to",+ ver.version,+ (line_num == 2),+ id: "cbto-#{line_num}",+ data: {+ 'journal-history-target': "toVersion",+ action: "journal-history#selectFromVersion"+ }+ ) %><% end %></td><td class="updated_at"><%= format_time(ver.created_at) %></td>diff --git a/app/views/wiki/index.html.erb b/app/views/wiki/index.html.erbindex a22836e2da4..5593a6f6ac0 100644--- a/app/views/wiki/index.html.erb+++ b/app/views/wiki/index.html.erb@@ -45,12 +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")) %>+ <%= no_results_box(+ action_url: new_project_wiki_path(@project),+ display_action: authorize_for("wiki", "new")+ ) %><% end %><% content_for :header_tags do %>diff --git a/app/views/wiki/new.html.erb b/app/views/wiki/new.html.erbindex fb737abb1ba..e4baa94c788 100644--- a/app/views/wiki/new.html.erb+++ b/app/views/wiki/new.html.erb@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.url: create_project_wiki_index_path(project_id: @project),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.erbindex 698ec5c58ac..6f184fbe335 100644--- a/app/views/wiki/rename.html.erb+++ b/app/views/wiki/rename.html.erb@@ -29,7 +29,7 @@ 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)] )) %>+<% 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" %><%= labelled_tabular_form_for @page, url: { id: @page, action: "rename" }, as: :page do |f| %>diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erbindex f2c6645793c..1180b547e48 100644--- a/app/views/wiki/show.html.erb+++ b/app/views/wiki/show.html.erb@@ -39,14 +39,16 @@ 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 %>+ <%= 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 %>@@ -54,10 +56,12 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% if @page.current_version? %><li class="toolbar-item">- <%= link_to_if_authorized({ action: "edit", id: @page },- { aria: { label: t(:button_edit) },- title: t(:button_edit),- class: "button" }) do %>+ <%= 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") %><span class="button--text"><%= t(:button_edit) %></span><% end %>@@ -68,7 +72,7 @@ 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 %>@@ -80,21 +84,29 @@ See COPYRIGHT and LICENSE files for more details.</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")) %>- <%= li_unless_nil(link_to_if_authorized(t(:button_change_parent_page),- {action: "edit_parent_page", id: @page},- class: "icon-context icon-link")) %>+ <%= li_unless_nil(+ link_to_if_authorized(+ t(:button_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"+ )+ ) %><% 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),"",@@ -117,12 +129,12 @@ See COPYRIGHT and LICENSE files for more details.<%= 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 %>-<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)])) %>+<% breadcrumb_paths(*(@page.ancestors.reverse.collect { |parent| link_to h(parent.breadcrumb_title), { id: parent, project_id: parent.project } } + [h(@page.breadcrumb_title)])) %><% if params[:version] %><hr>diff --git a/app/views/wiki_menu_items/edit.html.erb b/app/views/wiki_menu_items/edit.html.erbindex 5621f7a96c8..57f07420865 100644--- a/app/views/wiki_menu_items/edit.html.erb+++ b/app/views/wiki_menu_items/edit.html.erb@@ -29,11 +29,11 @@ See COPYRIGHT and LICENSE files for more details.<%= error_messages_for "wiki_menu_item" %>-<% breadcrumb_paths(*@page.ancestors.reverse.collect {|parent| link_to h(parent.title), {id: parent.title, project_id: parent.project}}.push(@page_title)) %>+<% 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 %>@@ -55,15 +55,15 @@ See COPYRIGHT and LICENSE files for more details.<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.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/work_package_mailer/watcher_changed.html.erb b/app/views/work_package_mailer/watcher_changed.html.erbindex 26d14d471c5..9be970cecbc 100644--- a/app/views/work_package_mailer/watcher_changed.html.erb+++ b/app/views/work_package_mailer/watcher_changed.html.erb@@ -30,8 +30,10 @@ See COPYRIGHT and LICENSE files for more details.<hr><%= 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,- object: @work_package,- project: @work_package.project) %>+ <%= format_text(+ t(:text_latest_note, note: last_work_package_note(@work_package)),+ only_path: false,+ object: @work_package,+ project: @work_package.project+ ) %></p>diff --git a/app/views/work_packages/bulk/_errors.html.erb b/app/views/work_packages/bulk/_errors.html.erbindex 24b4495842d..720e063cdd4 100644--- a/app/views/work_packages/bulk/_errors.html.erb+++ b/app/views/work_packages/bulk/_errors.html.erb@@ -6,21 +6,27 @@%><% if total_count - error_count == 0 %>- <%= t("work_packages.bulk.none_could_be_saved",- total: total_count) %>+ <%= 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) %>+ success: total_count - error_count+ ) %><%= 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) %>+ selected: selected_count+ ) %><% end %><ul>diff --git a/app/views/work_packages/bulk/destroy.html.erb b/app/views/work_packages/bulk/destroy.html.erbindex d8ba4ec9038..1e052bbee7f 100644--- a/app/views/work_packages/bulk/destroy.html.erb+++ b/app/views/work_packages/bulk/destroy.html.erb@@ -55,7 +55,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field -trailing-label"><%= 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">@@ -64,8 +64,10 @@ See COPYRIGHT and LICENSE files for more details.<%= styled_label_tag "to_do_action_reassign", t(:text_reassign) %><div class="form--field-container"><%= 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") %>+ <% csp_onclick(+ 'if(jQuery("#to_do_action_reassign").prop("checked")) { jQuery("#to_do_reassign_to_id").focus(); }',+ "#reassign"+ ) %></div></div></div>@@ -83,7 +85,7 @@ See COPYRIGHT and LICENSE files for more details.<%= styled_button_tag title: t(:button_delete), class: "-primary" doconcat content_tag :i, "", class: "button--icon icon-delete"concat content_tag :span, t(:button_delete), class: "button--text"- end %>+ end %><%= link_to_function t(:button_cancel),"history.back()",title: t(:button_cancel),diff --git a/app/views/work_packages/bulk/edit.html.erb b/app/views/work_packages/bulk/edit.html.erbindex 3ffa2e4423d..605239bfaee 100644--- a/app/views/work_packages/bulk/edit.html.erb+++ b/app/views/work_packages/bulk/edit.html.erb@@ -39,8 +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 %><% end %>@@ -80,44 +82,54 @@ See COPYRIGHT and LICENSE files for more details.<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: "") ++ <%= 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)) %>+ 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: "") ++ <%= 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)) %>+ options_from_collection_for_select(@responsibles, :id, :name)+ ) %></div></div><% if @project %><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: "") ++ <%= 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)) %>+ options_from_collection_for_select(@project.categories, :id, :name)+ ) %></div></div>- <% #TODO: allow editing versions when multiple projects %>+# TODO: allow editing versions when multiple projects %><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: "") ++ <%= 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)) %>+ 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 %>diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erbindex 3f70765fb6c..4a5f6ade398 100644--- a/app/views/work_packages/moves/new.html.erb+++ b/app/views/work_packages/moves/new.html.erb@@ -42,14 +42,16 @@ See COPYRIGHT and LICENSE files for more details.<% end -%></ul>-<%= 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")- },- class: "-wide-labels augment--refresh-on-form-changes") do %>+<%= 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")+ },+ class: "-wide-labels augment--refresh-on-form-changes"+ ) do %><% @work_packages.each do |wp| %><%= hidden_field_tag "ids[]", wp.id %><% end %>@@ -81,12 +83,14 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field"><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: "") +- options_from_collection_for_select(@types, "id", "name", @target_type&.id),- data: {- 'action': "change->refresh-on-form-changes#triggerReload"- }) %>+ <%= styled_select_tag(+ "new_type_id",+ 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"+ }+ ) %></div><% if @unavailable_type_in_target_project %><div class="op-toast -warning icon-warning">@@ -105,50 +109,62 @@ 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: "") +- options_from_collection_for_select(@available_statuses, :id, :name)) %>+ <%= 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: "") +- version_options_for_select(@available_versions)) %>+ <%= 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: "") +- options_from_collection_for_select(IssuePriority.active, :id, :name)) %>+ <%= 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") +- options_from_collection_for_select(Principal.possible_assignee(@target_project), :id, :name)) %>+ <%= 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") +- options_from_collection_for_select(Principal.possible_assignee(@target_project), :id, :name)) %>+ <%= 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 => "") : "") ++ <%= 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)) %>+ options_from_collection_for_select(@target_project.budgets, :id, :subject)+ ) %></div></div><div class="grid-content medium-6">diff --git a/app/views/work_packages/reports/_report.html.erb b/app/views/work_packages/reports/_report.html.erbindex f8320605da6..dac2caea6d8 100644--- a/app/views/work_packages/reports/_report.html.erb+++ b/app/views/work_packages/reports/_report.html.erb@@ -63,40 +63,50 @@ See COPYRIGHT and LICENSE files for more details.<tr><td><%= link_to h(row.name),- project_report_property_path((row.is_a?(Project) ? row : @project),- "#{report.field}",- row.id) %>+ project_report_property_path(+ (row.is_a?(Project) ? row : @project),+ "#{report.field}",+ row.id+ ) %></td><% for status in report.statuses %><td><%= aggregate_link report.data,- { report.field => row.id, "status_id" => status.id },- project_report_property_status_path((row.is_a?(Project) ? row : @project),- status.id,- "#{report.field}",- row.id) %>+ { report.field => row.id, "status_id" => status.id },+ project_report_property_status_path(+ (row.is_a?(Project) ? row : @project),+ status.id,+ "#{report.field}",+ row.id+ ) %></td><% end %><td><%= aggregate_link report.data,- { report.field => row.id, "closed" => 0 },- project_report_property_open_path((row.is_a?(Project) ? row : @project),- "#{report.field}",- row.id) %>+ { report.field => row.id, "closed" => 0 },+ project_report_property_open_path(+ (row.is_a?(Project) ? row : @project),+ "#{report.field}",+ row.id+ ) %></td><td><%= aggregate_link report.data,- { report.field => row.id, "closed" => 1 },- project_report_property_closed_path((row.is_a?(Project) ? row : @project),- "#{report.field}",- row.id) %>+ { report.field => row.id, "closed" => 1 },+ project_report_property_closed_path(+ (row.is_a?(Project) ? row : @project),+ "#{report.field}",+ row.id+ ) %></td><td align="center"><%= aggregate_link report.data,- { report.field => row.id },- project_report_property_path((row.is_a?(Project) ? row : @project),- "#{report.field}",- row.id) %>+ { report.field => row.id },+ project_report_property_path(+ (row.is_a?(Project) ? row : @project),+ "#{report.field}",+ row.id+ ) %></td></tr><% end %>diff --git a/app/views/work_packages/reports/_report_category.html.erb b/app/views/work_packages/reports/_report_category.html.erbindex 69c4db9360d..4e01dec53b7 100644--- a/app/views/work_packages/reports/_report_category.html.erb+++ b/app/views/work_packages/reports/_report_category.html.erb@@ -31,10 +31,12 @@ 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},- title: t(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type)),- class: "no-decoration-on-hover") %></span>+ <%= 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></div></div>diff --git a/app/views/work_packages/reports/report.html.erb b/app/views/work_packages/reports/report.html.erbindex 91cb752dfeb..4c044a3f850 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.erbindex 216a7b91169..aa9acf1b476 100644--- a/app/views/work_packages/reports/report_details.html.erb+++ b/app/views/work_packages/reports/report_details.html.erb@@ -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.erbindex 6437f5a6035..1e67b5f32db 100644--- a/app/views/workflows/_form.html.erb+++ b/app/views/workflows/_form.html.erb@@ -49,11 +49,13 @@ 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)}"),- "OpenProject.helpers.toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')",- class: "no-decoration-on-hover",- title: "#{t(:label_check_uncheck_all_in_column)}",- alt: "#{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",+ title: "#{t(:label_check_uncheck_all_in_column)}",+ alt: "#{t(:label_check_uncheck_all_in_column)}"+ ) %><%= h new_status.name %></th><% end %>@@ -63,17 +65,19 @@ 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)}"),- "OpenProject.helpers.toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",- class: "no-decoration-on-hover",- title: "#{t(:label_check_uncheck_all_in_row)}",- alt: "#{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",+ title: "#{t(:label_check_uncheck_all_in_row)}",+ alt: "#{t(:label_check_uncheck_all_in_row)}"+ ) %><%= h old_status.name %></td><% for new_status in @statuses -%><td>- <%= check_box_tag "status[#{ old_status.id }][#{new_status.id}][]", name, workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id},- class: "old-status-#{old_status.id} new-status-#{new_status.id}" %>+ <%= check_box_tag "status[#{old_status.id}][#{new_status.id}][]", name, workflows.detect { |w| w.old_status_id == old_status.id && w.new_status_id == new_status.id },+ class: "old-status-#{old_status.id} new-status-#{new_status.id}" %></td><% end -%></tr>diff --git a/app/views/workflows/copy.html.erb b/app/views/workflows/copy.html.erbindex 1a3b74e2a01..f925c158e06 100644--- a/app/views/workflows/copy.html.erb+++ b/app/views/workflows/copy.html.erb@@ -37,17 +37,21 @@ See COPYRIGHT and LICENSE files for more details.<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",- "<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") %>+ <%= 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"+ ) %></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",- "<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") %>+ <%= 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"+ ) %></div></div></div>diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erbindex 83baa2aa036..f04cce47057 100644--- a/app/views/workflows/edit.html.erb+++ b/app/views/workflows/edit.html.erb@@ -63,7 +63,7 @@ See COPYRIGHT and LICENSE files for more details.</fieldset><% end %><% if @type && @role && @statuses.any? %>- <%= form_tag({action: :update}, id: "workflow_form", method: :patch) do %>+ <%= form_tag({ action: :update }, id: "workflow_form", method: :patch) do %><%= hidden_field_tag "type_id", @type.id %><%= hidden_field_tag "role_id", @role.id %>diff --git a/app/views/workflows/show.html.erb b/app/views/workflows/show.html.erbindex 60895aafc99..f852a27ba13 100644--- a/app/views/workflows/show.html.erb+++ b/app/views/workflows/show.html.erb@@ -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/lib/primer/open_project/forms/autocompleter.html.erb b/lib/primer/open_project/forms/autocompleter.html.erbindex cb6e71d9010..4d35bdeb290 100644--- a/lib/primer/open_project/forms/autocompleter.html.erb+++ b/lib/primer/open_project/forms/autocompleter.html.erb@@ -1,9 +1,11 @@<%= render(FormControl.new(input: @input, data: @wrapper_data_attributes)) do %><%= content_tag(:div, **@field_wrap_arguments) do %><%= content_tag(:div, class: ["form-autocompleter-container", ("projects-autocomplete-with-search-icon" if @with_search_icon)]) do %>- <%= angular_component_tag(@autocomplete_component,- data: @autocomplete_data,- inputs: @autocomplete_inputs) %>+ <%= angular_component_tag(+ @autocomplete_component,+ data: @autocomplete_data,+ inputs: @autocomplete_inputs+ ) %><% end %><% end %><% end %>diff --git a/lib/primer/open_project/forms/color_select.html.erb b/lib/primer/open_project/forms/color_select.html.erbindex fe59102fab5..7713e5d166d 100644--- a/lib/primer/open_project/forms/color_select.html.erb+++ b/lib/primer/open_project/forms/color_select.html.erb@@ -1,12 +1,14 @@<%= render(FormControl.new(input: @input)) do %><%= content_tag(:div, **@field_wrap_arguments) do %><%= builder.hidden_field :color_id %>- <%= angular_component_tag("opce-colors-autocompleter",- class: "colors-autocomplete form--select-container",- data: {- colors:,- classes: "ng-select--primerized",- update_input: "#{builder.object_name}[color_id]"- }) %>+ <%= angular_component_tag(+ "opce-colors-autocompleter",+ class: "colors-autocomplete form--select-container",+ data: {+ colors:,+ classes: "ng-select--primerized",+ update_input: "#{builder.object_name}[color_id]"+ }+ ) %><% end %><% end %>diff --git a/lib/primer/open_project/forms/date_picker.html.erb b/lib/primer/open_project/forms/date_picker.html.erbindex 6cb26fddf5c..147f06d4284 100644--- a/lib/primer/open_project/forms/date_picker.html.erb+++ b/lib/primer/open_project/forms/date_picker.html.erb@@ -40,13 +40,13 @@ See COPYRIGHT and LICENSE files for more details.<% end %><%= render Primer::ConditionalWrapper.new(condition: @input.auto_check_src, tag: "auto-check", csrf: auto_check_authenticity_token, src: @input.auto_check_src) do %><%= angular_component_tag @datepicker_options.fetch(:component),- inputs: @datepicker_options.merge(- id: @datepicker_options.fetch(:id) { builder.field_id(@input.name) },- name: @datepicker_options.fetch(:name) { builder.field_name(@input.name) },- value: @datepicker_options.fetch(:value) { @input.input_arguments[:value] || builder.object&.send(@input.name) },- inputClassNames: @datepicker_options.fetch(:class) { @input.input_arguments[:class] },- dataAction: @datepicker_options.fetch(:data, {}).fetch(:action, nil)- ) %>+ inputs: @datepicker_options.merge(+ id: @datepicker_options.fetch(:id) { builder.field_id(@input.name) },+ name: @datepicker_options.fetch(:name) { builder.field_name(@input.name) },+ value: @datepicker_options.fetch(:value) { @input.input_arguments[:value] || builder.object&.send(@input.name) },+ inputClassNames: @datepicker_options.fetch(:class) { @input.input_arguments[:class] },+ dataAction: @datepicker_options.fetch(:data, {}).fetch(:action, nil)+ ) %><% end %><% end %><% end %>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.erbindex 4f226ff8826..de536b7b174 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@@ -2,11 +2,13 @@<%= render(Primer::BaseComponent.new(tag: :div, display: :inline_flex, direction: :row, align_items: :center)) do %><% if storage_oauth_access_granted? %><%=- render(Primer::Beta::Button.new(- scheme: :default,- display: :inline_block,- data: @select_folder_button_options.delete(:data) { {} }- )) do |button|+ render(+ Primer::Beta::Button.new(+ scheme: :default,+ display: :inline_block,+ data: @select_folder_button_options.delete(:data) { {} }+ )+ ) do |button|button.with_leading_visual_icon(icon: "file-directory")I18n.t(:"storages.buttons.select_folder")end@@ -23,8 +25,8 @@%><% else %><%= angular_component_tag "opce-storage-login-button",- data: @storage_login_button_options.delete(:data) { {} },- inputs: @storage_login_button_options.delete(:inputs) { {} } %>+ data: @storage_login_button_options.delete(:data) { {} },+ inputs: @storage_login_button_options.delete(:inputs) { {} } %><% end %><% end %><% end %>diff --git a/lookbook/docs/styles/deprecated/04-spacings.md.erb b/lookbook/docs/styles/deprecated/04-spacings.md.erbindex ed6c04aedfc..609ba274047 100644--- a/lookbook/docs/styles/deprecated/04-spacings.md.erb+++ b/lookbook/docs/styles/deprecated/04-spacings.md.erb@@ -9,7 +9,7 @@ title: Spacingstokens = 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 }+ .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.erbindex ba7ff4f6410..4160cc0866a 100644--- a/lookbook/docs/styles/deprecated/05-shadows.md.erb+++ b/lookbook/docs/styles/deprecated/05-shadows.md.erb@@ -18,7 +18,7 @@ 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 }+ .sort_by { |k,| k.split("-")[2].gsub("_", ".").to_f }.to_h%>diff --git a/lookbook/previews/op_primer/form_preview/default.html.erb b/lookbook/previews/op_primer/form_preview/default.html.erbindex 629353265d7..2ffd40ab9c3 100644--- a/lookbook/previews/op_primer/form_preview/default.html.erb+++ b/lookbook/previews/op_primer/form_preview/default.html.erb@@ -9,10 +9,10 @@required: true,validation_message: answer.nil? ? "Field is required" : nil,caption: if answer.nil?- "Fill in the field to make the validation error instantly go away."- else- "Yay, no more errors!"- end,+ "Fill in the field to make the validation error instantly go away."+ else+ "Yay, no more errors!"+ end,input_width: :auto)enddiff --git a/lookbook/previews/open_project/common/autocomplete_preview/color.html.erb b/lookbook/previews/open_project/common/autocomplete_preview/color.html.erbindex 2b569dd9564..c2bed311c7f 100644--- a/lookbook/previews/open_project/common/autocomplete_preview/color.html.erb+++ b/lookbook/previews/open_project/common/autocomplete_preview/color.html.erb@@ -20,6 +20,7 @@<%= primer_form_with(model:,url: "/abc",- id: "asdf") do |f|- render(the_form.new(f))-end %>+ 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.erbindex 8371cf346f2..b6e26ac891c 100644--- a/lookbook/previews/open_project/common/autocomplete_preview/decorated.html.erb+++ b/lookbook/previews/open_project/common/autocomplete_preview/decorated.html.erb@@ -33,6 +33,7 @@<%= primer_form_with(url: "/abc",- id: "asdf") do |f|- render(the_form.new(f))-end %>+ 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.erbindex ae85675aed3..67d91c467bf 100644--- a/lookbook/previews/open_project/common/autocomplete_preview/project.html.erb+++ b/lookbook/previews/open_project/common/autocomplete_preview/project.html.erb@@ -21,6 +21,7 @@<%= primer_form_with(model:,url: "/abc",- id: "asdf") do |f|- render(the_form.new(f))-end %>+ 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.erbindex 896168682f2..e56c59f8d03 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@@ -22,6 +22,7 @@<%= primer_form_with(model:,url: "/abc",- id: "asdf") do |f|- render(the_form.new(f))-end %>+ 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.erbindex 36acea9a251..5b8c8797519 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@@ -22,6 +22,7 @@<%= primer_form_with(model:,url: "/abc",- id: "asdf") do |f|- render(the_form.new(f))-end %>+ 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.erbindex 75e82e0f85f..8585890a3b5 100644--- a/lookbook/previews/open_project/common/datepicker_preview/range.html.erb+++ b/lookbook/previews/open_project/common/datepicker_preview/range.html.erb@@ -2,47 +2,52 @@the_form = Class.new(ApplicationForm) doform do |query_form|query_form.range_date_picker(- name: :date,- label: "Date",- leading_visual: { icon: },- value: value,- datepicker_options: { inDialog: in_dialog }- )+ name: :date,+ label: "Date",+ leading_visual: { icon: },+ value: value,+ datepicker_options: { inDialog: in_dialog }+ )query_form.range_date_picker(- name: :date,- label: "Date",- leading_visual: { icon: },- value: value,- datepicker_options: { inDialog: in_dialog }- )+ name: :date,+ label: "Date",+ leading_visual: { icon: },+ value: value,+ datepicker_options: { inDialog: in_dialog }+ )query_form.range_date_picker(- name: :date,- label: "Date",- leading_visual: { icon: },- value: value,- datepicker_options: { inDialog: in_dialog }- )+ name: :date,+ label: "Date",+ leading_visual: { icon: },+ value: value,+ datepicker_options: { inDialog: in_dialog }+ )endend%><% if in_dialog %>- <%= render(Primer::Alpha::Dialog.new(title: "Dialog Title",- size: :large,- open: true,- id: "my-dialog")) do |d| %>+ <%= render(+ Primer::Alpha::Dialog.new(+ title: "Dialog Title",+ size: :large,+ open: true,+ id: "my-dialog"+ )+ ) do |d| %><% d.with_show_button { "Show dialog" } %><% d.with_header(variant: :medium) %><%= render(Primer::Alpha::Dialog::Body.new) do- primer_form_with(+ primer_form_with(url: "/abc",- id: "my-form") do |f|- render(the_form.new(f))- end- end %>+ id: "my-form"+ ) do |f|+ render(the_form.new(f))+ end+ end %><%= d.with_footer do %><%= render(Primer::Beta::Button.new(data: { "close-dialog-id": "my-dialog" })) { I18n.t(:button_cancel) } %>@@ -51,8 +56,9 @@<% end %><% else %><%= primer_form_with(- url: "/abc",- id: "my-form") do |f|- render(the_form.new(f))- end %>+ url: "/abc",+ id: "my-form"+ ) do |f|+ render(the_form.new(f))+ end %><% end %>diff --git a/lookbook/previews/open_project/common/datepicker_preview/single.html.erb b/lookbook/previews/open_project/common/datepicker_preview/single.html.erbindex 86e7c85a9c8..85c085bbb31 100644--- a/lookbook/previews/open_project/common/datepicker_preview/single.html.erb+++ b/lookbook/previews/open_project/common/datepicker_preview/single.html.erb@@ -2,47 +2,52 @@the_form = Class.new(ApplicationForm) doform do |query_form|query_form.single_date_picker(- name: :date,- label: "Date",- leading_visual: { icon: },- value: value.iso8601,- datepicker_options: { inDialog: in_dialog }- )+ name: :date,+ label: "Date",+ leading_visual: { icon: },+ value: value.iso8601,+ datepicker_options: { inDialog: in_dialog }+ )query_form.single_date_picker(- name: :date,- label: "Date",- leading_visual: { icon: },- value: value.iso8601,- datepicker_options: { inDialog: in_dialog }- )+ name: :date,+ label: "Date",+ leading_visual: { icon: },+ value: value.iso8601,+ datepicker_options: { inDialog: in_dialog }+ )query_form.single_date_picker(- name: :date,- label: "Date",- leading_visual: { icon: },- value: value.iso8601,- datepicker_options: { inDialog: in_dialog }- )+ name: :date,+ label: "Date",+ leading_visual: { icon: },+ value: value.iso8601,+ datepicker_options: { inDialog: in_dialog }+ )endend%><% if in_dialog %>- <%= render(Primer::Alpha::Dialog.new(title: "Dialog Title",- size: :large,- open: true,- id: "my-dialog")) do |d| %>+ <%= render(+ Primer::Alpha::Dialog.new(+ title: "Dialog Title",+ size: :large,+ open: true,+ id: "my-dialog"+ )+ ) do |d| %><% d.with_show_button { "Show dialog" } %><% d.with_header(variant: :medium) %><%= render(Primer::Alpha::Dialog::Body.new) do- primer_form_with(+ primer_form_with(url: "/abc",- id: "my-form") do |f|- render(the_form.new(f))- end- end %>+ id: "my-form"+ ) do |f|+ render(the_form.new(f))+ end+ end %><%= d.with_footer do %><%= render(Primer::Beta::Button.new(data: { "close-dialog-id": "my-dialog" })) { I18n.t(:button_cancel) } %>@@ -51,8 +56,9 @@<% end %><% else %><%= primer_form_with(- url: "/abc",- id: "my-form") do |f|- render(the_form.new(f))- end %>+ url: "/abc",+ id: "my-form"+ ) do |f|+ render(the_form.new(f))+ end %><% 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.erbindex bbb8c730f2b..ed6de4ad843 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@@ -1,6 +1,10 @@-<%= render(Primer::Alpha::Dialog.new(title: dialog_title,- size: :large,- id: dialog_id)) do |d| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: dialog_title,+ size: :large,+ id: dialog_id+ )+ ) do |d| %><% d.with_show_button { button_text } %><% d.with_header(variant: :large) %>diff --git a/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erb b/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erbindex 59c356db0c0..fb677fc4369 100644--- a/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erb+++ b/lookbook/previews/open_project/common/dialog_preview/confirmation.html.erb@@ -1,6 +1,10 @@-<%= render(Primer::Alpha::Dialog.new(title: dialog_title,- size: :large,- id: dialog_id)) do |d| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: dialog_title,+ size: :large,+ id: dialog_id+ )+ ) do |d| %><% d.with_show_button { button_text } %><% d.with_header(variant: :large) %>diff --git a/lookbook/previews/open_project/common/dialog_preview/form.html.erb b/lookbook/previews/open_project/common/dialog_preview/form.html.erbindex 585e37b4a7d..449853bca45 100644--- a/lookbook/previews/open_project/common/dialog_preview/form.html.erb+++ b/lookbook/previews/open_project/common/dialog_preview/form.html.erb@@ -36,19 +36,24 @@end%>-<%= render(Primer::Alpha::Dialog.new(title: dialog_title,- size: :large,- id: dialog_id)) do |d| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: dialog_title,+ size: :large,+ id: dialog_id+ )+ ) do |d| %><% d.with_show_button { button_text } %><% d.with_header(variant: :large) %><%= render(Primer::Alpha::Dialog::Body.new) do- primer_form_with(+ primer_form_with(url: "/abc",- id: form_id) do |f|- render(the_form.new(f))- end- end %>+ id: form_id+ ) do |f|+ render(the_form.new(f))+ end+ end %><%= d.with_footer do %><%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { I18n.t(:button_cancel) } %>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.erbindex fd39f526191..f73c7497a59 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@@ -17,6 +17,7 @@<%= primer_form_with(model:,url: "/abc",- id: "asdf") do |f|- render(the_form.new(f))-end %>+ id: "asdf"+ ) do |f|+ render(the_form.new(f))+ end %>diff --git a/lookbook/previews/open_project/common/submenu_preview/default.html.erb b/lookbook/previews/open_project/common/submenu_preview/default.html.erbindex 55bf76ce449..eebae924b49 100644--- a/lookbook/previews/open_project/common/submenu_preview/default.html.erb+++ b/lookbook/previews/open_project/common/submenu_preview/default.html.erb@@ -28,6 +28,6 @@<!-- Meant to be rendered inside the left-handed sidebar and is currently depending on that --><!-- Please note, that due to that not all styles are correctly applied in the lookbook --><%= render OpenProject::Common::SubmenuComponent.new(- sidebar_menu_items: sidebar_menu_items- ) %>+ sidebar_menu_items: sidebar_menu_items+ ) %></div>diff --git a/lookbook/previews/open_project/common/submenu_preview/playground.html.erb b/lookbook/previews/open_project/common/submenu_preview/playground.html.erbindex 0a70267bed6..3d6e13e1e7d 100644--- a/lookbook/previews/open_project/common/submenu_preview/playground.html.erb+++ b/lookbook/previews/open_project/common/submenu_preview/playground.html.erb@@ -14,8 +14,8 @@<!-- Meant to be rendered inside the left-handed sidebar and is currently depending on that --><!-- Please note, that due to that not all styles are correctly applied in the lookbook --><%= render OpenProject::Common::SubmenuComponent.new(- sidebar_menu_items: sidebar_menu_items,- searchable: searchable,- create_btn_options: create_btn_options- ) %>+ sidebar_menu_items: sidebar_menu_items,+ searchable: searchable,+ create_btn_options: create_btn_options+ ) %></div>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.erbindex 14b2d1de52c..71743616615 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,18 @@<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|- component.with_header(title: "A Title")+ 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"))-end %>+ component.with_attribute(+ key: "With HTML",+ value: link_to("OpenProject homepage", "https://www.openproject.org")+ )+ end %>diff --git a/lookbook/previews/patterns/danger_dialog_preview/default.html.erb b/lookbook/previews/patterns/danger_dialog_preview/default.html.erbindex 545c0bf1e4e..c8fbf0b9e5b 100644--- a/lookbook/previews/patterns/danger_dialog_preview/default.html.erb+++ b/lookbook/previews/patterns/danger_dialog_preview/default.html.erb@@ -1,10 +1,12 @@<%=- render(Primer::OpenProject::DangerDialog.new(- title: "Delete project", open: true- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ title: "Delete project", open: true+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { "Are you sure?" }- message.with_description_content( "You are going to delete the whole project and all it's WorkPackages!" )+ message.with_description_content("You are going to delete the whole project and all it's WorkPackages!")enddialog.with_confirmation_check_box_content("I understand that this deletion cannot be reversed")enddiff --git a/lookbook/previews/patterns/layout_preview/default.html.erb b/lookbook/previews/patterns/layout_preview/default.html.erbindex 8e72eb9e5e4..4b0d66cbfd8 100644--- a/lookbook/previews/patterns/layout_preview/default.html.erb+++ b/lookbook/previews/patterns/layout_preview/default.html.erb@@ -34,7 +34,6 @@"Even more content here"endend-endend%>diff --git a/modules/auth_saml/app/components/saml/providers/sections/form_component.html.erb b/modules/auth_saml/app/components/saml/providers/sections/form_component.html.erbindex ba286d6bd05..6fc154552fc 100644--- a/modules/auth_saml/app/components/saml/providers/sections/form_component.html.erb+++ b/modules/auth_saml/app/components/saml/providers/sections/form_component.html.erb@@ -28,12 +28,14 @@endflex.with_row(mt: 4) do- render(Saml::Providers::SubmitOrCancelForm.new(- form,- provider:,- submit_button_options: { label: button_label },- cancel_button_options: { hidden: edit_mode }- ))+ render(+ Saml::Providers::SubmitOrCancelForm.new(+ form,+ provider:,+ submit_button_options: { label: button_label },+ cancel_button_options: { hidden: edit_mode }+ )+ )endendenddiff --git a/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erb b/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erbindex aeb532f046b..864cc1f47b9 100644--- a/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erb+++ b/modules/auth_saml/app/components/saml/providers/sections/metadata_form_component.html.erb@@ -44,12 +44,15 @@endflex.with_row(mt: 4) do- render(Saml::Providers::SubmitOrCancelForm.new(- form,- provider:,- submit_button_options: { label: button_label },- cancel_button_options: { hidden: edit_mode },- state: :metadata))+ render(+ Saml::Providers::SubmitOrCancelForm.new(+ form,+ provider:,+ submit_button_options: { label: button_label },+ cancel_button_options: { hidden: edit_mode },+ state: :metadata+ )+ )endendenddiff --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.erbindex 56d6f3d0a63..7bee9b44a9c 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,8 +1,10 @@<%=- grid_layout("op-saml-view-row",- tag: :div,- test_selector: "saml_provider_#{@target_state}",- align_items: :center) do |grid|+ grid_layout(+ "op-saml-view-row",+ tag: :div,+ test_selector: "saml_provider_#{@target_state}",+ align_items: :center+ ) do |grid|grid.with_area(:title, mr: 3) doconcat render(Primer::Beta::Text.new(font_weight: :bold)) { @heading }if @label@@ -33,7 +35,7 @@tag: :a,scheme: :invisible,href: edit_saml_provider_path(provider, edit_state: @target_state),- test_selector: "saml_provider_#{@target_state}_edit",+ test_selector: "saml_provider_#{@target_state}_edit",data: { turbo: true, turbo_stream: true },aria: { label: I18n.t(disabled ? :label_show : :label_edit) })diff --git a/modules/auth_saml/app/components/saml/providers/side_panel/metadata_component.html.erb b/modules/auth_saml/app/components/saml/providers/side_panel/metadata_component.html.erbindex f8989607f58..9f6d07cd944 100644--- a/modules/auth_saml/app/components/saml/providers/side_panel/metadata_component.html.erb+++ b/modules/auth_saml/app/components/saml/providers/side_panel/metadata_component.html.erb@@ -5,11 +5,13 @@flex_layout do |flex|flex.with_column(classes: "ellipsis") do- render(Primer::Beta::Link.new(- href: metadata_endpoint,- title: metadata_endpoint,- target: :_blank- )) { metadata_endpoint }+ render(+ Primer::Beta::Link.new(+ href: metadata_endpoint,+ title: metadata_endpoint,+ target: :_blank+ )+ ) { metadata_endpoint }endflex.with_column(ml: 1) dorender(Primer::Beta::ClipboardCopy.new(value: metadata_endpoint, "aria-label": t(:button_copy_to_clipboard)))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.erbindex e373be01ced..122a5afc559 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@@ -8,144 +8,168 @@<% end %><%= render(border_box_container) do |component|- component.with_header(color: :muted) do- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("activemodel.attributes.saml/provider.display_name") }- end+ component.with_header(color: :muted) do+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("activemodel.attributes.saml/provider.display_name") }+ end- component.with_row(scheme: :default) do- if edit_state == :name- render(Saml::Providers::Sections::FormComponent.new(- provider,- form_class: Saml::Providers::NameInputForm,- edit_state:,- next_edit_state: :metadata,- edit_mode:,- heading: nil- ))- else- render(Saml::Providers::Sections::ShowComponent.new(- provider,- view_mode:,- target_state: :name,- heading: t("saml.providers.singular"),- description: t("saml.providers.section_texts.display_name")- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :name+ render(+ Saml::Providers::Sections::FormComponent.new(+ provider,+ form_class: Saml::Providers::NameInputForm,+ edit_state:,+ next_edit_state: :metadata,+ edit_mode:,+ heading: nil+ )+ )+ else+ render(+ Saml::Providers::Sections::ShowComponent.new(+ provider,+ view_mode:,+ target_state: :name,+ heading: t("saml.providers.singular"),+ description: t("saml.providers.section_texts.display_name")+ )+ )+ end+ end- component.with_row(scheme: :neutral, color: :muted) do- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.label_automatic_configuration") }- end+ component.with_row(scheme: :neutral, color: :muted) do+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.label_automatic_configuration") }+ end- component.with_row(scheme: :default) do- if edit_state == :metadata- render(Saml::Providers::Sections::MetadataFormComponent.new(- provider,- edit_mode:,- ))- else- render(Saml::Providers::Sections::ShowComponent.new(- provider,- target_state: :metadata,- view_mode:,- heading: t("saml.providers.label_metadata"),- description: t("saml.providers.section_texts.metadata"),- label: provider.has_metadata? ? t(:label_completed) : t(:label_not_configured),- label_scheme: provider.has_metadata? ? :success : :secondary- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :metadata+ render(+ Saml::Providers::Sections::MetadataFormComponent.new(+ provider,+ edit_mode:,+ )+ )+ else+ render(+ Saml::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :metadata,+ view_mode:,+ heading: t("saml.providers.label_metadata"),+ description: t("saml.providers.section_texts.metadata"),+ label: provider.has_metadata? ? t(:label_completed) : t(:label_not_configured),+ label_scheme: provider.has_metadata? ? :success : :secondary+ )+ )+ end+ end- component.with_row(scheme: :neutral, color: :muted) do- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.section_headers.configuration") }- end+ component.with_row(scheme: :neutral, color: :muted) do+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.section_headers.configuration") }+ end- component.with_row(scheme: :default) do- if edit_state == :configuration- render(Saml::Providers::Sections::FormComponent.new(- provider,- form_class: Saml::Providers::ConfigurationForm,- edit_state:,- next_edit_state: :encryption,- edit_mode:,- banner: provider.last_metadata_update ? t("saml.providers.section_texts.configuration_metadata") : nil,- banner_scheme: :default,- heading: nil- ))- else- render(Saml::Providers::Sections::ShowComponent.new(- provider,- target_state: :configuration,- view_mode:,- heading: t("saml.providers.label_configuration_details"),- description: t("saml.providers.section_texts.configuration"),- label: (provider.persisted? && !provider.configured?) ? t(:label_incomplete) : nil,- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :configuration+ render(+ Saml::Providers::Sections::FormComponent.new(+ provider,+ form_class: Saml::Providers::ConfigurationForm,+ edit_state:,+ next_edit_state: :encryption,+ edit_mode:,+ banner: provider.last_metadata_update ? t("saml.providers.section_texts.configuration_metadata") : nil,+ banner_scheme: :default,+ heading: nil+ )+ )+ else+ render(+ Saml::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :configuration,+ view_mode:,+ heading: t("saml.providers.label_configuration_details"),+ description: t("saml.providers.section_texts.configuration"),+ label: (provider.persisted? && !provider.configured?) ? t(:label_incomplete) : nil,+ )+ )+ end+ end- component.with_row(scheme: :default) do- if edit_state == :encryption- render(Saml::Providers::Sections::FormComponent.new(- provider,- form_class: Saml::Providers::EncryptionForm,- edit_state:,- next_edit_state: :mapping,- edit_mode:,- heading: t("saml.providers.section_texts.encryption_form")- ))- else- render(Saml::Providers::Sections::ShowComponent.new(- provider,- target_state: :encryption,- view_mode:,- heading: t("saml.providers.label_configuration_encryption"),- description: t("saml.providers.section_texts.encryption")- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :encryption+ render(+ Saml::Providers::Sections::FormComponent.new(+ provider,+ form_class: Saml::Providers::EncryptionForm,+ edit_state:,+ next_edit_state: :mapping,+ edit_mode:,+ heading: t("saml.providers.section_texts.encryption_form")+ )+ )+ else+ render(+ Saml::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :encryption,+ view_mode:,+ heading: t("saml.providers.label_configuration_encryption"),+ description: t("saml.providers.section_texts.encryption")+ )+ )+ end+ end- component.with_row(scheme: :neutral, color: :muted) do- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.section_headers.attributes") }- end+ component.with_row(scheme: :neutral, color: :muted) do+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("saml.providers.section_headers.attributes") }+ end- component.with_row(scheme: :default) do- if edit_state == :mapping- render(Saml::Providers::Sections::FormComponent.new(- provider,- form_class: Saml::Providers::MappingForm,- edit_state:,- next_edit_state: :requested_attributes,- edit_mode:,- heading: t("saml.instructions.mapping")- ))- else- render(Saml::Providers::Sections::ShowComponent.new(- provider,- target_state: :mapping,- view_mode:,- heading: t("saml.providers.label_mapping"),- description: t("saml.providers.section_texts.mapping"),- label: provider.mapping_configured? ? nil : t(:label_incomplete),- label_scheme: provider.mapping_configured? ? :success : :attention- ))- end- end- component.with_row(scheme: :default) do- if edit_state == :requested_attributes- render(Saml::Providers::Sections::RequestAttributesFormComponent.new(- provider,- edit_mode:- ))- else- render(Saml::Providers::Sections::ShowComponent.new(- provider,- target_state: :requested_attributes,- view_mode:,- heading: t("saml.providers.requested_attributes"),- description: t("saml.providers.section_texts.requested_attributes")- ))- end- end- end %>+ component.with_row(scheme: :default) do+ if edit_state == :mapping+ render(+ Saml::Providers::Sections::FormComponent.new(+ provider,+ form_class: Saml::Providers::MappingForm,+ edit_state:,+ next_edit_state: :requested_attributes,+ edit_mode:,+ heading: t("saml.instructions.mapping")+ )+ )+ else+ render(+ Saml::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :mapping,+ view_mode:,+ heading: t("saml.providers.label_mapping"),+ description: t("saml.providers.section_texts.mapping"),+ label: provider.mapping_configured? ? nil : t(:label_incomplete),+ label_scheme: provider.mapping_configured? ? :success : :attention+ )+ )+ end+ end+ component.with_row(scheme: :default) do+ if edit_state == :requested_attributes+ render(+ Saml::Providers::Sections::RequestAttributesFormComponent.new(+ provider,+ edit_mode:+ )+ )+ else+ render(+ Saml::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :requested_attributes,+ view_mode:,+ heading: t("saml.providers.requested_attributes"),+ description: t("saml.providers.section_texts.requested_attributes")+ )+ )+ end+ end+ end %><% end %>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.erbindex 1c37a2e87f0..ad2d0db9bad 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@@ -26,9 +26,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See COPYRIGHT and LICENSE files for more details.++#%>-<%= styled_form_tag(saml_provider_path(@provider),- class: "danger-zone",- method: :delete) do %>+<%= styled_form_tag(+ saml_provider_path(@provider),+ class: "danger-zone",+ method: :delete+ ) do %><section class="form--section"><h3 class="form--section-title"><%= t("saml.delete_title") %>@@ -53,9 +55,9 @@ See COPYRIGHT and LICENSE files for more details.<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"- end %>+ 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 %>diff --git a/modules/auth_saml/app/views/saml/providers/edit.html.erb b/modules/auth_saml/app/views/saml/providers/edit.html.erbindex ba85645df5c..2ebf84d65a0 100644--- a/modules/auth_saml/app/views/saml/providers/edit.html.erb+++ b/modules/auth_saml/app/views/saml/providers/edit.html.erb@@ -5,9 +5,11 @@<%= 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") },- @provider.display_name]) %>+ <% header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: saml_providers_path, text: t("saml.providers.plural") },+ @provider.display_name]+ ) %><% header.with_description do %><%= link_translate(@@ -20,7 +22,11 @@<% end %><% end %>-<%= render(Saml::Providers::ViewComponent.new(@provider,- view_mode: :edit,- edit_mode: @edit_mode,- edit_state: @edit_state)) %>+<%= render(+ Saml::Providers::ViewComponent.new(+ @provider,+ view_mode: :edit,+ edit_mode: @edit_mode,+ edit_state: @edit_state+ )+ ) %>diff --git a/modules/auth_saml/app/views/saml/providers/index.html.erb b/modules/auth_saml/app/views/saml/providers/index.html.erbindex 08d668488e8..80174c824c9 100644--- a/modules/auth_saml/app/views/saml/providers/index.html.erb+++ b/modules/auth_saml/app/views/saml/providers/index.html.erb@@ -2,21 +2,25 @@<%= content_for :content_header do %><%= render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { t("saml.providers.plural") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- t("saml.providers.plural")])- end %>+ header.with_title { t("saml.providers.plural") }+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ 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"),- tag: :a,- href: new_saml_provider_path) do |button|- button.with_leading_visual_icon(icon: :plus)- t("saml.providers.singular")- end- end %>+ subheader.with_action_button(+ scheme: :primary,+ 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")+ end+ end %><% end %><%= render ::Saml::Providers::TableComponent.new(rows: @providers) %>diff --git a/modules/auth_saml/app/views/saml/providers/new.html.erb b/modules/auth_saml/app/views/saml/providers/new.html.erbindex da4a8a96bf5..d51846879bf 100644--- a/modules/auth_saml/app/views/saml/providers/new.html.erb+++ b/modules/auth_saml/app/views/saml/providers/new.html.erb@@ -3,9 +3,11 @@<%= render(Primer::OpenProject::PageHeader.new) do |header| %><% 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")]) %>+ <% 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")]+ ) %><% header.with_description do %><%= link_translate(diff --git a/modules/auth_saml/app/views/saml/providers/show.html.erb b/modules/auth_saml/app/views/saml/providers/show.html.erbindex fc14df2c213..62ac4375b3f 100644--- a/modules/auth_saml/app/views/saml/providers/show.html.erb+++ b/modules/auth_saml/app/views/saml/providers/show.html.erb@@ -3,9 +3,11 @@<%= 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") },- @provider.display_name]) %>+ <% header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: saml_providers_path, text: t("saml.providers.plural") },+ @provider.display_name]+ ) %><%header.with_action_button(diff --git a/modules/auth_saml/app/views/saml/providers/upsale.html.erb b/modules/auth_saml/app/views/saml/providers/upsale.html.erbindex 176663a7949..de8a2c51eae 100644--- a/modules/auth_saml/app/views/saml/providers/upsale.html.erb+++ b/modules/auth_saml/app/views/saml/providers/upsale.html.erb@@ -2,8 +2,8 @@<%= 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.erbindex da2a32af87f..ed62fa87aa1 100644--- a/modules/avatars/app/views/avatars/my/avatar.html.erb+++ b/modules/avatars/app/views/avatars/my/avatar.html.erb@@ -3,8 +3,10 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_avatar) }- header.with_breadcrumbs([{ href: my_account_path, text: t(:label_my_account) },- t(:label_avatar)])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ t(:label_avatar)]+ )end%>diff --git a/modules/avatars/app/views/settings/_openproject_avatars.html.erb b/modules/avatars/app/views/settings/_openproject_avatars.html.erbindex e35b98e13df..041c742df65 100644--- a/modules/avatars/app/views/settings/_openproject_avatars.html.erb+++ b/modules/avatars/app/views/settings/_openproject_avatars.html.erb@@ -5,7 +5,7 @@<div class="form--field"><%= styled_label_tag "settings-enable-gravatars", t("avatars.settings.enable_gravatars") %>- <%= hidden_field_tag "settings[enable_gravatars]", 0 %>+ <%= 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" %></div>@@ -16,7 +16,7 @@<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 %>+ <%= 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" %></div>diff --git a/modules/backlogs/app/views/backlogs_settings/show.html.erb b/modules/backlogs/app/views/backlogs_settings/show.html.erbindex 5d1f681d49c..e7f0c86691f 100644--- a/modules/backlogs/app/views/backlogs_settings/show.html.erb+++ b/modules/backlogs/app/views/backlogs_settings/show.html.erb@@ -32,8 +32,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_backlogs) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- t(:label_backlogs)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ t(:label_backlogs)]+ )end%>@@ -41,35 +43,45 @@ See COPYRIGHT and LICENSE files for more details.<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") %>+ <%= styled_select_tag(+ "settings[story_types]",+ options_from_collection_for_select(Type.all, :id, :name, Story.types),+ multiple: true,+ container_class: "-slim"+ ) %></div></div><div class="form--field"><%= styled_label_tag("settings[task_type]", t(:backlogs_task_type)) %><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") %>+ <%= styled_select_tag(+ "settings[task_type]",+ options_from_collection_for_select(Type.all, :id, :name, Task.type),+ 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"]],- Setting.plugin_openproject_backlogs["points_burn_direction"]),- container_class: "-slim") %>+ <%= styled_select_tag(+ "settings[points_burn_direction]",+ 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"+ ) %></div></div><div class="form--field"><%= styled_label_tag("settings[wiki_template]", t(:backlogs_wiki_template)) %><div class="form--field-container">- <%= styled_text_field_tag("settings[wiki_template]",- Setting.plugin_openproject_backlogs["wiki_template"],- container_class: "-slim") %>+ <%= styled_text_field_tag(+ "settings[wiki_template]",+ Setting.plugin_openproject_backlogs["wiki_template"],+ container_class: "-slim"+ ) %></div></div>diff --git a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erbindex 566e906b6b2..2988407d212 100644--- a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb+++ b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb@@ -30,15 +30,19 @@ 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_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")])+ 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")]+ )end%>-<%= styled_form_tag(project_settings_backlogs_path(@project),- method: :patch,- id: "edit_project_#{@project.id}") do %>+<%= styled_form_tag(+ project_settings_backlogs_path(@project),+ method: :patch,+ id: "edit_project_#{@project.id}"+ ) do %><div class="generic-table--container"><div class="generic-table--results-container">diff --git a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb b/modules/backlogs/app/views/rb_master_backlogs/index.html.erbindex 77edd7de0c0..b13d51be3df 100644--- a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb+++ b/modules/backlogs/app/views/rb_master_backlogs/index.html.erb@@ -33,22 +33,25 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_backlogs) }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- t(:label_backlogs)- ])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ t(:label_backlogs)]+ )end%><%= render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- 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|- button.with_leading_visual_icon(icon: :plus)- t("activerecord.models.version")- end-end %>+ subheader.with_action_button(+ scheme: :primary,+ 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|+ button.with_leading_visual_icon(icon: :plus)+ t("activerecord.models.version")+ end+ end %><% if (@owner_backlogs.empty? && @sprint_backlogs.empty?) %><%= no_results_box action_url: new_project_version_path(@project),diff --git a/modules/backlogs/app/views/rb_taskboards/show.html.erb b/modules/backlogs/app/views/rb_taskboards/show.html.erbindex ac3100869c1..7416de928d2 100644--- a/modules/backlogs/app/views/rb_taskboards/show.html.erb+++ b/modules/backlogs/app/views/rb_taskboards/show.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @sprint.name }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: backlogs_project_backlogs_path(@project), text: t(:label_backlogs) },- @sprint.name])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: backlogs_project_backlogs_path(@project), text: t(:label_backlogs) },+ @sprint.name]+ )end%><%# we decided to keep current toolbar design for taskboard %>diff --git a/modules/backlogs/app/views/shared/not_configured.html.erb b/modules/backlogs/app/views/shared/not_configured.html.erbindex 40595682e4b..098b7924ebe 100644--- a/modules/backlogs/app/views/shared/not_configured.html.erb+++ b/modules/backlogs/app/views/shared/not_configured.html.erb@@ -28,8 +28,10 @@ See COPYRIGHT and LICENSE files for more details.++#%><div id="not_configured">- <%= t(:label_backlogs_unconfigured,+ <%= t(+ :label_backlogs_unconfigured,administration: t(:label_administration),plugins: t(:label_plugins),- configure: t(:button_configure)) %>+ configure: t(:button_configure)+ ) %></div>diff --git a/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erb b/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erbindex f3f4cc1a741..9bf6a53ee42 100644--- a/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/_import_options_hidden_fields.html.erb@@ -1,8 +1,8 @@-<%= hidden_field :import_options, :unknown_types_action, :value => params.dig(:import_options, :unknown_types_action) %>-<%= hidden_field :import_options, :unknown_statuses_action, :value => params.dig(:import_options, :unknown_statuses_action) %>+<%= hidden_field :import_options, :unknown_types_action, :value => params.dig(:import_options, :unknown_types_action) %>+<%= hidden_field :import_options, :unknown_statuses_action, :value => params.dig(:import_options, :unknown_statuses_action) %><%= hidden_field :import_options, :unknown_priorities_action, :value => params.dig(:import_options, :unknown_priorities_action) %>-<%= hidden_field :import_options, :invalid_people_action, :value => params.dig(:import_options, :invalid_people_action) %>-<%= hidden_field :import_options, :unknown_mails_action, :value => params.dig(:import_options, :unknown_mails_action) %>+<%= hidden_field :import_options, :invalid_people_action, :value => params.dig(:import_options, :invalid_people_action) %>+<%= hidden_field :import_options, :unknown_mails_action, :value => params.dig(:import_options, :unknown_mails_action) %><% if params.dig(:import_options, :unknown_types_chose_ids)&.any? %><% params.dig(:import_options, :unknown_types_chose_ids).each do |id| %>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.erbindex e2d780b00b7..4735f611b94 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@@ -10,7 +10,7 @@no_label: true,tabIndex: 0,container_class: "-slim",- id: solution_select_id %>+ id: solution_select_id %></div></div>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.erbindex 77bda36ff73..c1c85faa061 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@@ -1,16 +1,18 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("bcf.bcf_xml.import_title") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("bcf.bcf_xml.import_title")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("bcf.bcf_xml.import_title")]+ )end%><%= 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"),- error_objects: @importer.aggregations.invalid_people,- error_default_text: t("bcf.bcf_xml.import.unknown_property")} %>+ error_objects: @importer.aggregations.invalid_people,+ error_default_text: t("bcf.bcf_xml.import.unknown_property") } %><hr class="form--separator"><div class="form--field">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.erbindex b9596c916fa..dd235edf6b5 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@@ -1,23 +1,25 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("bcf.bcf_xml.import_title") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("bcf.bcf_xml.import_title")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("bcf.bcf_xml.import_title")]+ )end%><%= 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"),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),- solution_options: @roles.collect { |obj| [obj.name, obj.id] }} %>+ solution_options: @roles.collect { |obj| [obj.name, obj.id] } } %><% else %><div class="op-toast -warning"><div class="op-toast--content">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.erbindex 3ce70ed13e6..3bfd0f16572 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@@ -1,16 +1,18 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("bcf.bcf_xml.import_title") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("bcf.bcf_xml.import_title")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("bcf.bcf_xml.import_title")]+ )end%><%= 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"),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">@@ -24,11 +26,11 @@<%= styled_select_tag "import_options[unknown_mails_invite_role_ids][]",options_for_select(options),no_label: true,- title: t(:label_role_search),+ title: t(:label_role_search),tabIndex: 0,container_class: "-slim",class: "option-label--select",- id: "unknown_mails_invite_role_ids" %>+ id: "unknown_mails_invite_role_ids" %>(<%= t("bcf.recommended") %>)</label></div>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.erbindex 2d33be8b592..978de67e1ac 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@@ -1,18 +1,20 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("bcf.bcf_xml.import_title") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("bcf.bcf_xml.import_title")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("bcf.bcf_xml.import_title")]+ )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"),- error_objects: @importer.aggregations.unknown_priorities,- error_default_text: t("bcf.bcf_xml.import.no_priority_provided")} %>+ 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"),- solution_options: IssuePriority.all.collect { |priority| [priority.name, priority.id] }} %>+ 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.erbindex 48e93af58f1..a26fed34dd2 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@@ -1,18 +1,20 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("bcf.bcf_xml.import_title") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("bcf.bcf_xml.import_title")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("bcf.bcf_xml.import_title")]+ )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"),error_objects: @importer.aggregations.unknown_statuses,- error_default_text: t("bcf.bcf_xml.import.no_status_provided")} %>+ 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] }} %>+ 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.erbindex a20c78f608c..2d625f511e6 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@@ -1,18 +1,20 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("bcf.bcf_xml.import_title") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("bcf.bcf_xml.import_title")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("bcf.bcf_xml.import_title")]+ )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"),error_objects: @importer.aggregations.unknown_types,- error_default_text: t("bcf.bcf_xml.import.no_type_provided")} %>+ 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] }} %>+ 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.erbindex cb6a90fc31b..3d88afebc37 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@@ -6,9 +6,9 @@header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },{ href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- nested_breadcrumb_element(t("bcf.bcf_xml.import_title"), t(:label_summary))- ],- selected_item_font_weight: :normal)+ nested_breadcrumb_element(t("bcf.bcf_xml.import_title"), t(:label_summary))],+ selected_item_font_weight: :normal+ )end%>diff --git a/modules/bim/app/views/bim/bcf/issues/upload.html.erb b/modules/bim/app/views/bim/bcf/issues/upload.html.erbindex d29f9f3d294..d8c3f371758 100644--- a/modules/bim/app/views/bim/bcf/issues/upload.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/upload.html.erb@@ -1,9 +1,11 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("bcf.bcf_xml.import_title") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("bcf.bcf_xml.import_title")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("bcf.bcf_xml.import_title")]+ )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.erbindex 0a23410ef44..66e2b7fb6f0 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@@ -39,7 +39,7 @@ 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 %>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.erbindex 2e3b307dd7c..ec94668a37a 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@@ -30,10 +30,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @ifc_model.title }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- { href: bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"ifc_models.label_ifc_models") },- @ifc_model.title ])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ { href: bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"ifc_models.label_ifc_models") },+ @ifc_model.title]+ )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.erbindex e1fee121adf..c184a8d08a5 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@@ -31,17 +31,21 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("ifc_models.label_ifc_models") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- t("ifc_models.label_ifc_models")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ t("ifc_models.label_ifc_models")]+ )- header.with_action_button(tag: :a,- mobile_icon: :"eye",- mobile_label: t("ifc_models.label_show_defaults"),- href: defaults_bcf_project_ifc_models_path,- aria: { label: I18n.t("ifc_models.label_show_defaults") },- data: { test_selector: "ifc-show-default-button" },- title: I18n.t("ifc_models.label_show_defaults")) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :"eye",+ mobile_label: t("ifc_models.label_show_defaults"),+ href: defaults_bcf_project_ifc_models_path,+ aria: { label: I18n.t("ifc_models.label_show_defaults") },+ data: { test_selector: "ifc-show-default-button" },+ title: I18n.t("ifc_models.label_show_defaults")+ ) do |button|button.with_leading_visual_icon(icon: :"eye")t("ifc_models.label_show_defaults")end@@ -51,12 +55,14 @@ See COPYRIGHT and LICENSE files for more details.<%=if User.current.allowed_in_project?(:manage_ifc_models, @project)render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t("ifc_models.label_new_ifc_model") },- data: { test_selector: "ifc-create-button" },- title: I18n.t("ifc_models.label_new_ifc_model"),- tag: :a,- href: new_bcf_project_ifc_model_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t("ifc_models.label_new_ifc_model") },+ data: { test_selector: "ifc-create-button" },+ title: I18n.t("ifc_models.label_new_ifc_model"),+ tag: :a,+ href: new_bcf_project_ifc_model_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)::Bim::IfcModels::IfcModel.model_name.humanenddiff --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.erbindex 4f6ab6f45dc..96ed2db6460 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@@ -29,10 +29,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("ifc_models.label_new_ifc_model") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },- { href: bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"ifc_models.label_ifc_models") },- t("ifc_models.label_new_ifc_model")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: defaults_bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"bcf.label_bcf") },+ { href: bcf_project_ifc_models_path(@project.identifier), text: I18n.t(:"ifc_models.label_ifc_models") },+ t("ifc_models.label_new_ifc_model")]+ )end%>diff --git a/modules/bim/app/views/bim/menus/show.html.erb b/modules/bim/app/views/bim/menus/show.html.erbindex c7077b4e55c..30e2c213a7a 100644--- a/modules/bim/app/views/bim/menus/show.html.erb+++ b/modules/bim/app/views/bim/menus/show.html.erb@@ -1,4 +1,6 @@<%= turbo_frame_tag "bim_sidemenu" do %>- <%= render OpenProject::Common::SubmenuComponent.new(sidebar_menu_items: @submenu_menu_items,- searchable: true) %>+ <%= render OpenProject::Common::SubmenuComponent.new(+ sidebar_menu_items: @submenu_menu_items,+ searchable: true+ ) %><% end %>diff --git a/modules/boards/app/views/boards/boards/index.html.erb b/modules/boards/app/views/boards/boards/index.html.erbindex 1c55ff78002..a20e1985894 100644--- a/modules/boards/app/views/boards/boards/index.html.erb+++ b/modules/boards/app/views/boards/boards/index.html.erb@@ -32,16 +32,18 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("boards.label_boards") }- header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),- *([ href: project_overview_path(@project.id), text: @project.name ] if @project),- t("boards.label_boards")])+ header.with_breadcrumbs(+ [*([href: home_path, text: organization_name] unless @project),+ *([href: project_overview_path(@project.id), text: @project.name] if @project),+ t("boards.label_boards")]+ )end%><%=render Primer::OpenProject::SubHeader.new do |subheader|subheader.with_action_component do- render Boards::AddButtonComponent.new(current_project: @project)+ render Boards::AddButtonComponent.new(current_project: @project)endend%>diff --git a/modules/boards/app/views/boards/boards/new.html.erb b/modules/boards/app/views/boards/boards/new.html.erbindex 9d89e89cf89..55d5905203b 100644--- a/modules/boards/app/views/boards/boards/new.html.erb+++ b/modules/boards/app/views/boards/boards/new.html.erb@@ -31,12 +31,13 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|- 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")- ])+ 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")]+ )end%>@@ -47,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.data: { turbo: false }} do |f| -%>- <%= render :partial => "form", :locals => {:f => f} %>+ <%= render :partial => "form", :locals => { :f => f } %><%= styled_button_tag t(:button_create), class: "-primary" %><%= link_to t(:button_cancel), { controller: "boards/boards", action: :index },class: "button" %>diff --git a/modules/boards/app/views/boards/menus/show.html.erb b/modules/boards/app/views/boards/menus/show.html.erbindex d4ba132edd1..b0ff2eac9b6 100644--- a/modules/boards/app/views/boards/menus/show.html.erb+++ b/modules/boards/app/views/boards/menus/show.html.erb@@ -1,5 +1,7 @@<%= turbo_frame_tag "boards_sidemenu" do %>- <%= render OpenProject::Common::SubmenuComponent.new(sidebar_menu_items: @submenu_menu_items,- searchable: true,- create_btn_options: @create_btn_options) %>+ <%= render OpenProject::Common::SubmenuComponent.new(+ sidebar_menu_items: @submenu_menu_items,+ searchable: true,+ create_btn_options: @create_btn_options+ ) %><% end %>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.erbindex 4b429f94e87..106a76fbc3d 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@@ -1,48 +1,54 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { t(:label_budget_id, id: @budget.id) }+ header.with_title { t(:label_budget_id, id: @budget.id) }header.with_breadcrumbs(breadcrumb_items)if authorize_for(:budgets, :edit)- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- 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|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ 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|button.with_leading_visual_icon(icon: :pencil)t(:button_update)endendif authorize_for(:budgets, :copy)- header.with_action_button(tag: :a,- mobile_icon: :copy,- mobile_label: t(:button_copy),- size: :medium,- 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|+ header.with_action_button(+ tag: :a,+ mobile_icon: :copy,+ mobile_label: t(:button_copy),+ size: :medium,+ 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|button.with_leading_visual_icon(icon: :copy)t(:button_copy)endendif authorize_for(:budgets, :destroy)- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: url_for({ controller: "budgets", action: "destroy", id: @budget }),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :delete,- test_selector: "budget-delete-button",- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: url_for({ controller: "budgets", action: "destroy", id: @budget }),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :delete,+ test_selector: "budget-delete-button",+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/modules/budgets/app/views/budgets/_edit.html.erb b/modules/budgets/app/views/budgets/_edit.html.erbindex c0a899a9bc4..17176260305 100644--- a/modules/budgets/app/views/budgets/_edit.html.erb+++ b/modules/budgets/app/views/budgets/_edit.html.erb@@ -30,10 +30,10 @@ See COPYRIGHT and LICENSE files for more details.<%= labelled_tabular_form_for @budget,:as => :budget,:url => budget_path(@budget),- :html => {:multipart => true,- :id => "budget_form",- :class => "form"} do |f| %>- <%= render :partial => "form", :locals => {:f => f} %>+ :html => { :multipart => true,+ :id => "budget_form",+ :class => "form" } do |f| %>+ <%= render :partial => "form", :locals => { :f => f } %><div class="generic-table--action-buttons"><%= styled_button_tag t(:button_submit), class: "-with-icon icon-checkmark -primary", id: "budget-table--submit-button" %></div>diff --git a/modules/budgets/app/views/budgets/_list.html.erb b/modules/budgets/app/views/budgets/_list.html.erbindex abc35959e95..bea46d5a7f3 100644--- a/modules/budgets/app/views/budgets/_list.html.erb+++ b/modules/budgets/app/views/budgets/_list.html.erb@@ -104,9 +104,9 @@ See COPYRIGHT and LICENSE files for more details.<tr><td /><td />- <td class="currency"><strong><%= number_to_currency( total_budget, :precision => 0) %></strong></td>- <td class="currency"><strong><%= number_to_currency( spent, :precision => 0) %></strong></td>- <td class="currency"><strong><%= number_to_currency( total_budget - spent, :precision => 0) %></strong></td>+ <td class="currency"><strong><%= number_to_currency(total_budget, :precision => 0) %></strong></td>+ <td class="currency"><strong><%= number_to_currency(spent, :precision => 0) %></strong></td>+ <td class="currency"><strong><%= number_to_currency(total_budget - spent, :precision => 0) %></strong></td><td /><tr><% end %>diff --git a/modules/budgets/app/views/budgets/destroy_info.html.erb b/modules/budgets/app/views/budgets/destroy_info.html.erbindex 51da84f99d2..e49cf761d55 100644--- a/modules/budgets/app/views/budgets/destroy_info.html.erb+++ b/modules/budgets/app/views/budgets/destroy_info.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { "#{t(:button_delete)} #{@budget.subject}" }- header.with_breadcrumbs([{href: project_overview_path(@project.identifier), text: @project.name},- {href: projects_budgets_path(@project.identifier), text: I18n.t(:label_budget_plural)},- "#{t(:button_delete)} #{@budget.subject}"])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.identifier), text: @project.name },+ { href: projects_budgets_path(@project.identifier), text: I18n.t(:label_budget_plural) },+ "#{t(:button_delete)} #{@budget.subject}"]+ )end%>diff --git a/modules/budgets/app/views/budgets/edit.html.erb b/modules/budgets/app/views/budgets/edit.html.erbindex 7fb86952e08..f4c64ec2968 100644--- a/modules/budgets/app/views/budgets/edit.html.erb+++ b/modules/budgets/app/views/budgets/edit.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_budget_id, id: @budget.id) }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: projects_budgets_path(@project.id), text: t(:label_budget_plural) },- t(:label_budget_id, id: @budget.id)])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: projects_budgets_path(@project.id), text: t(:label_budget_plural) },+ t(:label_budget_id, id: @budget.id)]+ )end%><%= render :partial => "edit" %>diff --git a/modules/budgets/app/views/budgets/index.html.erb b/modules/budgets/app/views/budgets/index.html.erbindex e6d6d8acdb0..037005f6426 100644--- a/modules/budgets/app/views/budgets/index.html.erb+++ b/modules/budgets/app/views/budgets/index.html.erb@@ -31,18 +31,22 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_budget_plural) }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- t(:label_budget_plural)])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ t(:label_budget_plural)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:button_add_budget) },- data: { test_selector: "budget-create-button" },- title: I18n.t(:button_add_budget),- tag: :a,- href: new_projects_budget_path(@project)) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:button_add_budget) },+ data: { test_selector: "budget-create-button" },+ title: I18n.t(:button_add_budget),+ tag: :a,+ href: new_projects_budget_path(@project)+ ) do |button|button.with_leading_visual_icon(icon: :plus)t(:label_budget)end@@ -52,17 +56,17 @@ See COPYRIGHT and LICENSE files for more details.<% if @budgets.empty? %><%= no_results_box %><% else %>-<%= render :partial => "list", :locals => {:budgets => @budgets} %>+<%= render :partial => "list", :locals => { :budgets => @budgets } %><%= pagination_links_full @budgets %><% end %><p class="other-formats"><%= t(:label_export_to) %><!---<span><%= link_to "Atom", {:query_id => @query, :format => "atom", :key => User.current.rss_key}, :class => "feed" %></span>+<span><%= link_to "Atom", { :query_id => @query, :format => "atom", :key => User.current.rss_key }, :class => "feed" %></span>-->-<span><%= link_to "CSV", {:format => "csv"}, :class => "csv" %></span>+<span><%= link_to "CSV", { :format => "csv" }, :class => "csv" %></span><!---<span><%= link_to "PDF", {:format => "pdf"}, :class => "pdf" %></span>+<span><%= link_to "PDF", { :format => "pdf" }, :class => "pdf" %></span>--></p>diff --git a/modules/budgets/app/views/budgets/items/_budget_override_cost_form.html.erb b/modules/budgets/app/views/budgets/items/_budget_override_cost_form.html.erbindex 8dfca2d20a8..0d98f0b449d 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@@ -9,7 +9,7 @@class: "currency form--text-field",disabled: true, # disable by default until it was overriddenplaceholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),- ) %>+ ) %></div><div class="form--field-affix"><%= Setting.costs_currency %>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.erbindex fc6ce433586..d966317e0e7 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@@ -69,8 +69,8 @@ See COPYRIGHT and LICENSE files for more details.<td class="user"><label class="hidden-for-sighted" for="<%= id_prefix %>_user_id"><%= t(:label_user) %></label><%= cost_form.select :user_id,- Principal.possible_assignee(@project).sort.map {|u| [u.name, u.id]},- {prompt: true},+ Principal.possible_assignee(@project).sort.map { |u| [u.name, u.id] },+ { prompt: true },{index: id_or_index,class: "form--select budget-item-value",diff --git a/modules/budgets/app/views/budgets/new.html.erb b/modules/budgets/app/views/budgets/new.html.erbindex b3a91f15796..0ee644fb8a4 100644--- a/modules/budgets/app/views/budgets/new.html.erb+++ b/modules/budgets/app/views/budgets/new.html.erb@@ -32,18 +32,20 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_budget_new) }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: projects_budgets_path(@project.id), text: t(:label_budget_plural) },- t(:label_budget_new)])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: projects_budgets_path(@project.id), text: t(:label_budget_plural) },+ t(:label_budget_new)]+ )end%><%= 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} %>+ :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" %>+ class: "button -primary" %><% end %>diff --git a/modules/budgets/app/views/budgets/show.html.erb b/modules/budgets/app/views/budgets/show.html.erbindex 5449a6a8ea7..0f799244491 100644--- a/modules/budgets/app/views/budgets/show.html.erb+++ b/modules/budgets/app/views/budgets/show.html.erb@@ -38,15 +38,19 @@ See COPYRIGHT and LICENSE files for more details.</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))- 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- end)- end %>+ 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)+ )+ 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+ end+ )+ end %><% resource = budget_attachment_representer(@budget) %><%= list_attachments(resource) %>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.erbindex ea99ac9b116..3020af3a0db 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@@ -29,8 +29,8 @@ See COPYRIGHT and LICENSE files for more details.<%# we have to assign the budget here as following methods depend on the item having an object -%><% template_object = @budget.labor_budget_items.build.tap do |i|- i.budget = @budget-end -%>+ i.budget = @budget+ end -%><fieldset id="labor_budget_items_fieldset"class="form--fieldset -collapsible"@@ -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>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.erbindex 756646667f5..2d992a80672 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>diff --git a/modules/calendar/app/views/calendar/calendars/index.html.erb b/modules/calendar/app/views/calendar/calendars/index.html.erbindex 9701bc81045..a345ed9930a 100644--- a/modules/calendar/app/views/calendar/calendars/index.html.erb+++ b/modules/calendar/app/views/calendar/calendars/index.html.erb@@ -31,9 +31,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_calendar_plural) }- header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),- *([ href: project_overview_path(@project.id), text: @project.name ] if @project),- t(:label_calendar_plural)])+ header.with_breadcrumbs(+ [*([href: home_path, text: organization_name] unless @project),+ *([href: project_overview_path(@project.id), text: @project.name] if @project),+ t(:label_calendar_plural)]+ )end%>diff --git a/modules/calendar/app/views/calendar/calendars/new.html.erb b/modules/calendar/app/views/calendar/calendars/new.html.erbindex d92ce608d95..564436960c9 100644--- a/modules/calendar/app/views/calendar/calendars/new.html.erb+++ b/modules/calendar/app/views/calendar/calendars/new.html.erb@@ -32,15 +32,16 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_new_calendar) }- header.with_breadcrumbs( [{ href: home_path, text: organization_name },- { href: calendars_path, text: t(:label_calendar_plural) },- t(:label_new_calendar)- ])+ header.with_breadcrumbs(+ [{ href: home_path, text: organization_name },+ { href: calendars_path, text: t(:label_calendar_plural) },+ t(:label_new_calendar)]+ )end%>-<%= labelled_tabular_form_for @view, url: { controller: "/calendar/calendars", action: "create" }, :html => {:id => "calendar-form"} do |f| -%>- <%= render :partial => "form", :locals => {:f => f} %>+<%= labelled_tabular_form_for @view, url: { controller: "/calendar/calendars", action: "create" }, :html => { :id => "calendar-form" } do |f| -%>+ <%= render :partial => "form", :locals => { :f => f } %><%= styled_button_tag t(:button_create), class: "-primary" %><%= link_to t(:button_cancel), { controller: "calendar/calendars", action: "index" },class: "button" %>diff --git a/modules/calendar/app/views/calendar/menus/show.html.erb b/modules/calendar/app/views/calendar/menus/show.html.erbindex a7e71e26a21..9998c5a1e6b 100644--- a/modules/calendar/app/views/calendar/menus/show.html.erb+++ b/modules/calendar/app/views/calendar/menus/show.html.erb@@ -1,5 +1,7 @@<%= turbo_frame_tag "calendar_sidemenu" do %>- <%= render OpenProject::Common::SubmenuComponent.new(sidebar_menu_items: @submenu_menu_items,- searchable: true,- create_btn_options: @create_btn_options) %>+ <%= render OpenProject::Common::SubmenuComponent.new(+ sidebar_menu_items: @submenu_menu_items,+ searchable: true,+ create_btn_options: @create_btn_options+ ) %><% end %>diff --git a/modules/costs/app/views/cost_types/_list.html.erb b/modules/costs/app/views/cost_types/_list.html.erbindex 170c4734624..25eb041714d 100644--- a/modules/costs/app/views/cost_types/_list.html.erb+++ b/modules/costs/app/views/cost_types/_list.html.erb@@ -82,7 +82,7 @@ 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" %>@@ -108,11 +108,11 @@ See COPYRIGHT and LICENSE files for more details.</td><%= 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),+ <%= form_for cost_type, url: cost_type_path(cost_type),method: :delete,- html: { id: "delete_cost_type_#{cost_type.id}",- class: "delete_cost_type",- title: t(:button_lock) } do |f| %>+ html: { id: "delete_cost_type_#{cost_type.id}",+ 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)) %>diff --git a/modules/costs/app/views/cost_types/_rate.html.erb b/modules/costs/app/views/cost_types/_rate.html.erbindex 95a03d24723..77392a28bc7 100644--- a/modules/costs/app/views/cost_types/_rate.html.erb+++ b/modules/costs/app/views/cost_types/_rate.html.erb@@ -43,19 +43,20 @@ See COPYRIGHT and LICENSE files for more details.<tr><td colspan="3"><%= error_messages %></td></tr><% end %><%= fields_for prefix, rate, builder: TabularFormBuilder do |rate_form| %>- <%= content_tag(:tr,- id: id_prefix,- data: templated ? { 'row-target': "true" } : {},- style: templated ? "display: none;" : ""+ <%= content_tag(+ :tr,+ id: id_prefix,+ data: templated ? { 'row-target': "true" } : {},+ style: templated ? "display: none;" : "") do %><td class="-no-ellipsis"><label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label><%= rate_form.date_picker :valid_from,- index: id_or_index,- class: "date costs-date-picker",- no_field_container: true,- no_label: true,- required: templated ? false : true %>+ index: id_or_index,+ class: "date costs-date-picker",+ no_field_container: true,+ no_label: true,+ required: templated ? false : true %></td><td class="currency"><span class="inline-label">diff --git a/modules/costs/app/views/cost_types/edit.html.erb b/modules/costs/app/views/cost_types/edit.html.erbindex a9586b0dcb9..9668e5be7c7 100644--- a/modules/costs/app/views/cost_types/edit.html.erb+++ b/modules/costs/app/views/cost_types/edit.html.erb@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.++#%><% if(@cost_type.id) %>- <% html_title t(:label_cost_type_specific, id: @cost_type.id, name: @cost_type.name) %>+ <% html_title t(:label_cost_type_specific, id: @cost_type.id, name: @cost_type.name) %><% title = @cost_type.name %><% else %><% html_title t(:label_administration), t(:label_cost_type_plural) %>@@ -38,10 +38,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { title }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: url_for({ controller: "/admin/settings", action: "show_plugin", id: :costs }), text: t(:project_module_costs) },- { href: cost_types_path, text: t(:label_cost_type_plural) },- title])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: url_for({ controller: "/admin/settings", action: "show_plugin", id: :costs }), text: t(:project_module_costs) },+ { href: cost_types_path, text: t(:label_cost_type_plural) },+ title]+ )end%>@@ -97,19 +99,19 @@ See COPYRIGHT and LICENSE files for more details.</thead><tbody id="rates_body" class="subform-container" data-subform-target="table"><%= render partial: "rate", object: CostRate.new(valid_from: Date.current), locals: { templated: true } %>- <% @cost_type.rates.sort do |a,b|- case- when !a.valid? && !b.valid?- 0- when !a.valid?- -1- when !b.valid?- 1- else- b.valid_from <=> a.valid_from- end- end.each_with_index do |rate, index| %>- <%= render partial: "rate", object: rate, locals: {index: index} %>+ <% @cost_type.rates.sort do |a, b|+ case+ when !a.valid? && !b.valid?+ 0+ when !a.valid?+ -1+ when !b.valid?+ 1+ else+ b.valid_from <=> a.valid_from+ end+ end.each_with_index do |rate, index| %>+ <%= render partial: "rate", object: rate, locals: { index: index } %><%- end -%></tbody></table>diff --git a/modules/costs/app/views/cost_types/index.html.erb b/modules/costs/app/views/cost_types/index.html.erbindex c6b3f0c6c8b..887aaa521b0 100644--- a/modules/costs/app/views/cost_types/index.html.erb+++ b/modules/costs/app/views/cost_types/index.html.erb@@ -32,21 +32,25 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { I18n.t(:label_cost_type_plural) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: url_for({ controller: "/admin/settings", action: "show_plugin", id: :costs }), text: t(:project_module_costs) },- I18n.t(:label_cost_type_plural)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: url_for({ controller: "/admin/settings", action: "show_plugin", id: :costs }), text: t(:project_module_costs) },+ I18n.t(:label_cost_type_plural)]+ )end%><%= render(Primer::OpenProject::SubHeader.new) do |subheader| %>- <% subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:button_add_cost_type) },- title: I18n.t(:button_add_cost_type),- tag: :a,- href: new_cost_type_path) do |button|- button.with_leading_visual_icon(icon: :plus)- CostType.model_name.human- end %>+ <% subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:button_add_cost_type) },+ title: I18n.t(:button_add_cost_type),+ tag: :a,+ href: new_cost_type_path+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ CostType.model_name.human+ end %><% subheader.with_bottom_pane_component do %><%= styled_form_tag(cost_types_path, { method: :get, id: "query_form" }) do %>diff --git a/modules/costs/app/views/costs_settings/show.html.erb b/modules/costs/app/views/costs_settings/show.html.erbindex 7125ea549c4..26f90488ddb 100644--- a/modules/costs/app/views/costs_settings/show.html.erb+++ b/modules/costs/app/views/costs_settings/show.html.erb@@ -32,8 +32,10 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t("plugin_costs.name") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- t("plugin_costs.name")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ t("plugin_costs.name")]+ )end%>diff --git a/modules/costs/app/views/hourly_rates/_list_default.html.erb b/modules/costs/app/views/hourly_rates/_list_default.html.erbindex 913df2f14b0..5429dd31b81 100644--- a/modules/costs/app/views/hourly_rates/_list_default.html.erb+++ b/modules/costs/app/views/hourly_rates/_list_default.html.erb@@ -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.erbindex b1441b79248..c0db14b968c 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.erbindex ff7802b55bf..d7a42ba94b3 100644--- a/modules/costs/app/views/hourly_rates/_rate.html.erb+++ b/modules/costs/app/views/hourly_rates/_rate.html.erb@@ -37,12 +37,13 @@ See COPYRIGHT and LICENSE files for more details.-%><%= fields_for prefix, rate, builder: TabularFormBuilder do |rate_form| %>- <%= content_tag(:tr,- class: "subform-row",- id: id_prefix,- data: templated ? { 'row-target': "true" } : {},- style: templated ? "display: none;" : ""- ) do %>+ <%= content_tag(+ :tr,+ class: "subform-row",+ id: id_prefix,+ data: templated ? { 'row-target': "true" } : {},+ style: templated ? "display: none;" : ""+ ) do %><td><label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label><%= rate_form.date_picker :valid_from,diff --git a/modules/costs/app/views/hourly_rates/edit.html.erb b/modules/costs/app/views/hourly_rates/edit.html.erbindex e912ce45dd0..656551c68d7 100644--- a/modules/costs/app/views/hourly_rates/edit.html.erb+++ b/modules/costs/app/views/hourly_rates/edit.html.erb@@ -31,18 +31,20 @@ See COPYRIGHT and LICENSE files for more details.<%breadcrumb_items = if @project- [{href: project_overview_path(@project.identifier), text: @project.name},- {href: projects_budgets_path(@project.identifier), text: I18n.t(:label_budget_plural)}]+ [{ href: project_overview_path(@project.identifier), text: @project.name },+ { href: projects_budgets_path(@project.identifier), text: I18n.t(:label_budget_plural) }]else- [{ href: home_path, text: organization_name}]+ [{ href: home_path, text: organization_name }]end%><%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:caption_default_rate_history_for, user: @user.name) }- header.with_breadcrumbs([*(breadcrumb_items),- t(:caption_default_rate_history_for, user: @user.name)])+ header.with_breadcrumbs(+ [*(breadcrumb_items),+ t(:caption_default_rate_history_for, user: @user.name)]+ )end%>@@ -52,7 +54,7 @@ See COPYRIGHT and LICENSE files for more details.<% end %><%= labelled_tabular_form_for @user,- url: {action: "update", project_id: @project},+ url: { action: "update", project_id: @project },data: { controller: "subform", 'application-target': "dynamic" },method: :put do |f| %><%= back_url_hidden_field_tag %>@@ -95,7 +97,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>diff --git a/modules/costs/app/views/hourly_rates/show.html.erb b/modules/costs/app/views/hourly_rates/show.html.erbindex 21ad8bff7f7..7b7a0388bc7 100644--- a/modules/costs/app/views/hourly_rates/show.html.erb+++ b/modules/costs/app/views/hourly_rates/show.html.erb@@ -31,18 +31,20 @@ See COPYRIGHT and LICENSE files for more details.<%breadcrumb_items = if @project- [{href: project_overview_path(@project.identifier), text: @project.name},- {href: projects_budgets_path(@project.identifier), text: I18n.t(:label_budget_plural)}]+ [{ href: project_overview_path(@project.identifier), text: @project.name },+ { href: projects_budgets_path(@project.identifier), text: I18n.t(:label_budget_plural) }]else- [{ href: home_path, text: organization_name}]+ [{ href: home_path, text: organization_name }]end%><%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:caption_default_rate_history_for, user: @user.name) }- header.with_breadcrumbs([*(breadcrumb_items),- t(:caption_default_rate_history_for, user: @user.name)])+ header.with_breadcrumbs(+ [*(breadcrumb_items),+ t(:caption_default_rate_history_for, user: @user.name)]+ )end%>diff --git a/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb b/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erbindex 330c8ae0263..2a5237bea48 100644--- a/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb+++ b/modules/costs/app/views/projects/settings/time_entry_activities/show.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:enumeration_activities) }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: project_settings_general_path(@project.id), text: I18n.t(:label_project_settings) },- t(:enumeration_activities)])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_settings_general_path(@project.id), text: I18n.t(:label_project_settings) },+ t(:enumeration_activities)]+ )end%>diff --git a/modules/costs/app/views/time_entries/dialog.turbo_stream.erb b/modules/costs/app/views/time_entries/dialog.turbo_stream.erbindex c8a95c96251..f717e85b818 100644--- a/modules/costs/app/views/time_entries/dialog.turbo_stream.erb+++ b/modules/costs/app/views/time_entries/dialog.turbo_stream.erb@@ -1,7 +1,9 @@<%= turbo_stream.dialog do- render(TimeEntries::EntryDialogComponent.new(- time_entry: @time_entry,- show_user: @show_user,- show_work_package: @show_work_package- ))-end %>+ render(+ TimeEntries::EntryDialogComponent.new(+ time_entry: @time_entry,+ show_user: @show_user,+ show_work_package: @show_work_package+ )+ )+ end %>diff --git a/modules/documents/app/views/documents/edit.html.erb b/modules/documents/app/views/documents/edit.html.erbindex e35b9f04f31..85a1f2ca7d8 100644--- a/modules/documents/app/views/documents/edit.html.erb+++ b/modules/documents/app/views/documents/edit.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { @document.title }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- { href: project_documents_path(@project), text: t(:label_document_plural) },- @document.title])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_documents_path(@project), text: t(:label_document_plural) },+ @document.title]+ )end%>diff --git a/modules/documents/app/views/documents/index.html.erb b/modules/documents/app/views/documents/index.html.erbindex d92bd4fb4c0..c6814989274 100644--- a/modules/documents/app/views/documents/index.html.erb+++ b/modules/documents/app/views/documents/index.html.erb@@ -30,19 +30,23 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_document_plural) }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- t(:label_document_plural)])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ t(:label_document_plural)]+ )end%><% if authorize_for(:documents, :new) %><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- 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|+ subheader.with_action_button(+ scheme: :primary,+ 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|button.with_leading_visual_icon(icon: :plus)t("activerecord.models.document")enddiff --git a/modules/documents/app/views/documents/new.html.erb b/modules/documents/app/views/documents/new.html.erbindex e14f84127a6..c0ce926ebe9 100644--- a/modules/documents/app/views/documents/new.html.erb+++ b/modules/documents/app/views/documents/new.html.erb@@ -30,9 +30,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_document_new) }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: project_documents_path(@project.id), text: t(:label_document_plural) },- t(:label_document_new)])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_documents_path(@project.id), text: t(:label_document_plural) },+ t(:label_document_new)]+ )end%>diff --git a/modules/documents/app/views/documents/show.html.erb b/modules/documents/app/views/documents/show.html.erbindex 5e2e35795a5..7cf8811494e 100644--- a/modules/documents/app/views/documents/show.html.erb+++ b/modules/documents/app/views/documents/show.html.erb@@ -31,37 +31,42 @@ See COPYRIGHT and LICENSE files for more details.render Primer::OpenProject::PageHeader.new do |header|header.with_title { @document.title }header.with_description { "#{@document.category.name} - #{format_date @document.created_at}" }- header.with_breadcrumbs( [{ href: project_overview_path(@project.id), text: @project.name },- { href: project_documents_path(@project), text: t(:label_document_plural) },- @document.title- ])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_documents_path(@project), text: t(:label_document_plural) },+ @document.title]+ )if authorize_for(:documents, :edit)- header.with_action_button(tag: :a,- scheme: :default,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: url_for({controller: "/documents", action: "edit", id: @document}),- aria: { label: t(:button_edit) },- title: t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :default,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ 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)t(:button_edit)endendif authorize_for(:documents, :destroy)- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: url_for({controller: "/documents", action: "destroy", id: @document}),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :delete- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: url_for({ controller: "/documents", action: "destroy", id: @document }),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :delete+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/modules/gantt/app/views/gantt/gantt/index.html.erb b/modules/gantt/app/views/gantt/gantt/index.html.erbindex 50f1cdad2e3..89b245c7c9c 100644--- a/modules/gantt/app/views/gantt/gantt/index.html.erb+++ b/modules/gantt/app/views/gantt/gantt/index.html.erb@@ -32,5 +32,5 @@ See COPYRIGHT and LICENSE files for more details.<% 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, { 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/github_integration/app/views/deploy_targets/_form.html.erb b/modules/github_integration/app/views/deploy_targets/_form.html.erbindex 0f60dab4f14..4f3538a9546 100644--- a/modules/github_integration/app/views/deploy_targets/_form.html.erb+++ b/modules/github_integration/app/views/deploy_targets/_form.html.erb@@ -47,11 +47,11 @@ See COPYRIGHT and LICENSE files for more details.<%= f.text_field "api_key", container_class: "-wide" %><span class="form--field-instructions"><%= link_translate(- :text_deploy_target_api_key_info,- links: {- docs_url: "https://www.openproject.org/docs/api/introduction/#api-key-through-basic-auth"- }- ) %>+ :text_deploy_target_api_key_info,+ links: {+ docs_url: "https://www.openproject.org/docs/api/introduction/#api-key-through-basic-auth"+ }+ ) %></span></div></section>diff --git a/modules/github_integration/app/views/deploy_targets/index.html.erb b/modules/github_integration/app/views/deploy_targets/index.html.erbindex 98f4ef5affb..f90897b8ea9 100644--- a/modules/github_integration/app/views/deploy_targets/index.html.erb+++ b/modules/github_integration/app/views/deploy_targets/index.html.erb@@ -32,22 +32,26 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_github_integration) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- t(:label_github_integration)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ t(:label_github_integration)]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t(:button_add_deploy_target) },- title: I18n.t(:button_add_deploy_target),- tag: :a,- href: new_deploy_target_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t(:button_add_deploy_target) },+ title: I18n.t(:button_add_deploy_target),+ tag: :a,+ href: new_deploy_target_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t(:label_deploy_target)endend%>-<%= render DeployTargets::TableComponent.new(rows: @deploy_targets, current_user: ) %>+<%= render DeployTargets::TableComponent.new(rows: @deploy_targets, current_user:) %>diff --git a/modules/github_integration/app/views/deploy_targets/new.html.erb b/modules/github_integration/app/views/deploy_targets/new.html.erbindex 9aaf3a7a2ab..58decee8871 100644--- a/modules/github_integration/app/views/deploy_targets/new.html.erb+++ b/modules/github_integration/app/views/deploy_targets/new.html.erb@@ -32,9 +32,11 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_deploy_target_new) }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: deploy_targets_path, text: t(:label_github_integration) },- t(:label_deploy_target_new)])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: deploy_targets_path, text: t(:label_github_integration) },+ t(:label_deploy_target_new)]+ )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.erbindex 13945775b29..4f9773110f7 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@@ -3,48 +3,57 @@<%= content_tag :div, "", data: { "job-status-polling-target": "finished" } %><% end %><%= render Primer::OpenProject::FeedbackMessage.new(icon_arguments: icon) do |component|- component.with_heading(tag: :h2).with_content(title)- component.with_description do- flex_layout do |flex|- if message.present?- flex.with_row { render(Primer::Beta::Text.new) { message } }- end- if job_errors?- job_errors.each do |message|- flex.with_row { render(Primer::Beta::Text.new) { message } }+ component.with_heading(tag: :h2).with_content(title)+ component.with_description do+ flex_layout do |flex|+ if message.present?+ flex.with_row { render(Primer::Beta::Text.new) { message } }+ end+ if job_errors?+ job_errors.each do |message|+ flex.with_row { render(Primer::Beta::Text.new) { message } }+ end+ end+ if redirect_url.present?+ flex.with_row {+ render(+ Primer::Beta::Link.new(+ href: redirect_url,+ data: {+ action: "job-status-polling#redirectClick",+ "job-status-polling-target": job_errors.present? ? nil : "redirect"+ }+ )+ ) { 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.link_to_download",+ link: (render(+ Primer::Beta::Link.new(+ href: download_url,+ target: "_blank",+ type: mime_type,+ # omit download attribute for PDF,+ # so they open in a tab - if supported and activated in the browser+ download: mime_type_pdf? ? nil : "download",+ data: {+ "job-status-polling-target": "download"+ }+ )+ ) { I18n.t("job_status_dialog.click_here") })+ ).html_safe+ }+ }+ end+ if job_html.present?+ flex.with_row(text_align: :left) { job_html.html_safe }+ endendend- if redirect_url.present?- flex.with_row { render(Primer::Beta::Link.new(- href: redirect_url,- data: {- action: "job-status-polling#redirectClick",- "job-status-polling-target": job_errors.present? ? nil : "redirect"- }- )) { 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.link_to_download",- link: (render(Primer::Beta::Link.new(- href: download_url,- target: "_blank",- type: mime_type,- # omit download attribute for PDF,- # so they open in a tab - if supported and activated in the browser- download: mime_type_pdf? ? nil : "download",- data: {- "job-status-polling-target": "download"- }- )) { I18n.t("job_status_dialog.click_here") })- ).html_safe- } }- end- if job_html.present?- flex.with_row(text_align: :left) { job_html.html_safe }- end- end- end- end %>+ end %><% 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.erbindex dfb35457324..16b53cafb96 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,29 +1,37 @@-<%= render(Primer::Alpha::Dialog.new(- title: I18n.t("job_status_dialog.title"),- visually_hide_title: true,- size: :large,- id: MODAL_ID,- data: {- "application-target": "dynamic",- controller: "job-status-polling",- "job-status-polling-back-on-close-value": back_on_close- }-)) do |dialog| %>+<%= render(+ Primer::Alpha::Dialog.new(+ title: I18n.t("job_status_dialog.title"),+ visually_hide_title: true,+ size: :large,+ id: MODAL_ID,+ data: {+ "application-target": "dynamic",+ controller: "job-status-polling",+ "job-status-polling-back-on-close-value": back_on_close+ }+ )+ ) do |dialog| %><% dialog.with_body do %><div class="op-loading-indicator" data-job-status-polling-target="indicator"><div></div><div></div></div>- <%= turbo_frame_tag("job_status_modal",- src: job_status_dialog_body_path(job_uuid: job_uuid),- data: {- "job-status-polling-target": "frame"- }) %>+ <%= turbo_frame_tag(+ "job_status_modal",+ src: job_status_dialog_body_path(job_uuid: job_uuid),+ data: {+ "job-status-polling-target": "frame"+ }+ ) %><% end %><% dialog.with_footer do %>- <%= render(Primer::Beta::Button.new(data: {- "close-dialog-id": MODAL_ID- })) { I18n.t(:button_close) } %>+ <%= render(+ Primer::Beta::Button.new(+ data: {+ "close-dialog-id": MODAL_ID+ }+ )+ ) { I18n.t(:button_close) } %><% end %><% end %>diff --git a/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/show_page_header_component.html.erb b/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/show_page_header_component.html.erbindex cde540d9ca0..21b6981865c 100644--- a/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/show_page_header_component.html.erb+++ b/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/show_page_header_component.html.erb@@ -33,29 +33,33 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: :normal)unless blocked?- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_ldap_groups_synchronized_filter_path(@filter),- aria: { label: I18n.t(:button_edit) },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ href: edit_ldap_groups_synchronized_filter_path(@filter),+ aria: { label: I18n.t(:button_edit) },+ title: I18n.t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)end- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: ldap_groups_synchronized_filter_path(@filter),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: I18n.t(:text_are_you_sure),- method: :delete- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: ldap_groups_synchronized_filter_path(@filter),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: I18n.t(:text_are_you_sure),+ method: :delete+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --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.erbindex 6e057ea7e21..8944fcde6a7 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@@ -21,7 +21,7 @@<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") %></div>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.erbindex caab807b8bd..2102ca2d3c1 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,8 +1,10 @@<% 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",- method: :delete) do %>+<%= styled_form_tag(+ { action: :destroy, ldap_group_id: @filter.id },+ 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) %>@@ -48,16 +50,18 @@</div><% end %><p>- <%= t("ldap_groups.synchronized_filters.destroy.verification",- name: "<em class=\"danger-zone--expected-value\">#{h(@filter.name)}</em>").html_safe %>+ <%= 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"- end %>+ 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),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.erbindex fe9deafe415..f787e1e30d6 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@@ -10,7 +10,8 @@{ href: ldap_groups_synchronized_groups_path, text: I18n.t("ldap_groups.label_menu_item") },nested_breadcrumb_element(t("ldap_groups.synchronized_filters.singular"), @filter.name),],- selected_item_font_weight: :normal)+ selected_item_font_weight: :normal+ )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.erbindex b03613438d7..cae9a1ac7c7 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@@ -3,10 +3,12 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("ldap_groups.synchronized_filters.add_new") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- { href: ldap_groups_synchronized_groups_path, text: I18n.t("ldap_groups.label_menu_item") },- t("ldap_groups.synchronized_filters.add_new")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: ldap_groups_synchronized_groups_path, text: I18n.t("ldap_groups.label_menu_item") },+ t("ldap_groups.synchronized_filters.add_new")]+ )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.erbindex 75a16d942d2..c5b7e6c3a71 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@@ -15,30 +15,44 @@<section class="admin--edit-section"><%= render(AttributeGroups::AttributeGroupComponent.new) do |component|- component.with_attribute(key: @filter.class.human_attribute_name(:name),- value: @filter.name)- component.with_attribute(key: @filter.class.human_attribute_name(:group_name_attribute),- value: @filter.group_name_attribute)- component.with_attribute(key: @filter.class.human_attribute_name(:base_dn),- value: @filter.used_base_dn)- component.with_attribute(key: @filter.class.human_attribute_name(:sync_users),- value: if @filter.sync_users- checked_image @filter.sync_users- else- t(:general_text_no)- 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"),- value: @filter.groups.count)- end %>+ component.with_attribute(+ key: @filter.class.human_attribute_name(:name),+ value: @filter.name+ )+ component.with_attribute(+ key: @filter.class.human_attribute_name(:group_name_attribute),+ value: @filter.group_name_attribute+ )+ component.with_attribute(+ key: @filter.class.human_attribute_name(:base_dn),+ value: @filter.used_base_dn+ )+ component.with_attribute(+ key: @filter.class.human_attribute_name(:sync_users),+ value: if @filter.sync_users+ checked_image @filter.sync_users+ else+ t(:general_text_no)+ 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"),+ value: @filter.groups.count+ )+ end %></section><section class="admin--edit-section"><%= toolbar(title: t("ldap_groups.synchronized_groups.plural")) do %><li class="toolbar-item">- <%= link_to({ action: :synchronize },- class: "button") do %>+ <%= link_to(+ { action: :synchronize },+ class: "button"+ ) do %><span class="button--text"><%= t("ldap_groups.label_synchronize") %></span><% end %></li>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.erbindex 31cf5b0ae97..f854a2975d6 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,8 +1,10 @@<% 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",- method: :delete) do %>+<%= styled_form_tag(+ { action: :destroy, ldap_group_id: @group.id },+ 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) %>@@ -16,15 +18,17 @@<p><span><%= t("ldap_groups.synchronized_groups.destroy.info") %></span><br>- <%= t("ldap_groups.synchronized_groups.destroy.verification",- name: "<em class=\"danger-zone--expected-value\">#{h(@group.dn)}</em>").html_safe %>+ <%= 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"- end %>+ 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),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.erbindex c83eec27f0b..04a5ecff07f 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@@ -3,37 +3,41 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t("ldap_groups.synchronized_groups.plural") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- I18n.t("ldap_groups.synchronized_groups.plural")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ I18n.t("ldap_groups.synchronized_groups.plural")]+ )end%><%= render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_component do- render(Primer::Alpha::ActionMenu.new(anchor_align: :end)) do |menu|- menu.with_show_button(scheme: :primary,- test_selector: "op-admin-synchronized-groups--button-new",- aria: { label: I18n.t(:button_add) }) do |button|- button.with_leading_visual_icon(icon: :plus)- button.with_trailing_action_icon(icon: :"triangle-down")- I18n.t(:button_add)- end+ subheader.with_action_component do+ render(Primer::Alpha::ActionMenu.new(anchor_align: :end)) do |menu|+ menu.with_show_button(+ scheme: :primary,+ test_selector: "op-admin-synchronized-groups--button-new",+ aria: { label: I18n.t(:button_add) }+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ button.with_trailing_action_icon(icon: :"triangle-down")+ I18n.t(:button_add)+ end- menu.with_item(- label: I18n.t("ldap_groups.synchronized_filters.singular"),- test_selector: "op-admin-synchronized-groups--new-filters",- href: new_ldap_groups_synchronized_filter_path- )+ menu.with_item(+ label: I18n.t("ldap_groups.synchronized_filters.singular"),+ test_selector: "op-admin-synchronized-groups--new-filters",+ href: new_ldap_groups_synchronized_filter_path+ )- menu.with_item(- label: I18n.t("ldap_groups.synchronized_groups.singular"),- test_selector: "op-admin-synchronized-groups--new-groups",- href: new_ldap_groups_synchronized_group_path- )- end- end-end %>+ menu.with_item(+ label: I18n.t("ldap_groups.synchronized_groups.singular"),+ test_selector: "op-admin-synchronized-groups--new-groups",+ href: new_ldap_groups_synchronized_group_path+ )+ end+ end+ end %><div class="op-toast -info"><div class="op-toast--content">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.erbindex b2ec62f75f7..950b61fc937 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@@ -3,10 +3,12 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("ldap_groups.synchronized_groups.add_new") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- { href: ldap_groups_synchronized_groups_path, text: I18n.t("ldap_groups.label_menu_item") },- t("ldap_groups.synchronized_groups.add_new")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: ldap_groups_synchronized_groups_path, text: I18n.t("ldap_groups.label_menu_item") },+ t("ldap_groups.synchronized_groups.add_new")]+ )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.erbindex 1271fdd257c..8fc5ef8528c 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@@ -7,8 +7,7 @@[{ href: admin_index_path, text: t(:label_administration) },{ href: admin_settings_authentication_path, text: t(:label_authentication) },{ href: ldap_groups_synchronized_groups_path, text: I18n.t("ldap_groups.label_menu_item") },- nested_breadcrumb_element(t("ldap_groups.synchronized_groups.singular"), @group.dn)- ],+ nested_breadcrumb_element(t("ldap_groups.synchronized_groups.singular"), @group.dn)],selected_item_font_weight: :normal)end@@ -19,17 +18,25 @@<section class="admin--edit-section"><%=render(AttributeGroups::AttributeGroupComponent.new) do |component|- component.with_attribute(key: @group.class.human_attribute_name(:dn),- value: @group.dn)+ component.with_attribute(+ key: @group.class.human_attribute_name(:dn),+ value: @group.dn+ )- component.with_attribute(key: @group.class.human_attribute_name(:sync_users),- value: @group.sync_users ? checked_image(@group.sync_users) : t(:general_text_no))+ component.with_attribute(+ key: @group.class.human_attribute_name(:sync_users),+ value: @group.sync_users ? checked_image(@group.sync_users) : t(:general_text_no)+ )- component.with_attribute(key: @group.class.human_attribute_name(:auth_source),- value: link_to(@group.ldap_auth_source.name, edit_ldap_auth_source_path(@group.ldap_auth_source)))+ component.with_attribute(+ key: @group.class.human_attribute_name(:auth_source),+ value: link_to(@group.ldap_auth_source.name, edit_ldap_auth_source_path(@group.ldap_auth_source))+ )- component.with_attribute(key: @group.class.human_attribute_name(:group),- value: link_to(@group.group, edit_group_path(@group.group)))+ component.with_attribute(+ key: @group.class.human_attribute_name(:group),+ value: link_to(@group.group, edit_group_path(@group.group))+ )end%></section>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.erbindex eead66f02ac..15303fcff31 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@@ -2,8 +2,8 @@<%= 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/blank_slate_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/blank_slate_component.html.erbindex 44f1977e133..fbeffff6607 100644--- a/modules/meeting/app/components/meeting_agenda_items/blank_slate_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/blank_slate_component.html.erb@@ -20,8 +20,10 @@if can_finalize_template?flex.with_row(mt: 2) dorender(Primer::Beta::Text.new(font_weight: :bold, color: :subtle)) do- t(:"recurring_meeting.template.blankslate_finalize",- button_title: t("recurring_meeting.template.button_finalize"))+ t(+ :"recurring_meeting.template.blankslate_finalize",+ button_title: t("recurring_meeting.template.button_finalize")+ )endendenddiff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/form_component.html.erbindex f5c89e14fac..a5b578e86cc 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@@ -23,21 +23,25 @@render(MeetingAgendaItem::Presenter.new(f))end- grid.with_area(:notes,- display: display_notes_input_value,- data: { 'meeting-agenda-item-form-target': "notesInput" }) do+ grid.with_area(+ :notes,+ display: display_notes_input_value,+ data: { 'meeting-agenda-item-form-target': "notesInput" }+ ) dorender(MeetingAgendaItem::Notes.new(f))endgrid.with_area(:actions) doflex_layout do |flex|flex.with_column(mr: 2) do- render(Primer::Beta::Button.new(- scheme: :secondary,- tag: :a,- href: @cancel_path,- data: { 'turbo-stream': true }- )) do |_c|+ render(+ Primer::Beta::Button.new(+ scheme: :secondary,+ tag: :a,+ href: @cancel_path,+ data: { 'turbo-stream': true }+ )+ ) do |_c|t("button_cancel")endenddiff --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.erbindex 5a0776a105b..fd4932c8b8c 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@@ -27,9 +27,13 @@grid.with_area(:title, tag: :div) doif @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",- font_size: :normal, font_weight: :bold, target: "_blank")) do+ render(+ Primer::Beta::Link.new(+ href: work_package_path(@meeting_agenda_item.work_package), underline: false,+ test_selector: "op-meeting-agenda-title",+ font_size: :normal, font_weight: :bold, target: "_blank"+ )+ ) do@meeting_agenda_item.work_package.subjectendend@@ -54,11 +58,13 @@grid.with_area(:actions, tag: :div, justify_self: :end, classes: "hide-when-print") doif edit_enabled?render(Primer::Alpha::ActionMenu.new) do |menu|- menu.with_show_button(icon: "kebab-horizontal",- 'aria-label': I18n.t(:label_agenda_item_actions),- scheme: :invisible,- ml: 2,- test_selector: "op-meeting-agenda-actions")+ menu.with_show_button(+ icon: "kebab-horizontal",+ 'aria-label': I18n.t(:label_agenda_item_actions),+ scheme: :invisible,+ ml: 2,+ 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_agenda_items/new_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/new_component.html.erbindex 8aae29ad1fe..a8cbb800841 100644--- a/modules/meeting/app/components/meeting_agenda_items/new_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/new_component.html.erb@@ -3,15 +3,17 @@unless @hiddenrender(Primer::Box.new(border: :top)) dorender(Primer::Box.new(p: 3)) do- render(MeetingAgendaItems::FormComponent.new(- meeting: @meeting,- meeting_agenda_item: @meeting_agenda_item,- meeting_section: @meeting_section,- method: :post,- submit_path: meeting_agenda_items_path(@meeting, format: :turbo_stream),- cancel_path: cancel_new_meeting_agenda_items_path(@meeting, meeting_section_id: @meeting_section&.id),- type: @type- ))+ render(+ MeetingAgendaItems::FormComponent.new(+ meeting: @meeting,+ meeting_agenda_item: @meeting_agenda_item,+ meeting_section: @meeting_section,+ method: :post,+ submit_path: meeting_agenda_items_path(@meeting, format: :turbo_stream),+ cancel_path: cancel_new_meeting_agenda_items_path(@meeting, meeting_section_id: @meeting_section&.id),+ type: @type+ )+ )endendenddiff --git a/modules/meeting/app/components/meeting_sections/header_component.html.erb b/modules/meeting/app/components/meeting_sections/header_component.html.erbindex 638ddfa4861..29c1e64670e 100644--- a/modules/meeting/app/components/meeting_sections/header_component.html.erb+++ b/modules/meeting/app/components/meeting_sections/header_component.html.erb@@ -43,9 +43,9 @@method: :put,url: meeting_section_path(@meeting_section.meeting, @meeting_section),data: {- "controller": "meeting-section-form",- "application-target": "dynamic",- "meeting-section-form-cancel-url-value": cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section)+ "controller": "meeting-section-form",+ "application-target": "dynamic",+ "meeting-section-form-cancel-url-value": cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section)}) do |f|flex_layout do |editable_title_form|@@ -58,12 +58,14 @@endeditable_title_form.with_column do- render(Primer::Beta::Button.new(- scheme: :secondary,- tag: :a,- href: cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section),- data: { 'turbo-stream': true }- )) do |_c|+ render(+ Primer::Beta::Button.new(+ scheme: :secondary,+ tag: :a,+ href: cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section),+ data: { 'turbo-stream': true }+ )+ ) do |_c|t("button_cancel")endenddiff --git a/modules/meeting/app/components/meetings/combined_filter_component.html.erb b/modules/meeting/app/components/meetings/combined_filter_component.html.erbindex 8fde66db7c6..762b7c82772 100644--- a/modules/meeting/app/components/meetings/combined_filter_component.html.erb+++ b/modules/meeting/app/components/meetings/combined_filter_component.html.erb@@ -6,18 +6,22 @@flex.with_column(ml: 1) dorender(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_meeting_date_time))) do |control|- control.with_item(tag: :a,- icon: :"arrow-right",- href: dynamic_path,- label: t(:label_upcoming_meetings_short),- title: t(:label_upcoming_meetings),- selected: upcoming_query?)- control.with_item(tag: :a,- icon: :history,- href: dynamic_path(upcoming: false),- label: t(:label_past_meetings_short),- title: t(:label_past_meetings),- selected: !upcoming_query?)+ control.with_item(+ tag: :a,+ icon: :"arrow-right",+ href: dynamic_path,+ label: t(:label_upcoming_meetings_short),+ title: t(:label_upcoming_meetings),+ selected: upcoming_query?+ )+ control.with_item(+ tag: :a,+ icon: :history,+ href: dynamic_path(upcoming: false),+ label: t(:label_past_meetings_short),+ title: t(:label_past_meetings),+ selected: !upcoming_query?+ )endendenddiff --git a/modules/meeting/app/components/meetings/delete_dialog_component.html.erb b/modules/meeting/app/components/meetings/delete_dialog_component.html.erbindex 53409bf55e8..f78a174c8c4 100644--- a/modules/meeting/app/components/meetings/delete_dialog_component.html.erb+++ b/modules/meeting/app/components/meetings/delete_dialog_component.html.erb@@ -28,15 +28,17 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id:,- title:,- form_arguments: {- action: polymorphic_path([@project, @meeting.becomes(Meeting)]),- method: :delete,- data: { turbo: true }- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id:,+ title:,+ form_arguments: {+ action: polymorphic_path([@project, @meeting.becomes(Meeting)]),+ method: :delete,+ data: { turbo: true }+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { heading }message.with_description_content(confirmation_message)diff --git a/modules/meeting/app/components/meetings/header_component.html.erb b/modules/meeting/app/components/meetings/header_component.html.erbindex 9b45421d4b8..ca69e5f785c 100644--- a/modules/meeting/app/components/meetings/header_component.html.erb+++ b/modules/meeting/app/components/meetings/header_component.html.erb@@ -1,24 +1,28 @@<%=helpers.content_controller "poll-for-changes keep-scroll-position",- poll_for_changes_url_value: check_for_updates_meeting_path(@meeting),- poll_for_changes_interval_value: check_for_updates_interval,- keep_scroll_position_url_value: meeting_path(@meeting)+ poll_for_changes_url_value: check_for_updates_meeting_path(@meeting),+ poll_for_changes_interval_value: check_for_updates_interval,+ keep_scroll_position_url_value: meeting_path(@meeting)component_wrapper do- render(Primer::OpenProject::PageHeader.new(- test_selector: "meeting-page-header",- state: @state,- data: {- poll_for_changes_target: "reference",- reference_value: @meeting.changed_hash- }- )) do |header|+ render(+ Primer::OpenProject::PageHeader.new(+ test_selector: "meeting-page-header",+ state: @state,+ data: {+ poll_for_changes_target: "reference",+ reference_value: @meeting.changed_hash+ }+ )+ ) do |header|header.with_title do |title|- title.with_editable_form(model: @meeting,- update_path: update_title_meeting_path(@meeting),- cancel_path: cancel_edit_meeting_path(@meeting),- label: Meeting.human_attribute_name(:title),- placeholder: Meeting.human_attribute_name(:title),)+ title.with_editable_form(+ model: @meeting,+ update_path: update_title_meeting_path(@meeting),+ cancel_path: cancel_edit_meeting_path(@meeting),+ label: Meeting.human_attribute_name(:title),+ placeholder: Meeting.human_attribute_name(:title),+ )if @meeting.template?"#{@meeting.title} (#{I18n.t(:label_template)})"elsif @series.present?@@ -45,61 +49,73 @@endend- header.with_action_menu(menu_arguments: {},- button_arguments: { icon: "kebab-horizontal",- "aria-label": t("label_meeting_actions"),- classes: "hide-when-print",- 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: {- data: { 'turbo-stream': true }- }) do |item|+ header.with_action_menu(+ menu_arguments: {},+ button_arguments: { icon: "kebab-horizontal",+ "aria-label": t("label_meeting_actions"),+ classes: "hide-when-print",+ 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: {+ data: { 'turbo-stream': true }+ }+ ) do |item|item.with_leading_visual_icon(icon: :pencil)end if @meeting.editable? && !@seriesunless @meeting.template?- menu.with_item(label: copy_label,- href: copy_meeting_path(@meeting),- content_arguments: {- data: { turbo_stream: true }- }) do |item|- item.with_leading_visual_icon(icon: :copy)- end+ menu.with_item(+ label: copy_label,+ href: copy_meeting_path(@meeting),+ content_arguments: {+ data: { turbo_stream: true }+ }+ ) do |item|+ item.with_leading_visual_icon(icon: :copy)+ end- menu.with_item(label: t(:label_icalendar_download),- href: ics_download_path) do |item|- item.with_leading_visual_icon(icon: :download)- end+ menu.with_item(+ label: t(:label_icalendar_download),+ href: ics_download_path+ ) do |item|+ item.with_leading_visual_icon(icon: :download)+ end- if @meeting.open? &&User.current.allowed_in_project?(:send_meeting_agendas_notification, @meeting.project- )- menu.with_item(label: t("meeting.label_mail_all_participants"),- href: notify_meeting_path(@meeting),- form_arguments: { method: :post, data: { turbo: "false" } }) do |item|- item.with_leading_visual_icon(icon: :mail)- end+ if @meeting.open? && User.current.allowed_in_project?(:send_meeting_agendas_notification, @meeting.project)+ menu.with_item(+ label: t("meeting.label_mail_all_participants"),+ href: notify_meeting_path(@meeting),+ form_arguments: { method: :post, data: { turbo: "false" } }+ ) do |item|+ item.with_leading_visual_icon(icon: :mail)endend+ end- menu.with_item(label: t(:label_history),- tag: :a,- href: history_meeting_path(@meeting),- content_arguments: {- "data-controller": "async-dialog",- },- value: ""+ menu.with_item(+ label: t(:label_history),+ tag: :a,+ href: history_meeting_path(@meeting),+ content_arguments: {+ "data-controller": "async-dialog",+ },+ value: "") do |item|item.with_leading_visual_icon(icon: :clock) # or :check TBDend- menu.with_item(label: delete_label,- scheme: :danger,- href: polymorphic_path([:delete_dialog, @project, @meeting.becomes(Meeting)]),- tag: :a,- content_arguments: {- data: { controller: "async-dialog" }- }) do |item|+ menu.with_item(+ label: delete_label,+ scheme: :danger,+ href: polymorphic_path([:delete_dialog, @project, @meeting.becomes(Meeting)]),+ tag: :a,+ content_arguments: {+ data: { controller: "async-dialog" }+ }+ ) do |item|item.with_leading_visual_icon(icon: :trash)end if delete_enabled?enddiff --git a/modules/meeting/app/components/meetings/index/dialog_component.html.erb b/modules/meeting/app/components/meetings/index/dialog_component.html.erbindex 4fcdb4d98c2..72e535242c7 100644--- a/modules/meeting/app/components/meetings/index/dialog_component.html.erb+++ b/modules/meeting/app/components/meetings/index/dialog_component.html.erb@@ -1,15 +1,21 @@<%=- render(Primer::Alpha::Dialog.new(- id: "new-meeting-dialog",- title:,- size: :medium_portrait,- data: { 'keep-open-on-submit': true }- )) do |dialog|+ render(+ Primer::Alpha::Dialog.new(+ id: "new-meeting-dialog",+ title:,+ size: :medium_portrait,+ data: { 'keep-open-on-submit': true }+ )+ ) do |dialog|dialog.with_header(variant: :large)dialog.with_body do- render(Meetings::Index::FormComponent.new(meeting: @meeting,- project: @project,- copy_from: @copy_from))+ render(+ Meetings::Index::FormComponent.new(+ meeting: @meeting,+ project: @project,+ copy_from: @copy_from+ )+ )enddialog.with_footer do@@ -17,7 +23,8 @@modal_footer.with_component(Primer::ButtonComponent.new(data: { 'close-dialog-id': "new-meeting-dialog" }- )) do+ )+ ) doI18n.t(:button_cancel)end@@ -26,7 +33,8 @@scheme: :primary,form: "meeting-form",type: :submit- )) do+ )+ ) doif @meeting.persisted?I18n.t(:button_save)elsif @meeting.is_a?(RecurringMeeting)diff --git a/modules/meeting/app/components/meetings/index/form_component.html.erb b/modules/meeting/app/components/meetings/index/form_component.html.erbindex 6996d35a4e4..00360ab6ab4 100644--- a/modules/meeting/app/components/meetings/index/form_component.html.erb+++ b/modules/meeting/app/components/meetings/index/form_component.html.erb@@ -61,18 +61,21 @@not_value: "working_days",set_visibility: "true","show-when-value-selected-target": "effect"- }) do+ }+ ) dorender(RecurringMeeting::Interval.new(f))endendendmodal_body.with_row(mt: 1) do- render(Primer::Beta::Text.new(- id: "recurring-meeting-frequency-schedule",- font_size: :small,- color: :subtle,- )) { @meeting.human_frequency_schedule }+ render(+ Primer::Beta::Text.new(+ id: "recurring-meeting-frequency-schedule",+ font_size: :small,+ color: :subtle,+ )+ ) { @meeting.human_frequency_schedule }endmodal_body.with_row(mt: 3) do@@ -86,21 +89,25 @@hidden: @meeting.frequency_working_days?,) doflex_layout do |end_after|- end_after.with_row(hidden: [email protected]_after_specific_date?,- data: {- value: "specific_date",- target_name: "end_after",- "show-when-value-selected-target": "effect" }+ end_after.with_row(+ hidden: [email protected]_after_specific_date?,+ data: {+ value: "specific_date",+ target_name: "end_after",+ "show-when-value-selected-target": "effect"+ }) dorender(RecurringMeeting::SpecificDate.new(f, meeting: @meeting))end- end_after.with_row(hidden: [email protected]_after_iterations?,- data: {- value: "iterations",- target_name: "end_after",- "show-when-value-selected-target": "effect"- }) do+ end_after.with_row(+ hidden: [email protected]_after_iterations?,+ data: {+ value: "iterations",+ target_name: "end_after",+ "show-when-value-selected-target": "effect"+ }+ ) dorender(RecurringMeeting::Iterations.new(f))endenddiff --git a/modules/meeting/app/components/meetings/index_sub_header_component.html.erb b/modules/meeting/app/components/meetings/index_sub_header_component.html.erbindex 42d26e7181b..1b8df634ce8 100644--- a/modules/meeting/app/components/meetings/index_sub_header_component.html.erb+++ b/modules/meeting/app/components/meetings/index_sub_header_component.html.erb@@ -1,55 +1,63 @@-<%= render(Primer::OpenProject::SubHeader.new(data: {- controller: "filter--filters-form",- "application-target": "dynamic",- "filter--filters-form-output-format-value": "json",-})) do |subheader|- subheader.with_filter_component do- render(Meetings::CombinedFilterComponent.new(query: @query, project: @project, params: @params))- end-- if render_create_button?- subheader.with_action_component do+<%= render(+ Primer::OpenProject::SubHeader.new(+ data: {+ controller: "filter--filters-form",+ "application-target": "dynamic",+ "filter--filters-form-output-format-value": "json",+ }+ )+ ) do |subheader|+ subheader.with_filter_component do+ render(Meetings::CombinedFilterComponent.new(query: @query, project: @project, params: @params))+ end- render Primer::Alpha::ActionMenu.new(anchor_align: :end) do |menu|- menu.with_show_button(scheme: :primary,- test_selector: "add-meeting-button",- mobile_icon: :plus,- mobile_label: label_text,- id: id,- title: accessibility_label_text,- aria: { label: accessibility_label_text }) do |button|- button.with_leading_visual_icon(icon: :plus)- button.with_trailing_action_icon(icon: :"triangle-down")- I18n.t(:label_meeting)- end+ if render_create_button?+ subheader.with_action_component do+ render Primer::Alpha::ActionMenu.new(anchor_align: :end) do |menu|+ menu.with_show_button(+ scheme: :primary,+ test_selector: "add-meeting-button",+ mobile_icon: :plus,+ mobile_label: label_text,+ id: id,+ title: accessibility_label_text,+ aria: { label: accessibility_label_text }+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ button.with_trailing_action_icon(icon: :"triangle-down")+ I18n.t(:label_meeting)+ end- menu.with_item(label: I18n.t("meeting.types.one_time"),- tag: :a,- href: new_dialog_meetings_path(project_id: @project&.id, type: :structured),- content_arguments: { data: { controller: "async-dialog" } }- ) do |item|- item.with_description.with_content(t("meeting.types.structured_text"))- end+ menu.with_item(+ label: I18n.t("meeting.types.one_time"),+ tag: :a,+ href: new_dialog_meetings_path(project_id: @project&.id, type: :structured),+ content_arguments: { data: { controller: "async-dialog" } }+ ) do |item|+ item.with_description.with_content(t("meeting.types.structured_text"))+ end- menu.with_item(label: I18n.t("meeting.types.recurring"),- tag: :a,- href: new_dialog_meetings_path(project_id: @project&.id, type: :recurring),- content_arguments: { data: { controller: "async-dialog" } }- ) do |item|- item.with_description.with_content(t("meeting.types.recurring_text"))- end+ menu.with_item(+ label: I18n.t("meeting.types.recurring"),+ tag: :a,+ href: new_dialog_meetings_path(project_id: @project&.id, type: :recurring),+ content_arguments: { data: { controller: "async-dialog" } }+ ) do |item|+ item.with_description.with_content(t("meeting.types.recurring_text"))+ end- menu.with_item(label: I18n.t("meeting.types.classic"),- tag: :a,- href: dynamic_path- ) do |item|- item.with_description.with_content(t("meeting.types.classic_text"))+ menu.with_item(+ label: I18n.t("meeting.types.classic"),+ tag: :a,+ href: dynamic_path+ ) do |item|+ item.with_description.with_content(t("meeting.types.classic_text"))+ end+ endendend- end- end- subheader.with_bottom_pane_component(mt: 0) do- render(Meetings::MeetingFiltersComponent.new(query: @query, project: @project))- end-end %>+ subheader.with_bottom_pane_component(mt: 0) do+ render(Meetings::MeetingFiltersComponent.new(query: @query, project: @project))+ end+ end %>diff --git a/modules/meeting/app/components/meetings/show_component.html.erb b/modules/meeting/app/components/meetings/show_component.html.erbindex 523b9142b58..6efe0147fa5 100644--- a/modules/meeting/app/components/meetings/show_component.html.erb+++ b/modules/meeting/app/components/meetings/show_component.html.erb@@ -19,8 +19,10 @@agenda.with_row(mt: 3, display: [:block, nil, :none]) doresource = ::API::V3::Meetings::MeetingRepresenter.new(@meeting, current_user: User.current, embed_links: false)concat render(Primer::Beta::Heading.new(tag: :h4)) { I18n.t(:label_attachment_plural) }- concat helpers.list_attachments(resource,- inputs: { allowUploading: true })+ concat helpers.list_attachments(+ resource,+ inputs: { allowUploading: true }+ )endendenddiff --git a/modules/meeting/app/components/meetings/side_panel/attachments_component.html.erb b/modules/meeting/app/components/meetings/side_panel/attachments_component.html.erbindex 5ad41f3be65..4615ef68798 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@@ -20,12 +20,14 @@endresource = ::API::V3::Meetings::MeetingRepresenter.new(@meeting, current_user: User.current, embed_links: false)- helpers.list_attachments(resource,- inputs: {- allowUploading: true,- showTimestamp: false,- externalUploadButton: "#meetings-add-attachments"- })+ helpers.list_attachments(+ resource,+ inputs: {+ allowUploading: true,+ showTimestamp: false,+ externalUploadButton: "#meetings-add-attachments"+ }+ )endend%>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.erbindex b8629b8c944..465a9b5283a 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@@ -84,8 +84,10 @@if @meeting.duration_exceeded_by_agenda_items?duration.with_column(ml: 2) dorender(Primer::Beta::Text.new(color: :danger, font_size: :small)) do- "+ #{I18n.t('datetime.distance_in_words.x_minutes_abbreviated',- count: @meeting.duration_exceeded_by_agenda_items_in_minutes.to_i)}"+ "+ #{I18n.t(+ 'datetime.distance_in_words.x_minutes_abbreviated',+ count: @meeting.duration_exceeded_by_agenda_items_in_minutes.to_i+ )}"endendend@@ -124,14 +126,16 @@endpeople.with_column(mr: 2) do- render(Primer::Beta::Button.new(- scheme: :link,- underline: false,- tag: :a,- href: participants_dialog_meeting_path(@meeting),- classes: "hide-when-print",- data: { controller: "async-dialog" }- )) do+ render(+ Primer::Beta::Button.new(+ scheme: :link,+ underline: false,+ tag: :a,+ href: participants_dialog_meeting_path(@meeting),+ classes: "hide-when-print",+ data: { controller: "async-dialog" }+ )+ ) dot("label_meeting_show_all_participants")endenddiff --git a/modules/meeting/app/components/meetings/side_panel/details_dialog_component.html.erb b/modules/meeting/app/components/meetings/side_panel/details_dialog_component.html.erbindex 03a57737cbb..ece5d780284 100644--- a/modules/meeting/app/components/meetings/side_panel/details_dialog_component.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/details_dialog_component.html.erb@@ -1,8 +1,10 @@<%=- render(Primer::Alpha::Dialog.new(- id: "edit-meeting-details-dialog", title: t("label_meeting_details"),- size: :medium_portrait- )) do |dialog|+ render(+ Primer::Alpha::Dialog.new(+ id: "edit-meeting-details-dialog", title: t("label_meeting_details"),+ size: :medium_portrait+ )+ ) do |dialog|dialog.with_header(variant: :large)render(Meetings::SidePanel::DetailsFormComponent.new(meeting: @meeting))enddiff --git a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erbindex d1641e09cf8..90bfa3dfb57 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@@ -33,16 +33,18 @@if @meeting.editable?participants_container.with_row(mt: 3) do- render(Primer::Beta::Button.new(- scheme: :link,- color: :default,- underline: false,- font_weight: :bold,- tag: :a,- href: participants_dialog_meeting_path(@meeting),- classes: "hide-when-print",- data: { controller: "async-dialog" }- )) do |button|+ render(+ Primer::Beta::Button.new(+ scheme: :link,+ color: :default,+ underline: false,+ font_weight: :bold,+ tag: :a,+ href: participants_dialog_meeting_path(@meeting),+ classes: "hide-when-print",+ data: { controller: "async-dialog" }+ )+ ) do |button|button.with_leading_visual_icon(icon: "person-add")t("label_meeting_add_participants")enddiff --git a/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb b/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erbindex 73cf765c110..22483e46d48 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@@ -1,9 +1,11 @@<%=- render(Primer::Alpha::Dialog.new(- id: "edit-participants-dialog",- size: :medium_portrait,- title: Meeting.human_attribute_name(:participants- ))) do |d|+ render(+ Primer::Alpha::Dialog.new(+ id: "edit-participants-dialog",+ size: :medium_portrait,+ title: Meeting.human_attribute_name(:participants)+ )+ ) do |d|d.with_header(variant: :large)d.with_body do@@ -17,7 +19,6 @@class: "Overlay-form") do |f|flex_layout do |form_container|-form_container.with_row doflex_layout(justify_content: :flex_end) do |header|header.with_column(style: "width: 90px;", text_align: :center) do@@ -48,11 +49,13 @@existing_participant_container.with_row doflex_layout(align_items: :center) do |existing_participant|existing_participant.with_column(flex: 1, classes: "ellipsis") do- render(Users::AvatarComponent.new(- user: participant.user,- classes: "op-principal_flex",- hover_card: { active: true, target: :custom }- ))+ render(+ Users::AvatarComponent.new(+ user: participant.user,+ classes: "op-principal_flex",+ hover_card: { active: true, target: :custom }+ )+ )endexisting_participant.with_column(style: "width: 90px;", text_align: :center) dostyled_check_box_tag "meeting[participants_attributes][][invited]",@@ -88,11 +91,13 @@elseflex_layout(align_items: :center) do |new_participant|new_participant.with_column(flex: 1, classes: "ellipsis") do- render(Users::AvatarComponent.new(- user:,- classes: "op-principal_flex",- hover_card: { active: true, target: :custom }- ))+ render(+ Users::AvatarComponent.new(+ user:,+ classes: "op-principal_flex",+ hover_card: { active: true, target: :custom }+ )+ )endnew_participant.with_column(style: "width: 90px;", text_align: :center) do@@ -133,11 +138,14 @@footer.with_component(Primer::ButtonComponent.new(data: { 'close-dialog-id': "edit-participants-dialog" })) dot("button_cancel")end- footer.with_component(Primer::ButtonComponent.new(- scheme: :primary,- form: "edit_participants_form",- data: { turbo: true },- type: :submit)) do+ footer.with_component(+ Primer::ButtonComponent.new(+ scheme: :primary,+ form: "edit_participants_form",+ data: { turbo: true },+ type: :submit+ )+ ) dot("button_save")endenddiff --git a/modules/meeting/app/components/meetings/side_panel_component.html.erb b/modules/meeting/app/components/meetings/side_panel_component.html.erbindex 11cabc8cbe5..3de36541276 100644--- a/modules/meeting/app/components/meetings/side_panel_component.html.erb+++ b/modules/meeting/app/components/meetings/side_panel_component.html.erb@@ -8,11 +8,15 @@desktop_grid_row_arguments = { display: [:none, nil, :"table_cell"] }- panel.with_section(Meetings::SidePanel::ParticipantsComponent.new(meeting: @meeting),- grid_row_arguments: desktop_grid_row_arguments.merge({classes: "meetings-side-panel--participants-section"}))+ panel.with_section(+ Meetings::SidePanel::ParticipantsComponent.new(meeting: @meeting),+ grid_row_arguments: desktop_grid_row_arguments.merge({ classes: "meetings-side-panel--participants-section" })+ )- panel.with_section(Meetings::SidePanel::AttachmentsComponent.new(meeting: @meeting),- grid_row_arguments: desktop_grid_row_arguments)+ panel.with_section(+ Meetings::SidePanel::AttachmentsComponent.new(meeting: @meeting),+ grid_row_arguments: desktop_grid_row_arguments+ )endend%>diff --git a/modules/meeting/app/components/recurring_meetings/delete_dialog_component.html.erb b/modules/meeting/app/components/recurring_meetings/delete_dialog_component.html.erbindex f8c54d9a01e..3fe5ea06d09 100644--- a/modules/meeting/app/components/recurring_meetings/delete_dialog_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/delete_dialog_component.html.erb@@ -28,15 +28,17 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id:,- title:,- form_arguments: {- action: polymorphic_path([@project, @recurring_meeting]),- method: :delete,- data: { turbo: true }- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id:,+ title:,+ form_arguments: {+ action: polymorphic_path([@project, @recurring_meeting]),+ method: :delete,+ data: { turbo: true }+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { I18n.t("recurring_meeting.delete_dialog.heading") }message.with_description_content(confirmation_message)diff --git a/modules/meeting/app/components/recurring_meetings/delete_scheduled_dialog_component.html.erb b/modules/meeting/app/components/recurring_meetings/delete_scheduled_dialog_component.html.erbindex f816c1e0065..c4c5ddb92f8 100644--- a/modules/meeting/app/components/recurring_meetings/delete_scheduled_dialog_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/delete_scheduled_dialog_component.html.erb@@ -28,20 +28,22 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id:,- title:,- confirm_button_text:,- cancel_button_text:,- form_arguments: {- action: polymorphic_path(- [:destroy_scheduled, @project, @scheduled_meeting.recurring_meeting],- start_time: @scheduled_meeting.start_time.iso8601- ),- method: :delete,- data: { turbo: true }- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id:,+ title:,+ confirm_button_text:,+ cancel_button_text:,+ form_arguments: {+ action: polymorphic_path(+ [:destroy_scheduled, @project, @scheduled_meeting.recurring_meeting],+ start_time: @scheduled_meeting.start_time.iso8601+ ),+ method: :delete,+ data: { turbo: true }+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { I18n.t("recurring_meeting.scheduled_delete_dialog.heading") }message.with_description_content(confirmation_message)diff --git a/modules/meeting/app/components/recurring_meetings/end_series_dialog_component.html.erb b/modules/meeting/app/components/recurring_meetings/end_series_dialog_component.html.erbindex eb74fa1a283..c63155aad61 100644--- a/modules/meeting/app/components/recurring_meetings/end_series_dialog_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/end_series_dialog_component.html.erb@@ -28,19 +28,20 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id: "recurring-meetings-end-series-dialog",- confirm_button_text: I18n.t(:label_recurring_meeting_series_end_now),- title: I18n.t("recurring_meeting.end_series_dialog.title"),- form_arguments: {- action: end_series_recurring_meeting_path(@series),- method: :post- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id: "recurring-meetings-end-series-dialog",+ confirm_button_text: I18n.t(:label_recurring_meeting_series_end_now),+ title: I18n.t("recurring_meeting.end_series_dialog.title"),+ form_arguments: {+ action: end_series_recurring_meeting_path(@series),+ method: :post+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { I18n.t(:text_meeting_series_end_early_heading) }message.with_description_content(I18n.t(:text_meeting_series_end_early))-enddialog.with_confirmation_check_box_content(I18n.t("text_permanent_delete_confirmation_checkbox_label"))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.erbindex 9707f23f512..2bc3cd75c0d 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@@ -9,14 +9,15 @@header.with_breadcrumbs(breadcrumb_items)if render_create_button?- header.with_action_menu(menu_arguments: { anchor_align: :end },- button_arguments: { icon: "op-kebab-vertical",- classes: "hide-when-print",- "aria-label": "Menu",- data: {- "test-selector": "recurring-meeting-action-menu"- } }) do |menu, _button|-+ header.with_action_menu(+ menu_arguments: { anchor_align: :end },+ button_arguments: { icon: "op-kebab-vertical",+ classes: "hide-when-print",+ "aria-label": "Menu",+ data: {+ "test-selector": "recurring-meeting-action-menu"+ } }+ ) do |menu, _button|menu.with_item(label: I18n.t(:label_recurring_meeting_series_edit),icon: :gear,diff --git a/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb b/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erbindex 49d2e2e1541..1901874fb30 100644--- a/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb@@ -1,22 +1,30 @@-<%= render(Primer::OpenProject::SubHeader.new(data: {- controller: "filter--filters-form",- "application-target": "dynamic",- "filter--filters-form-output-format-value": "json",-})) do |subheader|- subheader.with_filter_component do- render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control|- control.with_item(tag: :a,- icon: :"arrow-right",- href: recurring_meeting_path(@meeting),- label: t(:label_upcoming_meetings_short),- title: t(:label_upcoming_meetings),- selected: @params[:direction] != "past")- control.with_item(tag: :a,- icon: :history,- href: recurring_meeting_path(@meeting, direction: :past),- label: t(:label_past_meetings_short),- title: t(:label_past_meetings),- selected: @params[:direction] == "past")- end- end-end %>+<%= render(+ Primer::OpenProject::SubHeader.new(+ data: {+ controller: "filter--filters-form",+ "application-target": "dynamic",+ "filter--filters-form-output-format-value": "json",+ }+ )+ ) do |subheader|+ subheader.with_filter_component do+ render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control|+ control.with_item(+ tag: :a,+ icon: :"arrow-right",+ href: recurring_meeting_path(@meeting),+ label: t(:label_upcoming_meetings_short),+ title: t(:label_upcoming_meetings),+ selected: @params[:direction] != "past"+ )+ control.with_item(+ tag: :a,+ icon: :history,+ href: recurring_meeting_path(@meeting, direction: :past),+ label: t(:label_past_meetings_short),+ title: t(:label_past_meetings),+ selected: @params[:direction] == "past"+ )+ end+ end+ end %>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.erbindex 432461034c4..86bfcb94e5d 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,28 +1,39 @@<%=- 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|+ 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|d.with_header(variant: :large)d.with_body do- render(WorkPackageMeetingsTab::AddWorkPackageToMeetingFormComponent.new(- work_package: @work_package,- meeting_agenda_item: @meeting_agenda_item- ))+ render(+ WorkPackageMeetingsTab::AddWorkPackageToMeetingFormComponent.new(+ work_package: @work_package,+ meeting_agenda_item: @meeting_agenda_item+ )+ )endd.with_footer docomponent_collection do |buttons|- buttons.with_component(Primer::ButtonComponent.new(- data: {- 'close-dialog-id': "add-work-package-to-meeting-dialog"- }- )) do+ buttons.with_component(+ Primer::ButtonComponent.new(+ data: {+ 'close-dialog-id': "add-work-package-to-meeting-dialog"+ }+ )+ ) dot("button_cancel")end- buttons.with_component(Primer::ButtonComponent.new(- scheme: :primary,- form: "add-work-package-to-meeting-form",- data: { turbo: true },- type: :submit)) do+ buttons.with_component(+ Primer::ButtonComponent.new(+ scheme: :primary,+ form: "add-work-package-to-meeting-form",+ data: { turbo: true },+ type: :submit+ )+ ) dot("button_save")endenddiff --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.erbindex a74a414d891..41d3f51233a 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@@ -6,12 +6,14 @@endif allowed_to_add_to_meeting?flex.with_column(ml: 3) do- render(Primer::Beta::Button.new(- tag: :a,- href: dialog_work_package_meeting_agenda_items_path(@work_package),- data: { controller: "async-dialog" },- test_selector: "op-add-work-package-to-meeting-dialog-trigger"- )) do |button|+ render(+ Primer::Beta::Button.new(+ tag: :a,+ href: dialog_work_package_meeting_agenda_items_path(@work_package),+ data: { controller: "async-dialog" },+ test_selector: "op-add-work-package-to-meeting-dialog-trigger"+ )+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("label_add_work_package_to_meeting_dialog_button")enddiff --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.erbindex b2059cb3f48..4d319694a9d 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@@ -7,25 +7,35 @@endflex.with_row(mt: 3) dorender(Primer::Alpha::TabNav.new(label: "label")) do |component|- component.with_tab(selected: @direction == :upcoming,- href: work_package_meetings_tab_index_path(@work_package,- direction: :upcoming)) do |tab|+ component.with_tab(+ selected: @direction == :upcoming,+ 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")end- component.with_tab(selected: @direction == :past,- href: work_package_meetings_tab_index_path(@work_package,- direction: :past)) do |tab|+ 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")endendendflex.with_row do- render(WorkPackageMeetingsTab::ListComponent.new(- agenda_items_grouped_by_meeting: @agenda_items_grouped_by_meeting,- direction: @direction- ))+ render(+ WorkPackageMeetingsTab::ListComponent.new(+ agenda_items_grouped_by_meeting: @agenda_items_grouped_by_meeting,+ direction: @direction+ )+ )endendenddiff --git a/modules/meeting/app/components/work_package_meetings_tab/list_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/list_component.html.erbindex bc2d8269fff..3f3ec54515b 100644--- a/modules/meeting/app/components/work_package_meetings_tab/list_component.html.erb+++ b/modules/meeting/app/components/work_package_meetings_tab/list_component.html.erb@@ -3,9 +3,11 @@flex_layout do |flex|@agenda_items_grouped_by_meeting.each do |meeting, meeting_agenda_items|flex.with_row(mt: 3) do- render(WorkPackageMeetingsTab::MeetingComponent.new(- meeting:, meeting_agenda_items:- ))+ render(+ WorkPackageMeetingsTab::MeetingComponent.new(+ meeting:, meeting_agenda_items:+ )+ )endendenddiff --git a/modules/meeting/app/components/work_package_meetings_tab/meeting_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/meeting_component.html.erbindex 71d360c0c47..8a456b9de6e 100644--- a/modules/meeting/app/components/work_package_meetings_tab/meeting_component.html.erb+++ b/modules/meeting/app/components/work_package_meetings_tab/meeting_component.html.erb@@ -1,11 +1,19 @@<%=- render(border_box_container(padding: :condensed,- test_selector: "op-meeting-container-#{@meeting.id}")) do |border_box|+ render(+ border_box_container(+ padding: :condensed,+ test_selector: "op-meeting-container-#{@meeting.id}"+ )+ ) do |border_box|border_box.with_header doflex_layout do |flex|flex.with_column(mr: 1) do- render(Primer::Beta::Link.new(href: meeting_path(@meeting), target: "_blank", font_size: :normal,- font_weight: :bold, scheme: :primary, underline: false)) do+ render(+ Primer::Beta::Link.new(+ href: meeting_path(@meeting), target: "_blank", font_size: :normal,+ font_weight: :bold, scheme: :primary, underline: false+ )+ ) do"#{@meeting.project.name}: #{@meeting.title}"endenddiff --git a/modules/meeting/app/views/meeting_contents/_show.html.erb b/modules/meeting/app/views/meeting_contents/_show.html.erbindex fcb6830a684..c698ef14886 100644--- a/modules/meeting/app/views/meeting_contents/_show.html.erb+++ b/modules/meeting/app/views/meeting_contents/_show.html.erb@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.<% if can_edit_meeting_content?(content, content_type) -%><div data-meeting-content-target="editor"hidden>- <%= render(:partial => "meeting_contents/form", :locals => {:content => content, :content_type => content_type}) %>+ <%= render(:partial => "meeting_contents/form", :locals => { :content => content, :content_type => content_type }) %></div><% end -%>@@ -63,9 +63,11 @@ See COPYRIGHT and LICENSE files for more details.<%# We cannot render attachments for journaled content %><% unless local_assigns[:journaled_version] %><% resource = ::API::V3::MeetingContents::MeetingContentRepresenter.new(content, current_user: current_user, embed_links: true) %>- <%= list_attachments(resource,- data: {- 'meeting-content-target': "attachments"- }) %>+ <%= list_attachments(+ resource,+ data: {+ 'meeting-content-target': "attachments"+ }+ ) %><% end %></div>diff --git a/modules/meeting/app/views/meeting_contents/diff.html.erb b/modules/meeting/app/views/meeting_contents/diff.html.erbindex d8231afa533..693e3d92b45 100644--- a/modules/meeting/app/views/meeting_contents/diff.html.erb+++ b/modules/meeting/app/views/meeting_contents/diff.html.erb@@ -32,7 +32,7 @@ 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 %>+ <%= 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 %>diff --git a/modules/meeting/app/views/meeting_contents/history.html.erb b/modules/meeting/app/views/meeting_contents/history.html.erbindex 4a1dcce8caa..59d4c1c4312 100644--- a/modules/meeting/app/views/meeting_contents/history.html.erb+++ b/modules/meeting/app/views/meeting_contents/history.html.erb@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.<h3><%= t(:label_history) %></h3>-<%= form_tag({:action => "diff"}, :method => :get) do %>+<%= form_tag({ :action => "diff" }, :method => :get) do %><div class="generic-table--container"data-application-target="dynamic"data-controller="journal-history">@@ -104,26 +104,30 @@ See COPYRIGHT and LICENSE files for more details.</td><td class="checkbox -short"><% if show_diff && (index < @content_versions.size-1) %>- <%= radio_button_tag("version_from",- content_version.version,- (index==0),- class: "meetings--checkbox-version-to",- data: {- 'journal-history-target': "fromVersion",- action: "journal-history#selectToVersion"- }) %>+ <%= radio_button_tag(+ "version_from",+ content_version.version,+ (index == 0),+ class: "meetings--checkbox-version-to",+ data: {+ '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",- content_version.version,- (index==1),- data: {- 'journal-history-target': "toVersion",- action: "journal-history#selectFromVersion"- }) %>+ <%= radio_button_tag(+ "version_to",+ content_version.version,+ (index == 1),+ data: {+ 'journal-history-target': "toVersion",+ action: "journal-history#selectFromVersion"+ }+ ) %><label class="hidden-for-sighted" for="checkbox-to-<%= index %>"><%= t(:description_compare_to) %> <%= index %></label><% end %></td>diff --git a/modules/meeting/app/views/meeting_mailer/rescheduled.text.erb b/modules/meeting/app/views/meeting_mailer/rescheduled.text.erbindex c02e3fd3eea..93810d371c3 100644--- a/modules/meeting/app/views/meeting_mailer/rescheduled.text.erb+++ b/modules/meeting/app/views/meeting_mailer/rescheduled.text.erb@@ -30,9 +30,11 @@ 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) %>+ title: @meeting.title+ ) %><%= 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 %>}diff --git a/modules/meeting/app/views/meetings/edit.html.erb b/modules/meeting/app/views/meetings/edit.html.erbindex 0f8eeba2724..ffed4c137c8 100644--- a/modules/meeting/app/views/meetings/edit.html.erb+++ b/modules/meeting/app/views/meetings/edit.html.erb@@ -30,9 +30,9 @@ See COPYRIGHT and LICENSE files for more details.<% html_title "#{t(:label_meeting_edit)}: #{@meeting.title}" %><%= toolbar title: "#{t(:label_meeting)} ##{@meeting.id}" %>-<%= labelled_tabular_form_for @meeting, :url => {:controller => "/meetings", :action => "update"}, :html => {:id => "meeting-form", :method => :put} do |f| -%>- <%= render :partial => "form", :locals => {:f => f} %>+<%= labelled_tabular_form_for @meeting, :url => { :controller => "/meetings", :action => "update" }, :html => { :id => "meeting-form", :method => :put } do |f| -%>+ <%= render :partial => "form", :locals => { :f => f } %><%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %><%= link_to t(:button_cancel), { :action => "show", :id => @meeting },- class: "button -with-icon icon-cancel" %>+ 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.erbindex bf9615c8337..3182f91b1c2 100644--- a/modules/meeting/app/views/meetings/history.html.erb+++ b/modules/meeting/app/views/meetings/history.html.erb@@ -1,8 +1,10 @@-<%= content_tag("turbo-frame",- id: "meetings-history-dialog-frame",- 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))- end-end %>+<%= content_tag(+ "turbo-frame",+ id: "meetings-history-dialog-frame",+ 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))+ end+ end %>diff --git a/modules/meeting/app/views/meetings/history.turbo_stream.erb b/modules/meeting/app/views/meetings/history.turbo_stream.erbindex d31e3db6a79..9d2499bf3c5 100644--- a/modules/meeting/app/views/meetings/history.turbo_stream.erb+++ b/modules/meeting/app/views/meetings/history.turbo_stream.erb@@ -1,8 +1,12 @@<%=turbo_stream.dialog do- render(Primer::Alpha::Dialog.new(title: t(:label_history),- size: :xlarge,- id: "meeting-history-dialog")) do |d|+ render(+ Primer::Alpha::Dialog.new(+ title: t(:label_history),+ size: :xlarge,+ id: "meeting-history-dialog"+ )+ ) do |d|d.with_header(variant: :large)d.with_body dorender(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.erbindex 15df478bbaa..80f352f0a9d 100644--- a/modules/meeting/app/views/meetings/menus/_menu.html.erb+++ b/modules/meeting/app/views/meetings/menus/_menu.html.erb@@ -2,7 +2,7 @@.permit(:filters, :sort).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",- data: { turbo: false },- loading: :lazy %>+ src: @project.present? ? menu_project_meetings_path(@project, **request_params) : meetings_menu_path(**request_params),+ 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.erbindex 6b1e2a95d3e..fd66e96b170 100644--- a/modules/meeting/app/views/meetings/new.html.erb+++ b/modules/meeting/app/views/meetings/new.html.erb@@ -40,12 +40,14 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { page_title }- header.with_breadcrumbs([@project.present? ?- { href: project_overview_path(@project.id), text: @project.name } :- { href: home_path, text: organization_name },- { href: @project.present? ? project_meetings_path(@project.id) : meetings_path,- text: I18n.t(:label_meeting_plural) },- breadcrumb_element.html_safe])+ header.with_breadcrumbs(+ [@project.present? ?+ { href: project_overview_path(@project.id), text: @project.name } :+ { href: home_path, text: organization_name },+ { href: @project.present? ? project_meetings_path(@project.id) : meetings_path,+ text: I18n.t(:label_meeting_plural) },+ breadcrumb_element.html_safe]+ )end%>diff --git a/modules/meeting/app/views/meetings/show.html.erb b/modules/meeting/app/views/meetings/show.html.erbindex f7dd4c43218..10ae4a4b827 100644--- a/modules/meeting/app/views/meetings/show.html.erb+++ b/modules/meeting/app/views/meetings/show.html.erb@@ -73,18 +73,22 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% if authorize_for(:meetings, :copy) %><li>- <%= link_to(t(:button_copy),- copy_meeting_path(@meeting),- class: "icon-context icon-copy") %>+ <%= link_to(+ t(:button_copy),+ copy_meeting_path(@meeting),+ 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",- method: :delete,- data: { confirm: t(:text_are_you_sure) }) %>+ <%= link_to(+ t(:button_delete),+ polymorphic_path([@project, @meeting]),+ class: "icon-context icon-delete",+ method: :delete,+ data: { confirm: t(:text_are_you_sure) }+ ) %></li><% end %></ul>diff --git a/modules/meeting/app/views/recurring_meetings/new.html.erb b/modules/meeting/app/views/recurring_meetings/new.html.erbindex ddb349196bd..ee48490b96c 100644--- a/modules/meeting/app/views/recurring_meetings/new.html.erb+++ b/modules/meeting/app/views/recurring_meetings/new.html.erb@@ -30,18 +30,21 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t(:label_recurring_meeting_new) }- header.with_breadcrumbs([@project.present? ?- { href: project_overview_path(@project.id), text: @project.name } :- { href: home_path, text: I18n.t(:label_home) },- { href: @project.present? ? project_recurring_meetings_path(@project.id) : recurring_meetings_path,- text: I18n.t(:label_meeting_plural) },- t(:label_recurring_meeting_new)])+ header.with_breadcrumbs(+ [@project.present? ?+ { href: project_overview_path(@project.id), text: @project.name } :+ { href: home_path, text: I18n.t(:label_home) },+ { href: @project.present? ? project_recurring_meetings_path(@project.id) : recurring_meetings_path,+ text: I18n.t(:label_meeting_plural) },+ t(:label_recurring_meeting_new)]+ )end%><%= primer_form_with(model: @recurring_meeting,- url: { :controller => "/recurring_meetings", :action => "create", :project_id => @project }) do |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 %>diff --git a/modules/meeting/app/views/recurring_meetings/show.html.erb b/modules/meeting/app/views/recurring_meetings/show.html.erbindex 40437599ef9..f69af0b8e81 100644--- a/modules/meeting/app/views/recurring_meetings/show.html.erb+++ b/modules/meeting/app/views/recurring_meetings/show.html.erb@@ -37,12 +37,12 @@ See COPYRIGHT and LICENSE files for more details.<% else -%><% if @direction == "past" -%><%= render RecurringMeetings::TableComponent.new(- rows: @meetings,- current_project: @project,- count: @count,- direction: @direction,- max_count: @max_count- ) %>+ rows: @meetings,+ current_project: @project,+ count: @count,+ direction: @direction,+ max_count: @max_count+ ) %><% else -%><%= render partial: "show_upcoming" %><% end -%>diff --git a/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.html.erbindex 677ed8c0b0f..34ed0e91d45 100644--- a/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.html.erb+++ b/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.html.erb@@ -28,12 +28,14 @@endflex.with_row(mt: 4) do- render(OpenIDConnect::Providers::SubmitOrCancelForm.new(- form,- provider:,- submit_button_options: { label: button_label },- cancel_button_options: { hidden: edit_mode }- ))+ render(+ OpenIDConnect::Providers::SubmitOrCancelForm.new(+ form,+ provider:,+ submit_button_options: { label: button_label },+ cancel_button_options: { hidden: edit_mode }+ )+ )endendenddiff --git a/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erbindex c1d86a4b6b5..cbc8da6cada 100644--- a/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb+++ b/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb@@ -27,7 +27,7 @@flex.with_row dorender(Primer::Beta::Text.new(tag: :p)) {- I18n.t("openid_connect.providers.section_texts.metadata_form_description")+ I18n.t("openid_connect.providers.section_texts.metadata_form_description")}end@@ -44,12 +44,15 @@endflex.with_row(mt: 4) do- render(OpenIDConnect::Providers::SubmitOrCancelForm.new(- form,- provider:,- submit_button_options: { label: button_label },- cancel_button_options: { hidden: edit_mode },- state: :metadata))+ render(+ OpenIDConnect::Providers::SubmitOrCancelForm.new(+ form,+ provider:,+ submit_button_options: { label: button_label },+ cancel_button_options: { hidden: edit_mode },+ state: :metadata+ )+ )endendenddiff --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.erbindex 50dc92de8ec..54edf864cc1 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,8 +1,10 @@<%=- grid_layout("op-saml-view-row",- tag: :div,- test_selector: "openid_connect_provider_#{@target_state}",- align_items: :center) do |grid|+ grid_layout(+ "op-saml-view-row",+ tag: :div,+ test_selector: "openid_connect_provider_#{@target_state}",+ align_items: :center+ ) do |grid|grid.with_area(:title, mr: 3) doconcat render(Primer::Beta::Text.new(font_weight: :bold)) { @heading }if @labeldiff --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.erbindex c7c738096da..bdd8d873b98 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@@ -8,253 +8,281 @@<% end %><%= render(border_box_container) do |component|- component.with_header(color: :muted) do- render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t(:label_basic_details) }- end+ component.with_header(color: :muted) do+ render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t(:label_basic_details) }+ end- case provider.oidc_provider- when "google"- component.with_row(scheme: :default) do- basic_details_component = if edit_state == :name- OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::NameInputForm,- edit_state:,- next_edit_state: :client_details,- edit_mode:,- heading: nil,- fetch_metadata: true- )- else- OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- view_mode:,- target_state: :name,- heading: t("activemodel.attributes.openid_connect/provider.display_name"),- description: t("openid_connect.providers.section_texts.display_name")- )- end- render(basic_details_component)- end+ case provider.oidc_provider+ when "google"+ component.with_row(scheme: :default) do+ basic_details_component = if edit_state == :name+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::NameInputForm,+ edit_state:,+ next_edit_state: :client_details,+ edit_mode:,+ heading: nil,+ fetch_metadata: true+ )+ else+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ view_mode:,+ target_state: :name,+ heading: t("activemodel.attributes.openid_connect/provider.display_name"),+ description: t("openid_connect.providers.section_texts.display_name")+ )+ end+ render(basic_details_component)+ end- component.with_row(scheme: :default) do- if edit_state == :client_details- render(OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::ClientDetailsForm,- edit_state:,- edit_mode:,- heading: nil,- fetch_metadata: true- ))- else- render(OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- target_state: :client_details,- view_mode:,- heading: t("openid_connect.providers.label_client_details"),- label: provider.advanced_details_configured? ? t(:label_completed) : t(:label_not_configured),- label_scheme: provider.advanced_details_configured? ? :success : :secondary,- description: t("openid_connect.providers.client_details_description")- ))- end- end- when "microsoft_entra"- component.with_row(scheme: :default) do- basic_details_component = if edit_state == :name- OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::NameInputAndTenantForm,- edit_state:,- next_edit_state: :client_details,- edit_mode:,- heading: nil,- fetch_metadata: true- )- else- OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- view_mode:,- target_state: :name,- heading: t("activemodel.attributes.openid_connect/provider.display_name"),- description: t("openid_connect.providers.section_texts.display_name")- )- end- render(basic_details_component)- end+ component.with_row(scheme: :default) do+ if edit_state == :client_details+ render(+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::ClientDetailsForm,+ edit_state:,+ edit_mode:,+ heading: nil,+ fetch_metadata: true+ )+ )+ else+ render(+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :client_details,+ view_mode:,+ heading: t("openid_connect.providers.label_client_details"),+ label: provider.advanced_details_configured? ? t(:label_completed) : t(:label_not_configured),+ label_scheme: provider.advanced_details_configured? ? :success : :secondary,+ description: t("openid_connect.providers.client_details_description")+ )+ )+ end+ end+ when "microsoft_entra"+ component.with_row(scheme: :default) do+ basic_details_component = if edit_state == :name+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::NameInputAndTenantForm,+ edit_state:,+ next_edit_state: :client_details,+ edit_mode:,+ heading: nil,+ fetch_metadata: true+ )+ else+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ view_mode:,+ target_state: :name,+ heading: t("activemodel.attributes.openid_connect/provider.display_name"),+ description: t("openid_connect.providers.section_texts.display_name")+ )+ end+ render(basic_details_component)+ end- component.with_row(scheme: :default) do- if edit_state == :client_details- render(OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::ClientDetailsForm,- edit_state:,- edit_mode:,- heading: nil,- fetch_metadata: true- ))- else- render(OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- target_state: :client_details,- view_mode:,- heading: t("openid_connect.providers.label_client_details"),- label: provider.advanced_details_configured? ? t(:label_completed) : t(:label_not_configured),- label_scheme: provider.advanced_details_configured? ? :success : :secondary,- description: t("openid_connect.providers.client_details_description")- ))- end- end- else # custom- component.with_row(scheme: :default) do- basic_details_component =- if edit_state == :name- OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::NameInputForm,- edit_state:,- next_edit_state: :metadata,- edit_mode:,- heading: nil- )- else- OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- view_mode:,- target_state: :name,- heading: t("activemodel.attributes.openid_connect/provider.display_name"),- description: t("openid_connect.providers.section_texts.display_name")- )+ component.with_row(scheme: :default) do+ if edit_state == :client_details+ render(+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::ClientDetailsForm,+ edit_state:,+ edit_mode:,+ heading: nil,+ fetch_metadata: true+ )+ )+ else+ render(+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :client_details,+ view_mode:,+ heading: t("openid_connect.providers.label_client_details"),+ label: provider.advanced_details_configured? ? t(:label_completed) : t(:label_not_configured),+ label_scheme: provider.advanced_details_configured? ? :success : :secondary,+ description: t("openid_connect.providers.client_details_description")+ )+ )+ end+ end+ else # custom+ component.with_row(scheme: :default) do+ basic_details_component =+ if edit_state == :name+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::NameInputForm,+ edit_state:,+ next_edit_state: :metadata,+ edit_mode:,+ heading: nil+ )+ else+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ view_mode:,+ target_state: :name,+ heading: t("activemodel.attributes.openid_connect/provider.display_name"),+ description: t("openid_connect.providers.section_texts.display_name")+ )+ end+ render(basic_details_component)end- render(basic_details_component)- 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") }- 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") }+ end- component.with_row(scheme: :default) do- if edit_state == :metadata- render(OpenIDConnect::Providers::Sections::MetadataFormComponent.new(- provider,- form_class: nil,- heading: nil,- edit_state:,- edit_mode:,- next_edit_state: :metadata_details,- fetch_metadata: true- ))- else- render(OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- target_state: :metadata,- view_mode:,- heading: t("openid_connect.providers.label_metadata"),- description: t("openid_connect.providers.section_texts.metadata"),- label: provider.metadata_url.present? ? t(:label_completed) : t(:label_not_configured),- label_scheme: provider.metadata_url.present? ? :success : :secondary- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :metadata+ render(+ OpenIDConnect::Providers::Sections::MetadataFormComponent.new(+ provider,+ form_class: nil,+ heading: nil,+ edit_state:,+ edit_mode:,+ next_edit_state: :metadata_details,+ fetch_metadata: true+ )+ )+ else+ render(+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :metadata,+ view_mode:,+ heading: t("openid_connect.providers.label_metadata"),+ description: t("openid_connect.providers.section_texts.metadata"),+ label: provider.metadata_url.present? ? t(:label_completed) : t(:label_not_configured),+ label_scheme: provider.metadata_url.present? ? :success : :secondary+ )+ )+ end+ 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") }- 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") }+ end- component.with_row(scheme: :default) do- if edit_state == :metadata_details- render(OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::MetadataDetailsForm,- edit_state:,- next_edit_state: :client_details,- edit_mode:,- banner: provider.metadata_url.present? ? t("openid_connect.providers.section_texts.configuration_metadata") : nil,- banner_scheme: :default,- heading: nil- ))- else- render(OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- target_state: :metadata_details,- view_mode:,- heading: t("openid_connect.providers.label_configuration_details"),- description: t("openid_connect.providers.section_texts.configuration"),- label: provider.metadata_configured? ? t(:label_completed) : t(:label_not_configured),- label_scheme: provider.metadata_configured? ? :success : :secondary- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :metadata_details+ render(+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::MetadataDetailsForm,+ edit_state:,+ next_edit_state: :client_details,+ edit_mode:,+ banner: provider.metadata_url.present? ? t("openid_connect.providers.section_texts.configuration_metadata") : nil,+ banner_scheme: :default,+ heading: nil+ )+ )+ else+ render(+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :metadata_details,+ view_mode:,+ heading: t("openid_connect.providers.label_configuration_details"),+ description: t("openid_connect.providers.section_texts.configuration"),+ label: provider.metadata_configured? ? t(:label_completed) : t(:label_not_configured),+ label_scheme: provider.metadata_configured? ? :success : :secondary+ )+ )+ end+ end- component.with_row(scheme: :default) do- if edit_state == :client_details- render(OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::ClientDetailsForm,- edit_state:,- next_edit_state: :attribute_mapping,- edit_mode:,- heading: nil- ))- else- render(OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- target_state: :client_details,- view_mode:,- heading: t("openid_connect.providers.label_client_details"),- description: t("openid_connect.providers.client_details_description"),- label: provider.advanced_details_configured? ? t(:label_completed) : t(:label_not_configured),- label_scheme: provider.advanced_details_configured? ? :success : :secondary- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :client_details+ render(+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::ClientDetailsForm,+ edit_state:,+ next_edit_state: :attribute_mapping,+ edit_mode:,+ heading: nil+ )+ )+ else+ render(+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :client_details,+ view_mode:,+ heading: t("openid_connect.providers.label_client_details"),+ description: t("openid_connect.providers.client_details_description"),+ label: provider.advanced_details_configured? ? t(:label_completed) : t(:label_not_configured),+ label_scheme: provider.advanced_details_configured? ? :success : :secondary+ )+ )+ end+ 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") }- 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") }+ end- component.with_row(scheme: :default) do- if edit_state == :attribute_mapping- render(OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::AttributeMappingForm,- edit_state:,- next_edit_state: :claims,- edit_mode:,- heading: nil- ))- else- render(OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- target_state: :attribute_mapping,- view_mode:,- heading: t("openid_connect.providers.label_attribute_mapping"),- description: t("openid_connect.providers.section_texts.attribute_mapping"),- label: provider.mapping_configured? ? t(:label_completed) : nil,- label_scheme: provider.mapping_configured? ? :success : :secondary- ))- end- end+ component.with_row(scheme: :default) do+ if edit_state == :attribute_mapping+ render(+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::AttributeMappingForm,+ edit_state:,+ next_edit_state: :claims,+ edit_mode:,+ heading: nil+ )+ )+ else+ render(+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :attribute_mapping,+ view_mode:,+ heading: t("openid_connect.providers.label_attribute_mapping"),+ description: t("openid_connect.providers.section_texts.attribute_mapping"),+ label: provider.mapping_configured? ? t(:label_completed) : nil,+ label_scheme: provider.mapping_configured? ? :success : :secondary+ )+ )+ end+ end- component.with_row(scheme: :default) do- if edit_state == :claims- render(OpenIDConnect::Providers::Sections::FormComponent.new(- provider,- form_class: OpenIDConnect::Providers::ClaimsForm,- edit_state:,- edit_mode:,- heading: nil- ))- else- render(OpenIDConnect::Providers::Sections::ShowComponent.new(- provider,- target_state: :claims,- view_mode:,- heading: t("activemodel.attributes.openid_connect/provider.claims"),- description: t("openid_connect.providers.section_texts.claims")- ))+ component.with_row(scheme: :default) do+ if edit_state == :claims+ render(+ OpenIDConnect::Providers::Sections::FormComponent.new(+ provider,+ form_class: OpenIDConnect::Providers::ClaimsForm,+ edit_state:,+ edit_mode:,+ heading: nil+ )+ )+ else+ render(+ OpenIDConnect::Providers::Sections::ShowComponent.new(+ provider,+ target_state: :claims,+ view_mode:,+ heading: t("activemodel.attributes.openid_connect/provider.claims"),+ description: t("openid_connect.providers.section_texts.claims")+ )+ )+ end+ endend- end- end- end %>+ end %><% end %>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.erbindex e1f62c47631..62ebfb97c29 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@@ -26,9 +26,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See COPYRIGHT and LICENSE files for more details.++#%>-<%= styled_form_tag(openid_connect_provider_path(@provider),- class: "danger-zone",- method: :delete) do %>+<%= styled_form_tag(+ openid_connect_provider_path(@provider),+ class: "danger-zone",+ method: :delete+ ) do %><section class="form--section"><h3 class="form--section-title"><%= t("openid_connect.delete_title") %>@@ -53,9 +55,9 @@ See COPYRIGHT and LICENSE files for more details.<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"- end %>+ 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 %>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.erbindex 9c52688df22..7df3ff9778c 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@@ -6,10 +6,12 @@<%=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: admin_settings_authentication_path, text: t(:label_authentication) },- { href: openid_connect_providers_path, text: t("openid_connect.providers.plural") },- @provider.display_name])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: openid_connect_providers_path, text: t("openid_connect.providers.plural") },+ @provider.display_name]+ )header.with_action_button(tag: :a,scheme: :danger,@@ -29,10 +31,14 @@<%=render(Primer::Alpha::Layout.new(stacking_breakpoint: :md)) do |content|content.with_main do- render(OpenIDConnect::Providers::ViewComponent.new(@provider,- view_mode: :edit,- edit_mode: @edit_mode,- edit_state: @edit_state))+ render(+ OpenIDConnect::Providers::ViewComponent.new(+ @provider,+ view_mode: :edit,+ edit_mode: @edit_mode,+ edit_state: @edit_state+ )+ )endif @provider.persisted?diff --git a/modules/openid_connect/app/views/openid_connect/providers/index.html.erb b/modules/openid_connect/app/views/openid_connect/providers/index.html.erbindex 69ee277667d..070ad1d39f2 100644--- a/modules/openid_connect/app/views/openid_connect/providers/index.html.erb+++ b/modules/openid_connect/app/views/openid_connect/providers/index.html.erb@@ -3,17 +3,21 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("openid_connect.providers.plural") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- t("openid_connect.providers.plural")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ t("openid_connect.providers.plural")]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|subheader.with_action_component do- render(Primer::Alpha::ActionMenu.new(- anchor_align: :end)+ render(+ Primer::Alpha::ActionMenu.new(+ anchor_align: :end+ )) do |menu|menu.with_show_button(scheme: :primary,diff --git a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb b/modules/openid_connect/app/views/openid_connect/providers/new.html.erbindex e88aa00be8f..c00fdc39a40 100644--- a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb+++ b/modules/openid_connect/app/views/openid_connect/providers/new.html.erb@@ -3,10 +3,12 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("openid_connect.providers.label_add_new") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- { href: openid_connect_providers_path, text: t("openid_connect.providers.plural") },- t("openid_connect.providers.label_add_new")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: openid_connect_providers_path, text: t("openid_connect.providers.plural") },+ t("openid_connect.providers.label_add_new")]+ )end%>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.erbindex 8e0ff0b9f95..8fecba61ba7 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@@ -5,10 +5,12 @@<%=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: admin_settings_authentication_path, text: t(:label_authentication) },- { href: openid_connect_providers_path, text: t("openid_connect.providers.plural") },- @provider.display_name])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ { href: openid_connect_providers_path, text: t("openid_connect.providers.plural") },+ @provider.display_name]+ )header.with_action_button(tag: :a,scheme: :danger,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.erbindex cbf93055085..6b6063a75b6 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@@ -2,8 +2,8 @@<%= 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/overviews/app/components/project_custom_fields/sections/edit_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/edit_component.html.erbindex e1959f29b6e..77ab71fa256 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@@ -8,12 +8,14 @@data: { turbo: true, turbo_stream: true, "test-selector": "async-dialog-content" },url: update_project_custom_values_path(project_id: @project.id, section_id: @project_custom_field_section.id),) do |f|- render(Projects::CustomFields::Form.new(- f,- project: @project,- custom_field_section: @project_custom_field_section,- wrapper_id: "#edit-project-custom-fields-dialog-#{@project_custom_field_section.id}"- ))+ render(+ Projects::CustomFields::Form.new(+ f,+ project: @project,+ custom_field_section: @project_custom_field_section,+ wrapper_id: "#edit-project-custom-fields-dialog-#{@project_custom_field_section.id}"+ )+ )endend%>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.erbindex e57793165e6..d30c5fd5c3b 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@@ -1,29 +1,37 @@<%=- render(Primer::Alpha::Dialog.new(title: @project_custom_field_section.name,- size: :medium_portrait,- id: "edit-project-custom-fields-dialog-#{@project_custom_field_section.id}")) do |d|+ render(+ Primer::Alpha::Dialog.new(+ title: @project_custom_field_section.name,+ size: :medium_portrait,+ id: "edit-project-custom-fields-dialog-#{@project_custom_field_section.id}"+ )+ ) do |d|d.with_header(variant: :large)d.with_body(classes: "Overlay-body_autocomplete_height") dorender(::ProjectCustomFields::Sections::EditComponent.new(project_custom_field_section: @project_custom_field_section, project: @project))endd.with_footer docomponent_collection do |footer_collection|- footer_collection.with_component(Primer::ButtonComponent.new(- data: {- 'close-dialog-id': "edit-project-custom-fields-dialog-#{@project_custom_field_section.id}"- }- )) do+ footer_collection.with_component(+ Primer::ButtonComponent.new(+ data: {+ 'close-dialog-id': "edit-project-custom-fields-dialog-#{@project_custom_field_section.id}"+ }+ )+ ) dot("button_cancel")end- footer_collection.with_component(Primer::ButtonComponent.new(- scheme: :primary,- type: :submit,- form: "project-section-edit-form",- data: {- test_selector: "save-project-attributes-button",- turbo: true- }- )) do+ footer_collection.with_component(+ Primer::ButtonComponent.new(+ scheme: :primary,+ type: :submit,+ form: "project-section-edit-form",+ data: {+ test_selector: "save-project-attributes-button",+ turbo: true+ }+ )+ ) dot("button_save")endenddiff --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.erbindex 59b777daa5b..d56fbe3630a 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,20 +1,24 @@<%=- flex_layout(align_items: :flex_start,- justify_content: :space_between,- classes: "op-project-custom-field-container",- data: {- test_selector: "project-custom-field-#{@project_custom_field.id}"- }) do |custom_field_value_container|+ flex_layout(+ align_items: :flex_start,+ justify_content: :space_between,+ classes: "op-project-custom-field-container",+ data: {+ test_selector: "project-custom-field-#{@project_custom_field.id}"+ }+ ) do |custom_field_value_container|# temporarily using inline styles in order to align the content as desiredcustom_field_value_container.with_row(mb: 1) dorender(Primer::Beta::Text.new(font_weight: :bold)) doconcat(@project_custom_field.name + " ")concat(- helpers.angular_component_tag("opce-attribute-help-text",- inputs: {- attribute: @project_custom_field.attribute_name(:camel_case),- attributeScope: "Project"- })+ helpers.angular_component_tag(+ "opce-attribute-help-text",+ inputs: {+ attribute: @project_custom_field.attribute_name(:camel_case),+ attributeScope: "Project"+ }+ ))endenddiff --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.erbindex c525f306954..db29d31d191 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,9 +1,11 @@<%=component_wrapper do- render(Primer::OpenProject::SidePanel::Section.new(- classes: "op-project-custom-field-section-container",- test_selector: "project-custom-field-section-#{@project_custom_field_section.id}"- )) do |section|+ render(+ Primer::OpenProject::SidePanel::Section.new(+ 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 }if allowed_to_edit?@@ -21,12 +23,14 @@flex_layout do |details_container|@project_custom_fields.each_with_index do |project_custom_field, i|- margin = i == @project_custom_fields.size - 1 ? 0 : 3+ margin = i == @project_custom_fields.size - 1 ? 0 : 3details_container.with_row(mb: margin) do- render(ProjectCustomFields::Sections::ProjectCustomFields::ShowComponent.new(- project_custom_field:,- project_custom_field_values: get_eager_loaded_project_custom_field_values_for(project_custom_field.id)- ))+ render(+ ProjectCustomFields::Sections::ProjectCustomFields::ShowComponent.new(+ project_custom_field:,+ project_custom_field_values: get_eager_loaded_project_custom_field_values_for(project_custom_field.id)+ )+ )endendenddiff --git a/modules/overviews/app/components/project_custom_fields/side_panel_component.html.erb b/modules/overviews/app/components/project_custom_fields/side_panel_component.html.erbindex 8034ae1d826..b6aa482acd6 100644--- a/modules/overviews/app/components/project_custom_fields/side_panel_component.html.erb+++ b/modules/overviews/app/components/project_custom_fields/side_panel_component.html.erb@@ -1,10 +1,12 @@<%=component_wrapper doif available_project_custom_fields_grouped_by_section.any?- render(Primer::OpenProject::SidePanel.new(- spacious: true,- test_selector: "project-custom-fields-sidebar-async-content"- )) do |panel|+ render(+ Primer::OpenProject::SidePanel.new(+ spacious: true,+ test_selector: "project-custom-fields-sidebar-async-content"+ )+ ) do |panel|available_project_custom_fields_grouped_by_section.each do |project_custom_field_section, project_custom_fields|panel.with_section(ProjectCustomFields::Sections::ShowComponent.new(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.erbindex 3da9d470496..1a027271f46 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@@ -1,29 +1,37 @@<%=- render(Primer::Alpha::Dialog.new(title: t("label_life_cycle_step_plural"),- size: :medium_portrait,- id: DIALOG_ID)) do |d|+ render(+ Primer::Alpha::Dialog.new(+ title: t("label_life_cycle_step_plural"),+ size: :medium_portrait,+ id: DIALOG_ID+ )+ ) do |d|d.with_header(variant: :large)d.with_body dorender(::ProjectLifeCycles::Sections::EditComponent.new(model))endd.with_footer docomponent_collection do |footer_collection|- footer_collection.with_component(Primer::ButtonComponent.new(- data: {- "close-dialog-id": DIALOG_ID- }- )) do+ footer_collection.with_component(+ Primer::ButtonComponent.new(+ data: {+ "close-dialog-id": DIALOG_ID+ }+ )+ ) dot("button_cancel")end- footer_collection.with_component(Primer::ButtonComponent.new(- scheme: :primary,- type: :submit,- form: "project-life-cycles-edit-form",- data: {- test_selector: "save-project-life-cycles-button",- turbo: true- }- )) do+ footer_collection.with_component(+ Primer::ButtonComponent.new(+ scheme: :primary,+ type: :submit,+ form: "project-life-cycles-edit-form",+ data: {+ test_selector: "save-project-life-cycles-button",+ turbo: true+ }+ )+ ) dot("button_save")endenddiff --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.erbindex 55fc0e5b90f..1ce3cc8b74e 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,11 +1,13 @@<%=- flex_layout(align_items: :flex_start,- justify_content: :space_between,- classes: "op-project-life-cycle-container",- data: {- test_selector: "project-life-cycle-#{model.id}"- }) do |life_cycle_container|- life_cycle_container.with_row(mb: 1, flex_layout: true, ) do |row|+ flex_layout(+ align_items: :flex_start,+ justify_content: :space_between,+ classes: "op-project-life-cycle-container",+ data: {+ test_selector: "project-life-cycle-#{model.id}"+ }+ ) do |life_cycle_container|+ life_cycle_container.with_row(mb: 1, flex_layout: true,) do |row|row.with_column(mr: 1, classes: icon_color_class) dorender Primer::Beta::Octicon.new(icon:)enddiff --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.erbindex 486d62e049c..4823da14107 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,9 +1,11 @@<%=component_wrapper do- render(Primer::OpenProject::SidePanel::Section.new(- classes: "op-project-life-cyle-section-container",- test_selector: "project-life-cycle-section"- )) do |section|+ render(+ Primer::OpenProject::SidePanel::Section.new(+ classes: "op-project-life-cyle-section-container",+ test_selector: "project-life-cycle-section"+ )+ ) do |section|section.with_title { t("label_life_cycle_step_plural") }if allowed_to_edit?@@ -23,9 +25,11 @@@life_cycle_steps.each_with_index do |life_cycle_step, i|margin = i == @life_cycle_steps.size - 1 ? 0 : 3details_container.with_row(mb: margin) do- render(ProjectLifeCycles::Sections::ProjectLifeCycles::ShowComponent.new(- life_cycle_step- ))+ render(+ ProjectLifeCycles::Sections::ProjectLifeCycles::ShowComponent.new(+ life_cycle_step+ )+ )endendenddiff --git a/modules/overviews/app/components/project_life_cycles/side_panel_component.html.erb b/modules/overviews/app/components/project_life_cycles/side_panel_component.html.erbindex 763a30ed12c..230767e0bc9 100644--- a/modules/overviews/app/components/project_life_cycles/side_panel_component.html.erb+++ b/modules/overviews/app/components/project_life_cycles/side_panel_component.html.erb@@ -1,9 +1,11 @@<%=component_wrapper do- render(Primer::OpenProject::SidePanel.new(- spacious: true,- test_selector: "project-life-cycles-sidebar-async-content"- )) do |panel|+ render(+ Primer::OpenProject::SidePanel.new(+ spacious: true,+ test_selector: "project-life-cycles-sidebar-async-content"+ )+ ) do |panel|panel.with_section(ProjectLifeCycles::Sections::ShowComponent.new(project: @project))endenddiff --git a/modules/overviews/app/views/overviews/overviews/show.html.erb b/modules/overviews/app/views/overviews/overviews/show.html.erbindex ed31d0a7489..37a44d151d4 100644--- a/modules/overviews/app/views/overviews/overviews/show.html.erb+++ b/modules/overviews/app/views/overviews/overviews/show.html.erb@@ -26,9 +26,10 @@test_selector: "project-favorite-button")- header.with_action_menu(menu_arguments: { anchor_align: :end },- button_arguments: { icon: "op-kebab-vertical", "aria-label": t(:label_menu) }) do |menu|-+ header.with_action_menu(+ menu_arguments: { anchor_align: :end },+ button_arguments: { icon: "op-kebab-vertical", "aria-label": t(:label_menu) }+ ) do |menu|if User.current.allowed_in_project?(:select_project_custom_fields, @project)menu.with_item(label: t(:label_project_attribute_manage_link),@@ -50,7 +51,6 @@item.with_leading_visual_icon(icon: :lock)endend-endend%>diff --git a/modules/recaptcha/app/views/recaptcha/admin/show.html.erb b/modules/recaptcha/app/views/recaptcha/admin/show.html.erbindex c8a96ce5a65..6b4bae905f8 100644--- a/modules/recaptcha/app/views/recaptcha/admin/show.html.erb+++ b/modules/recaptcha/app/views/recaptcha/admin/show.html.erb@@ -3,16 +3,20 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t("recaptcha.label_recaptcha") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- I18n.t("recaptcha.label_recaptcha")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ I18n.t("recaptcha.label_recaptcha")]+ )end%><section class="admin--edit-section">- <%= styled_form_tag({ action: :update },- method: :post,- id: "update-recaptcha-settings-form") do %>+ <%= styled_form_tag(+ { action: :update },+ method: :post,+ id: "update-recaptcha-settings-form"+ ) do %><fieldset class="form--fieldset"><legend class="form--fieldset-legend"><%= t(:label_setting_plural) %></legend><div class="form--field">@@ -23,10 +27,12 @@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">diff --git a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb b/modules/recaptcha/app/views/recaptcha/request/perform.html.erbindex 82a1680627f..dc74c499a8e 100644--- a/modules/recaptcha/app/views/recaptcha/request/perform.html.erb+++ b/modules/recaptcha/app/views/recaptcha/request/perform.html.erb@@ -7,10 +7,10 @@<% 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"],- ) %>+ nonce: content_security_policy_script_nonce,+ callback: "submitRecaptchaForm",+ site_key: recaptcha_settings["website_key"],+ ) %><%= nonced_javascript_tag do %>function submitRecaptchaForm(val) {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.erbindex cf363707658..5cbe4ac9740 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@@ -4,36 +4,38 @@header.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: :normal)if show_export_button?- header.with_action_button(scheme: :default,- aria: { label: t(:export_to_excel) },- title: t(:export_to_excel),- 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 }),- data: {- controller: "costs--export",- "application-target": "dynamic",- "costs--export-job-status-dialog-url-value": job_status_dialog_path("_job_uuid_"),- action: "click->costs--export#download"- }+ header.with_action_button(+ scheme: :default,+ aria: { label: t(:export_to_excel) },+ title: t(:export_to_excel),+ 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 }),+ data: {+ controller: "costs--export",+ "application-target": "dynamic",+ "costs--export-job-status-dialog-url-value": job_status_dialog_path("_job_uuid_"),+ action: "click->costs--export#download"+ }) do |button|button.with_leading_visual_icon(icon: "op-file-xls-descriptions")t(:export_to_excel)end- header.with_action_button(scheme: :default,- aria: { label: t("export.timesheet.button") },- title: t("export.timesheet.button"),- 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 }),- data: {- controller: "costs--export",- "application-target": "dynamic",- "costs--export-job-status-dialog-url-value": job_status_dialog_path("_job_uuid_"),- action: "click->costs--export#download"- }+ header.with_action_button(+ scheme: :default,+ aria: { label: t("export.timesheet.button") },+ title: t("export.timesheet.button"),+ 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 }),+ data: {+ controller: "costs--export",+ "application-target": "dynamic",+ "costs--export-job-status-dialog-url-value": job_status_dialog_path("_job_uuid_"),+ action: "click->costs--export#download"+ }) do |button|button.with_leading_visual_icon(icon: "op-file-xls-descriptions")t("export.timesheet.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.erbindex 25ea1e9af13..b120f10c23b 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,13 +1,17 @@<%=component_wrapper(tag: "turbo-frame") do- grid_layout("op-storage-view--row",- tag: :div,- test_selector: "storage-access-management-section",- align_items: :center) do |grid|+ grid_layout(+ "op-storage-view--row",+ tag: :div,+ 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")- end)+ 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))enddiff --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.erbindex 6976d189087..c76f2b752ab 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@@ -42,12 +42,14 @@ See COPYRIGHT and LICENSE files for more details.header.with_breadcrumbs(breadcrumbs_items)- header.with_action_button(scheme: :danger,- mobile_icon: :trash,- mobile_label: I18n.t("button_delete"),- type: :submit,- aria: { label: I18n.t("storages.label_delete_storage") },- test_selector: "storage-delete-button") do |button|+ header.with_action_button(+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: I18n.t("button_delete"),+ type: :submit,+ aria: { label: I18n.t("storages.label_delete_storage") },+ test_selector: "storage-delete-button"+ ) do |button|button.with_leading_visual_icon(icon: :trash)I18n.t("button_delete")enddiff --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.erbindex 22af82f0e4d..1c876cb7e2f 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@@ -27,9 +27,11 @@render(Storages::Admin::ManagedProjectFolders::AutomaticManagementCheckbox.new(form, storage:))end- project_folders_form.with_row(mb: 3,- data: { 'storages--automatically-managed-project-folders-form-target': "applicationPasswordInput" },- **application_password_display_options) do+ project_folders_form.with_row(+ mb: 3,+ data: { 'storages--automatically-managed-project-folders-form-target': "applicationPasswordInput" },+ **application_password_display_options+ ) dorender(Storages::Admin::ManagedProjectFolders::ApplicationPasswordInput.new(form, storage:))enddiff --git a/modules/storages/app/components/storages/admin/general_info_component.html.erb b/modules/storages/app/components/storages/admin/general_info_component.html.erbindex 3408b0ee493..c7a9b7d4193 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@@ -10,10 +10,12 @@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")- end)+ 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")+ end+ )endenddiff --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.erbindex 297646f0f6f..9fe72e45c1a 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@@ -6,11 +6,13 @@concat(configuration_check_label_for(:openproject_oauth_application_configured))end- grid.with_area(:description,- classes: "wb-break-word",- tag: :div,- color: :subtle,- test_selector: "storage-openproject-oauth-application-description") do+ grid.with_area(+ :description,+ classes: "wb-break-word",+ tag: :div,+ color: :subtle,+ test_selector: "storage-openproject-oauth-application-description"+ ) dorender(Primer::Beta::Text.new) { openproject_oauth_client_description }enddiff --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.erbindex d511e0c37f5..dd4f22a0162 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@@ -10,31 +10,37 @@credentials_row.with_row(mb: 3) dorender(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"),- visually_hide_label: false,- value: oauth_application.uid,- required: true)+ input_group.with_text_input(+ name: :openproject_oauth_application_uid,+ 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")- })+ }+ )endendcredentials_row.with_row(mb: 3) dorender(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"),- visually_hide_label: false,- value: oauth_application.plaintext_secret,- required: true)+ input_group.with_text_input(+ name: :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")- })+ }+ )endenddiff --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.erbindex 1510626b792..a68022e3f11 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@@ -10,11 +10,13 @@concat(configuration_check_label_for(:storage_oauth_client_configured))end- grid.with_area(:description,- classes: "wb-break-word",- tag: :div,- color: :subtle,- test_selector: "storage-oauth-client-id-description") do+ grid.with_area(+ :description,+ classes: "wb-break-word",+ tag: :div,+ color: :subtle,+ test_selector: "storage-oauth-client-id-description"+ ) dorender(Primer::Beta::Text.new) { provider_oauth_client_description }enddiff --git a/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erb b/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erbindex 80f225e1e7a..a9c03f50045 100644--- a/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erb+++ b/modules/storages/app/components/storages/admin/side_panel/health_notifications_component.html.erb@@ -34,20 +34,24 @@ See COPYRIGHT and LICENSE files for more details.flex_layout do |notifications_container|notifications_container.with_row(mt: 2) do- form_for(@storage, method: :patch,- url: change_health_notifications_enabled_admin_settings_storage_path(@storage),- data: { turbo_stream: true }) do |f|+ form_for(+ @storage, method: :patch,+ url: change_health_notifications_enabled_admin_settings_storage_path(@storage),+ data: { turbo_stream: true }+ ) do |f|flex_layout do |notification_status_actions|notification_status_actions.with_row dof.hidden_field :health_notifications_enabled, value: (@storage.health_notifications_should_be_sent? ? "0" : "1")endnotification_status_actions.with_row(test_selector: "storage-health-notifications-button") do- render(Primer::Beta::Button.new(- scheme: :default,- block: :true,- type: :submit- )) do |button|+ render(+ Primer::Beta::Button.new(+ scheme: :default,+ block: :true,+ type: :submit+ )+ ) do |button|button.with_leading_visual_icon(icon: notification_status[:icon])notification_status[:label]enddiff --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.erbindex ace680a0369..b459c0f27b3 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@@ -40,8 +40,10 @@)concat(render(- Primer::OpenProject::FeedbackMessage.new(icon_arguments: {icon: :"sign-in", color: :muted},- data: { "storages--oauth-access-grant-nudge-modal-target": "requestAccessBody" })+ Primer::OpenProject::FeedbackMessage.new(+ icon_arguments: { icon: :"sign-in", color: :muted },+ data: { "storages--oauth-access-grant-nudge-modal-target": "requestAccessBody" }+ )) do |component|component.with_heading(tag: :h2, aria: { hidden: true }) { heading_text }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.erbindex 7b8b6308986..150a51659c6 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@@ -36,53 +36,59 @@ See COPYRIGHT and LICENSE files for more details.data: { turbo: true },method:) do |form|- concat(render(Primer::Alpha::Dialog::Body.new(- id: dialog_body_id,- test_selector: dialog_body_id,- aria: { label: aria_label }- )) do- flex_layout do |flex|- flex.with_row do- angular_component_tag "opce-custom-modal-overlay"- end+ concat(+ render(+ Primer::Alpha::Dialog::Body.new(+ id: dialog_body_id,+ test_selector: dialog_body_id,+ aria: { label: aria_label }+ )+ ) do+ flex_layout do |flex|+ flex.with_row do+ angular_component_tag "opce-custom-modal-overlay"+ end- if new_record?- flex.with_row(mb: 3) do- render(Storages::Admin::Storages::AddProjectsAutocompleterForm.new(form, project_storage:))+ if new_record?+ flex.with_row(mb: 3) do+ render(Storages::Admin::Storages::AddProjectsAutocompleterForm.new(form, project_storage:))+ end++ flex.with_row(mb: 3) do+ render(Primer::Alpha::ActionList::Divider.new(scheme: :subtle))+ end++ flex.with_row(mb: 2) do+ render(Primer::Beta::Heading.new(tag: :h4)) { t(:"storages.label_project_folder") }+ endendflex.with_row(mb: 3) do- render(Primer::Alpha::ActionList::Divider.new(scheme: :subtle))+ render(Primer::Beta::Text.new) { help_text }end- flex.with_row(mb: 2) do- render(Primer::Beta::Heading.new(tag: :h4)) { t(:"storages.label_project_folder") }+ flex.with_row(+ data: {+ "application-target": "dynamic",+ controller: "storages--project-folder-mode-form",+ 'storages--project-folder-mode-form-folder-mode-value': @project_storage.project_folder_mode,+ 'storages--project-folder-mode-form-placeholder-folder-name-value': t(:"storages.label_no_selected_folder"),+ 'storages--project-folder-mode-form-not-logged-in-validation-value': t(:"storages.instructions.not_logged_into_storage"),+ 'storages--project-folder-mode-form-last-project-folders-value': @last_project_folders+ }+ ) do+ render(Storages::Admin::ProjectStorages::ProjectFolderModeForm.new(form, project_storage:))endend-- flex.with_row(mb: 3) do- render(Primer::Beta::Text.new) { help_text }- end-- flex.with_row(- data: {- "application-target": "dynamic",- controller: "storages--project-folder-mode-form",- 'storages--project-folder-mode-form-folder-mode-value': @project_storage.project_folder_mode,- 'storages--project-folder-mode-form-placeholder-folder-name-value': t(:"storages.label_no_selected_folder"),- 'storages--project-folder-mode-form-not-logged-in-validation-value': t(:"storages.instructions.not_logged_into_storage"),- 'storages--project-folder-mode-form-last-project-folders-value': @last_project_folders- }- ) do- render(Storages::Admin::ProjectStorages::ProjectFolderModeForm.new(form, project_storage:))- endend- end)+ )- concat(render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do- concat(render(Primer::ButtonComponent.new(data: { 'close-dialog-id': dialog_id })) { cancel_button_text })- concat(render(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) { submit_button_text })- end)+ concat(+ render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do+ concat(render(Primer::ButtonComponent.new(data: { 'close-dialog-id': dialog_id })) { cancel_button_text })+ concat(render(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) { submit_button_text })+ end+ )endend%>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.erbindex 1afa607c1bb..51001781bd3 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,8 +1,10 @@<%= render(- Primer::Alpha::Dialog.new(id: self.class.dialog_id,- title: "Open project folder modal",- data:)-) do |dialog| %>+ Primer::Alpha::Dialog.new(+ id: self.class.dialog_id,+ title: "Open project folder modal",+ data:+ )+ ) do |dialog| %><% dialog.with_header(display: :none) %><% dialog.with_body(id: self.class.dialog_body_id) do %><%= render(self.class::Body.new(@state)) %>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.erbindex ab617a00cff..c25e78c2ced 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 }- end %>+ 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 }- end %>+ component.with_heading(tag: :h2) { success_title }+ component.with_description(id: "waiting_subtitle") { success_subtitle }+ end %><% end %>diff --git a/modules/storages/app/components/storages/project_storages/destroy_confirmation_dialog_component.html.erb b/modules/storages/app/components/storages/project_storages/destroy_confirmation_dialog_component.html.erbindex 4acfff76650..fa76957ddc2 100644--- a/modules/storages/app/components/storages/project_storages/destroy_confirmation_dialog_component.html.erb+++ b/modules/storages/app/components/storages/project_storages/destroy_confirmation_dialog_component.html.erb@@ -28,21 +28,23 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id:,- title:,- test_selector: id,- size: :large,- form_arguments: {- model: @project_storage,- action: admin_settings_storage_project_storage_path(id: @project_storage, page: current_page),- data: {- turbo: true- },- method: :delete- },- confirm_button_text: I18n.t("button_remove")- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id:,+ title:,+ test_selector: id,+ size: :large,+ form_arguments: {+ model: @project_storage,+ action: admin_settings_storage_project_storage_path(id: @project_storage, page: current_page),+ data: {+ turbo: true+ },+ method: :delete+ },+ confirm_button_text: I18n.t("button_remove")+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { heading }message.with_description_content(text)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.erbindex f4d99e57f4e..3efdba47bc4 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@@ -26,9 +26,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See COPYRIGHT and LICENSE files for more details.++#%>-<%= styled_form_tag(admin_settings_storage_path(@storage_to_destroy),- class: "danger-zone",- method: :delete) do %>+<%= styled_form_tag(+ admin_settings_storage_path(@storage_to_destroy),+ class: "danger-zone",+ method: :delete+ ) do %><section class="form--section"><h3 class="form--section-title"><%= t("storages.page_titles.file_storages.delete") %>@@ -51,9 +53,9 @@ See COPYRIGHT and LICENSE files for more details.<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"- end %>+ 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 %>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.erbindex bcf4badc8a4..b38cf98e397 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@@ -35,12 +35,14 @@ See COPYRIGHT and LICENSE files for more details.if @storage.configured?render(Primer::OpenProject::SubHeader.new) do |component|component.with_action_component do- render(Primer::Beta::Button.new(- scheme: :primary,- tag: :a,- href: new_admin_settings_storage_project_storage_path(@storage),- data: { controller: "async-dialog" }- )) do |button|+ render(+ Primer::Beta::Button.new(+ scheme: :primary,+ tag: :a,+ href: new_admin_settings_storage_project_storage_path(@storage),+ data: { controller: "async-dialog" }+ )+ ) do |button|button.with_leading_visual_icon(icon: "op-include-projects")I18n.t(:label_add_projects)enddiff --git a/modules/storages/app/views/storages/admin/storages/upsale.html.erb b/modules/storages/app/views/storages/admin/storages/upsale.html.erbindex de54d19b2a5..6f3fcba3990 100644--- a/modules/storages/app/views/storages/admin/storages/upsale.html.erb+++ b/modules/storages/app/views/storages/admin/storages/upsale.html.erb@@ -2,8 +2,8 @@<%= 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.erbindex 269ba123995..05bbffe65f6 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@@ -41,19 +41,21 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field-container"><%= f.hidden_field :storage_id %><% storage = @project_storage.storage %>- <%= content_tag(:span,- storage.name,- data: {- 'project-storage-form-target': "storage",- storage: {- name: storage.name,- id: storage.id,- _links: {- self: { href: api_v3_paths.storage(storage.id) },- type: { href: API::V3::Storages::URN_STORAGE_TYPE_NEXTCLOUD }- }- },- }) %>+ <%= content_tag(+ :span,+ storage.name,+ data: {+ 'project-storage-form-target': "storage",+ storage: {+ name: storage.name,+ id: storage.id,+ _links: {+ self: { href: api_v3_paths.storage(storage.id) },+ type: { href: API::V3::Storages::URN_STORAGE_TYPE_NEXTCLOUD }+ }+ },+ }+ ) %></div></div>@@ -91,9 +93,9 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field-container"><%= f.label :project_folder_mode, value: "automatic", class: "form--label-with-radio-button" do %><%= f.radio_button :project_folder_mode,- "automatic",- no_label: true,- data: { action: "project-storage-form#updateForm" } %>+ "automatic",+ no_label: true,+ data: { action: "project-storage-form#updateForm" } %><%= t(:"storages.label_automatic_folder") %><% end %></div>diff --git a/modules/storages/app/views/storages/project_settings/attachments.html.erb b/modules/storages/app/views/storages/project_settings/attachments.html.erbindex bb8d05c05f6..ac297d0db94 100644--- a/modules/storages/app/views/storages/project_settings/attachments.html.erb+++ b/modules/storages/app/views/storages/project_settings/attachments.html.erb@@ -30,30 +30,34 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), t("project_module_storages") %><%= render(Primer::OpenProject::PageHeader.new(border_bottom: 0)) do |header|- header.with_title { t("project_module_storages") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: project_settings_general_path, text: t("label_project_settings") },- t("project_module_storages")])- header.with_action_button(tag: :a,- href: new_project_settings_project_storage_path,- scheme: :primary,- mobile_icon: :plus,- mobile_label: t(:'storages.label_storage'),- size: :medium,- aria: { label: t(:'storages.label_new_storage') },- title: t(:'storages.label_new_storage')) do |button|- button.with_leading_visual_icon(icon: :plus)- t(:'storages.label_storage')- end- header.with_tab_nav(label: nil) do |tab_nav|- tab_nav.with_tab(selected: false, href: external_file_storages_project_settings_project_storages_path) do |tab|- tab.with_text { t(:"external_file_storages") }- end- tab_nav.with_tab(selected: true, href: attachments_project_settings_project_storages_path) do |tab|- tab.with_text { t(:"attributes.attachments") }- end- end-end %>+ header.with_title { t("project_module_storages") }+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_settings_general_path, text: t("label_project_settings") },+ t("project_module_storages")]+ )+ header.with_action_button(+ tag: :a,+ href: new_project_settings_project_storage_path,+ scheme: :primary,+ mobile_icon: :plus,+ mobile_label: t(:'storages.label_storage'),+ size: :medium,+ aria: { label: t(:'storages.label_new_storage') },+ title: t(:'storages.label_new_storage')+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ t(:'storages.label_storage')+ end+ header.with_tab_nav(label: nil) do |tab_nav|+ tab_nav.with_tab(selected: false, href: external_file_storages_project_settings_project_storages_path) do |tab|+ tab.with_text { t(:"external_file_storages") }+ end+ tab_nav.with_tab(selected: true, href: attachments_project_settings_project_storages_path) do |tab|+ tab.with_text { t(:"attributes.attachments") }+ end+ end+ end %><%=render(Primer::OpenProject::FlexLayout.new(p: 3)) do |container|@@ -64,15 +68,17 @@ end %>[email protected]_work_package_attachmentsend- render(Primer::Forms::ToggleSwitchForm.new(- name: "deactivate_work_package_attachments",- label: t("storages.show_attachments_toggle.label"),- caption: t("storages.show_attachments_toggle.description"),- src: deactivate_work_package_attachments_project_path(@project),- csrf_token: form_authenticity_token,- status_label_position: :start,- checked:- ))+ render(+ Primer::Forms::ToggleSwitchForm.new(+ name: "deactivate_work_package_attachments",+ label: t("storages.show_attachments_toggle.label"),+ caption: t("storages.show_attachments_toggle.description"),+ src: deactivate_work_package_attachments_project_path(@project),+ csrf_token: form_authenticity_token,+ status_label_position: :start,+ checked:+ )+ )endend%>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.erbindex 360a0f979a7..d08b5ab5b04 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@@ -29,16 +29,20 @@ 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_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")])+ 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")]+ )end%>-<%= styled_form_tag(project_settings_project_storage_path(project_id: @project_storage_to_destroy.project, id: @project_storage_to_destroy),- class: "danger-zone",- method: :delete) do %>+<%= styled_form_tag(+ project_settings_project_storage_path(project_id: @project_storage_to_destroy.project, id: @project_storage_to_destroy),+ class: "danger-zone",+ method: :delete+ ) do %><section class="form--section"><h3 class="form--section-title"><%= t("storages.page_titles.project_settings.delete") %>@@ -60,12 +64,12 @@ See COPYRIGHT and LICENSE files for more details.<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"- end %>+ 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 %>+ title: t(:button_cancel),+ 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.erbindex 1b6500be10d..8db2cfd68f8 100644--- a/modules/storages/app/views/storages/project_settings/edit.html.erb+++ b/modules/storages/app/views/storages/project_settings/edit.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("storages.page_titles.project_settings.edit") }- 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.edit")])+ 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.edit")]+ )end%>diff --git a/modules/storages/app/views/storages/project_settings/external_file_storages.html.erb b/modules/storages/app/views/storages/project_settings/external_file_storages.html.erbindex 69db0bff644..23d806a12d7 100644--- a/modules/storages/app/views/storages/project_settings/external_file_storages.html.erb+++ b/modules/storages/app/views/storages/project_settings/external_file_storages.html.erb@@ -30,29 +30,33 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), t("project_module_storages") %><%= render(Primer::OpenProject::PageHeader.new(border_bottom: 0)) do |header|- header.with_title { t("project_module_storages") }- header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },- { href: project_settings_general_path, text: t("label_project_settings") },- t("project_module_storages")])- header.with_action_button(tag: :a,- href: new_project_settings_project_storage_path,- scheme: :primary,- mobile_icon: :plus,- mobile_label: t(:'storages.label_storage'),- size: :medium,- aria: { label: t(:'storages.label_new_storage') },- title: t(:'storages.label_new_storage')) do |button|- button.with_leading_visual_icon(icon: :plus)- t(:'storages.label_storage')- end- header.with_tab_nav(label: nil) do |tab_nav|- tab_nav.with_tab(selected: true, href: external_file_storages_project_settings_project_storages_path) do |tab|- tab.with_text { t(:"external_file_storages") }- end- tab_nav.with_tab(selected: false, href: attachments_project_settings_project_storages_path) do |tab|- tab.with_text { t(:"attributes.attachments") }- end- end-end %>+ header.with_title { t("project_module_storages") }+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ { href: project_settings_general_path, text: t("label_project_settings") },+ t("project_module_storages")]+ )+ header.with_action_button(+ tag: :a,+ href: new_project_settings_project_storage_path,+ scheme: :primary,+ mobile_icon: :plus,+ mobile_label: t(:'storages.label_storage'),+ size: :medium,+ aria: { label: t(:'storages.label_new_storage') },+ title: t(:'storages.label_new_storage')+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ t(:'storages.label_storage')+ end+ header.with_tab_nav(label: nil) do |tab_nav|+ tab_nav.with_tab(selected: true, href: external_file_storages_project_settings_project_storages_path) do |tab|+ tab.with_text { t(:"external_file_storages") }+ end+ tab_nav.with_tab(selected: false, href: attachments_project_settings_project_storages_path) do |tab|+ tab.with_text { t(:"attributes.attachments") }+ end+ end+ end %><%= render(::Storages::ProjectStorages::TableComponent.new(rows: @project_storages)) %>diff --git a/modules/storages/app/views/storages/project_settings/new.html.erb b/modules/storages/app/views/storages/project_settings/new.html.erbindex 9fb86c3c759..f0fe1cdb77b 100644--- a/modules/storages/app/views/storages/project_settings/new.html.erb+++ b/modules/storages/app/views/storages/project_settings/new.html.erb@@ -32,10 +32,12 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t("storages.page_titles.project_settings.new") }- 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.new")])+ 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.new")]+ )end%>diff --git a/modules/storages/app/views/storages/project_settings/project_storage_members/index.html.erb b/modules/storages/app/views/storages/project_settings/project_storage_members/index.html.erbindex b2bcf9dcbc1..8367a04d372 100644--- a/modules/storages/app/views/storages/project_settings/project_storage_members/index.html.erb+++ b/modules/storages/app/views/storages/project_settings/project_storage_members/index.html.erb@@ -35,15 +35,18 @@ See COPYRIGHT and LICENSE files for more details.[{ 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") },- nested_breadcrumb_element(@storage.name, t("storages.page_titles.project_storage_members.title"))- ],- selected_item_font_weight: :normal)+ nested_breadcrumb_element(@storage.name, t("storages.page_titles.project_storage_members.title"))],+ selected_item_font_weight: :normal+ )end%>-<%= content_tag(:p,- t("storages.page_titles.project_storage_members.subtitle",- storage_name_link: link_to(@storage.name, edit_admin_settings_storage_path(@storage))).html_safe+<%= content_tag(+ :p,+ t(+ "storages.page_titles.project_storage_members.subtitle",+ storage_name_link: link_to(@storage.name, edit_admin_settings_storage_path(@storage))+ ).html_safe) %><%= render(::Storages::ProjectStorages::Members::TableComponent.new(rows: @project_users, storage: @storage)) %>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.erbindex 40b0bf2ec4b..834e2ce37dd 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@@ -30,27 +30,33 @@ See COPYRIGHT and LICENSE files for more details.<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px") %>><tr><td>- <%= render(partial: "mailer/mailer_header",- locals: {- user: @admin,- summary: I18n.t("mail.storages.health.healthy.summary", storage_name: @storage.name),- button_href: @url,- button_text: I18n.t(:'mail.storages.health.see_storage_settings')- }) %>-- <%= render(partial: "health_status_notification",- locals: {- state: :healthy,- storage: @storage,- url: @url,- 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",- locals: {- button_url: @url,- button_text: I18n.t(:'mail.storages.health.email_notification_settings')- }) %>+ <%= render(+ partial: "mailer/mailer_header",+ locals: {+ user: @admin,+ summary: I18n.t("mail.storages.health.healthy.summary", storage_name: @storage.name),+ button_href: @url,+ button_text: I18n.t(:'mail.storages.health.see_storage_settings')+ }+ ) %>++ <%= render(+ partial: "health_status_notification",+ locals: {+ state: :healthy,+ storage: @storage,+ url: @url,+ 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",+ locals: {+ button_url: @url,+ button_text: I18n.t(:'mail.storages.health.email_notification_settings')+ }+ ) %><table><tr>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.erbindex cb2f685b639..f6903b9f7ed 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@@ -30,27 +30,33 @@ See COPYRIGHT and LICENSE files for more details.<table <%= placeholder_table_styles(width: "100%", style: "width:100%;max-width:700px") %>><tr><td>- <%= render(partial: "mailer/mailer_header",- locals: {- user: @admin,- summary: I18n.t("mail.storages.health.unhealthy.summary", storage_name: @storage.name),- button_href: @url,- button_text: I18n.t(:'mail.storages.health.see_storage_settings')- }) %>-- <%= render(partial: "health_status_notification",- locals: {- state: :unhealthy,- storage: @storage,- url: @url,- reason: "#{@storage.health_reason_identifier} - #{@storage.health_reason_description}"- }) %>-- <%= render(partial: "mailer/notification_settings_table",- locals: {- button_url: @url,- button_text: I18n.t(:'mail.storages.health.email_notification_settings')- }) %>+ <%= render(+ partial: "mailer/mailer_header",+ locals: {+ user: @admin,+ summary: I18n.t("mail.storages.health.unhealthy.summary", storage_name: @storage.name),+ button_href: @url,+ button_text: I18n.t(:'mail.storages.health.see_storage_settings')+ }+ ) %>++ <%= render(+ partial: "health_status_notification",+ locals: {+ state: :unhealthy,+ storage: @storage,+ url: @url,+ reason: "#{@storage.health_reason_identifier} - #{@storage.health_reason_description}"+ }+ ) %>++ <%= render(+ partial: "mailer/notification_settings_table",+ locals: {+ button_url: @url,+ button_text: I18n.t(:'mail.storages.health.email_notification_settings')+ }+ ) %><table><tr>diff --git a/modules/team_planner/app/views/team_planner/menus/show.html.erb b/modules/team_planner/app/views/team_planner/menus/show.html.erbindex 7c6fb6985ae..251f5664211 100644--- a/modules/team_planner/app/views/team_planner/menus/show.html.erb+++ b/modules/team_planner/app/views/team_planner/menus/show.html.erb@@ -1,5 +1,7 @@<%= turbo_frame_tag "team_planner_sidemenu" do %>- <%= render OpenProject::Common::SubmenuComponent.new(sidebar_menu_items: @submenu_menu_items,- searchable: true,- create_btn_options: @create_btn_options) %>+ <%= render OpenProject::Common::SubmenuComponent.new(+ sidebar_menu_items: @submenu_menu_items,+ searchable: true,+ create_btn_options: @create_btn_options+ ) %><% end %>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.erbindex f6671ab1dd3..9892522d113 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@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field-container"><%= angular_component_tag "opce-project-autocompleter",inputs: {- filters: [{ name: "user_action", operator: "=",values: ["team_planners/create"] }],+ filters: [{ name: "user_action", operator: "=", values: ["team_planners/create"] }],inputName: "project_id",model: @project,appendTo: "body",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.erbindex 26897598a46..a29116913b3 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@@ -3,8 +3,10 @@<%=render Primer::OpenProject::PageHeader.new do |header|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")])+ header.with_breadcrumbs(+ [{ href: project_overview_path(@project.id), text: @project.name },+ 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.erbindex 3bcdfbe2497..5ec34446963 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@@ -31,14 +31,16 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|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")])+ 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")]+ )end%>-<%= labelled_tabular_form_for @view, url: { controller: "/team_planner/team_planner", action: "create" }, :html => {:id => "team-planner-form"} do |f| -%>- <%= render :partial => "form", :locals => {:f => f} %>+<%= labelled_tabular_form_for @view, url: { controller: "/team_planner/team_planner", action: "create" }, :html => { :id => "team-planner-form" } do |f| -%>+ <%= render :partial => "form", :locals => { :f => f } %><%= styled_button_tag t(:button_create), class: "-primary" %><%= link_to t(:button_cancel), { controller: "team_planner/team_planner", action: "overview" },class: "button" %>diff --git a/modules/team_planner/app/views/team_planner/team_planner/overview.html.erb b/modules/team_planner/app/views/team_planner/team_planner/overview.html.erbindex 3377372b440..7d64888acaa 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@@ -2,8 +2,10 @@<%=render Primer::OpenProject::PageHeader.new do |header|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")])+ header.with_breadcrumbs(+ [{ href: home_path, text: organization_name },+ t("team_planner.label_team_planner_plural")]+ )end%>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.erbindex 98b28dd492d..97b1af78182 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@@ -2,9 +2,9 @@<%= 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/request_otp.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erbindex 11fcbdd8477..5b68ac40d10 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@@ -11,9 +11,11 @@{ action: :confirm_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 %>+ 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><% identifier = @used_device.request_2fa_identifier(@strategy.channel) %>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.erbindex 9e21fe1bc0f..99a6ac010c3 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@@ -3,9 +3,11 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|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")])+ 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")]+ )end%>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.erbindex e6ece3c8467..5c0cff97255 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,9 @@-<%= 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")- }) %>+<%= 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")+ }+ ) %>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.erbindex 8ef8947e6bb..b15240110a5 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@@ -3,34 +3,38 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|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")])+ header.with_breadcrumbs(+ [{ href: my_account_path, text: t(:label_my_account) },+ t("two_factor_authentication.label_two_factor_authentication")]+ )end%><%= render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_component do- 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|- button.with_leading_visual_icon(icon: :plus)- button.with_trailing_action_icon(icon: :"triangle-down")- t("two_factor_authentication.label_device")- end+ subheader.with_action_component do+ 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|+ button.with_leading_visual_icon(icon: :plus)+ button.with_trailing_action_icon(icon: :"triangle-down")+ t("two_factor_authentication.label_device")+ end- @available_devices.each do |key, device_class|- menu.with_item(- label: t("two_factor_authentication.devices.#{key}.title"),- href: url_for(action: :new, type: key),- test_selector: "two_factor_authentication_devices_#{key}"- ) do |item|- item.with_description.with_content(t("two_factor_authentication.devices.#{key}.description"))+ @available_devices.each do |key, device_class|+ menu.with_item(+ label: t("two_factor_authentication.devices.#{key}.title"),+ href: url_for(action: :new, type: key),+ test_selector: "two_factor_authentication_devices_#{key}"+ ) do |item|+ item.with_description.with_content(t("two_factor_authentication.devices.#{key}.description"))+ end+ endendend- end- end-end %>+ end %><% if @has_remember_token_for_user %><section class="account--section" id="two_factor_authentication_remember_cookie">@@ -74,11 +78,13 @@ end %><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 },- 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"- end %>+ <%= 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"+ 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.erbindex e46d83936fc..4956e5424ad 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@@ -3,16 +3,20 @@<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { I18n.t("two_factor_authentication.label_two_factor_authentication") }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- { href: admin_settings_authentication_path, text: t(:label_authentication) },- I18n.t("two_factor_authentication.label_two_factor_authentication")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t(:label_administration) },+ { href: admin_settings_authentication_path, text: t(:label_authentication) },+ I18n.t("two_factor_authentication.label_two_factor_authentication")]+ )end%><section class="admin--edit-section">- <%= styled_form_tag({ action: :update },- method: :post,- id: "update-ldap-group-settings-form") do %>+ <%= styled_form_tag(+ { action: :update },+ method: :post,+ id: "update-ldap-group-settings-form"+ ) do %><fieldset class="form--fieldset"><legend class="form--fieldset-legend"><%= t("two_factor_authentication.settings.current_configuration") %></legend><p>@@ -24,29 +28,37 @@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"),- value: t(:label_none))- else- strategies = configuration["active_strategies"].map do |key|- content_tag(:span) do- t("two_factor_authentication.strategies.#{key}")+ 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|+ content_tag(:span) do+ t("two_factor_authentication.strategies.#{key}")+ end+ end+ component.with_attribute(+ key: t("two_factor_authentication.settings.label_active_strategies"),+ value: safe_join(strategies, tag(:br))+ )end- end- 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- t(:label_disabled)- else- "#{configuration['allow_remember_for_days']} (#{t(:label_day_plural)})"- end)- end %>+ 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)})"+ end+ )+ end %></fieldset><% if Setting.plugin_openproject_two_factor_authentication_writable? %><fieldset class="form--fieldset">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.erbindex c0f204766bb..28c1b02062d 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@@ -9,7 +9,8 @@{ 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)+ selected_item_font_weight: :normal+ )end%><%= labelled_tabular_form_for @device,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.erbindex 1b4f9774398..2b880fc398b 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@@ -3,8 +3,10 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|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")])+ header.with_breadcrumbs(+ [{ href: signin_path, text: t(:button_login) },+ t("two_factor_authentication.devices.add_new")]+ )end%>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.erbindex 8d57c925b6c..a5c7ed1d9b3 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@@ -27,10 +27,10 @@<%= 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)- end %>+ 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/upsale.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/upsale.html.erbindex 4da8ec2c4fa..2998bbf3fd9 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@@ -2,8 +2,8 @@<%= 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_admin.html.erb b/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erbindex 47e2d38d5e1..ee67fd9bba0 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@@ -2,25 +2,31 @@<% default_device = @user.otp_devices.get_default %><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")- }) %>+ <%= 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")+ }+ ) %></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"),- value: default_device.identifier)- if default_device.phone_number.present?- component.with_attribute(key: ::TwoFactorAuthentication::Device::Sms.human_attribute_name(:phone_number),- value: default_device.phone_number)- end- end %>+ 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),+ value: default_device.phone_number+ )+ end+ end %><% end %></section>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.erbindex cbc14a36d18..b16dbd53cf2 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@@ -7,7 +7,7 @@<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 %>+ <%= 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/webhooks/show_page_header_component.html.erb b/modules/webhooks/app/components/webhooks/outgoing/webhooks/show_page_header_component.html.erbindex e9b25a6433f..f2cdf4c65be 100644--- a/modules/webhooks/app/components/webhooks/outgoing/webhooks/show_page_header_component.html.erb+++ b/modules/webhooks/app/components/webhooks/outgoing/webhooks/show_page_header_component.html.erb@@ -31,29 +31,33 @@ See COPYRIGHT and LICENSE files for more details.header.with_title { @webhook.name }header.with_breadcrumbs(breadcrumb_items)- header.with_action_button(tag: :a,- mobile_icon: :pencil,- mobile_label: t(:button_edit),- size: :medium,- href: edit_admin_outgoing_webhook_path(@webhook),- aria: { label: I18n.t(:button_edit) },- title: I18n.t(:button_edit)) do |button|+ header.with_action_button(+ tag: :a,+ mobile_icon: :pencil,+ mobile_label: t(:button_edit),+ size: :medium,+ href: edit_admin_outgoing_webhook_path(@webhook),+ aria: { label: I18n.t(:button_edit) },+ title: I18n.t(:button_edit)+ ) do |button|button.with_leading_visual_icon(icon: :pencil)t(:button_edit)end- header.with_action_button(tag: :a,- scheme: :danger,- mobile_icon: :trash,- mobile_label: t(:button_delete),- size: :medium,- href: admin_outgoing_webhook_path(@webhook),- aria: { label: I18n.t(:button_delete) },- data: {- confirm: t(:text_are_you_sure),- method: :delete,- },- title: I18n.t(:button_delete)) do |button|+ header.with_action_button(+ tag: :a,+ scheme: :danger,+ mobile_icon: :trash,+ mobile_label: t(:button_delete),+ size: :medium,+ href: admin_outgoing_webhook_path(@webhook),+ aria: { label: I18n.t(:button_delete) },+ data: {+ confirm: t(:text_are_you_sure),+ method: :delete,+ },+ title: I18n.t(:button_delete)+ ) do |button|button.with_leading_visual_icon(icon: :trash)t(:button_delete)enddiff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erbindex 407a5e3001e..0058b573046 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb@@ -50,8 +50,8 @@<% events.each do |key, label| %><label class="form--label-with-check-box"><%= styled_check_box_tag "webhook[events][]",- key,- event_names.include?(key) -%>+ key,+ event_names.include?(key) -%><%= label %></label><% end %>@@ -86,10 +86,10 @@<% Project.pluck(:id, :name).each do |id, name| %><label class="form--label-with-check-box"><%= 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" -%>+ id,+ [email protected]_projects? && @webhook.project_ids.include?(id),+ disabled: @webhook.all_projects?,+ 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.erbindex 9a2d89210d7..40c29a6f0e3 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb@@ -2,11 +2,13 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { @webhook.name }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },- { href: admin_outgoing_webhooks_path, text: t("webhooks.plural") },- @webhook.name])+ header.with_title { @webhook.name }+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },+ { href: admin_outgoing_webhooks_path, text: t("webhooks.plural") },+ @webhook.name]+ )end%>diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erbindex ce980b19fbd..0fff53659e6 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb@@ -3,19 +3,23 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t("webhooks.plural") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },- t("webhooks.plural")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },+ t("webhooks.plural")]+ )end%><%=render(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_action_button(scheme: :primary,- aria: { label: I18n.t("webhooks.outgoing.label_add_new") },- title: I18n.t("webhooks.outgoing.label_add_new"),- tag: :a,- href: new_admin_outgoing_webhook_path) do |button|+ subheader.with_action_button(+ scheme: :primary,+ aria: { label: I18n.t("webhooks.outgoing.label_add_new") },+ title: I18n.t("webhooks.outgoing.label_add_new"),+ tag: :a,+ href: new_admin_outgoing_webhook_path+ ) do |button|button.with_leading_visual_icon(icon: :plus)t("webhooks.singular")end@@ -23,8 +27,10 @@%><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.erbindex 4bfeedd40c6..05c999be995 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb@@ -3,10 +3,12 @@<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { t("webhooks.outgoing.label_add_new") }- header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },- { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },- { href: admin_outgoing_webhooks_path, text: t("webhooks.plural") },- t("webhooks.outgoing.label_add_new")])+ header.with_breadcrumbs(+ [{ href: admin_index_path, text: t("label_administration") },+ { href: admin_settings_api_path, text: t("menus.admin.api_and_webhooks") },+ { href: admin_outgoing_webhooks_path, text: t("webhooks.plural") },+ t("webhooks.outgoing.label_add_new")]+ )end%>diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erbindex 2b0a53051ee..f46aeef5712 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb@@ -4,27 +4,35 @@render Webhooks::Outgoing::Webhooks::ShowPageHeaderComponent.new(webhook: @webhook)%>-<%= 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")- }) %>+<%= 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")+ }+ ) %><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"),- value: if @webhook.all_projects?- (t(:label_all))- else- @webhook.projects.join(", ")- end)- component.with_attribute(key: ::Webhooks::Webhook.human_attribute_name("description"),- value: @webhook.description)- end %>+ 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(", ")+ end+ )+ component.with_attribute(+ key: ::Webhooks::Webhook.human_attribute_name("description"),+ value: @webhook.description+ )+ end %></div><div class="account--section">