Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

ruby 3 compatible calls to rails_cell

ulferts7ca8b32abb06
diff --git a/app/views/members/index.html.erb b/app/views/members/index.html.erb
index 90d008f111d..c1903f99a8e 100644
--- a/app/views/members/index.html.erb
+++ b/app/views/members/index.html.erb
@@ -70,8 +70,8 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div>
- <%= rails_cell Members::UserFilterCell, params, @members_filter_options %>
- <%= rails_cell Members::TableCell, @members, @members_table_options %>
+ <%= rails_cell Members::UserFilterCell, params, **@members_filter_options %>
+ <%= rails_cell Members::TableCell, @members, **@members_table_options %>
</div>
diff --git a/app/views/users/_consent.html.erb b/app/views/users/_consent.html.erb
index 90996cdae26..7209052484c 100644
--- a/app/views/users/_consent.html.erb
+++ b/app/views/users/_consent.html.erb
@@ -1,9 +1,11 @@
<section class="form--section">
<h3 class="form--section-title"><%=t('consent.title')%></h3>
<%= rails_cell ::Components::OnOffStatusCell,
- is_on: @user.consented_at.present?,
- on_text: format_time(@user.consented_at),
- on_description: t('consent.user_has_consented'),
- off_text: t(:label_never),
- off_description: t('consent.not_yet_consented') %>
+ {
+ is_on: @user.consented_at.present?,
+ on_text: format_time(@user.consented_at),
+ on_description: t('consent.user_has_consented'),
+ off_text: t(:label_never),
+ off_description: t('consent.not_yet_consented')
+ } %>
</section>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/_two_factor_status.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/_two_factor_status.html.erb
index fb87af90098..29632a502ce 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,8 @@
<%= rails_cell ::Components::OnOffStatusCell,
- 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') %>
+ { 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/webhooks/app/views/webhooks/outgoing/admin/show.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb
index a6ff9e78a0b..a27ccb877b2 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/show.html.erb
@@ -26,11 +26,13 @@
<% end %>
<%= rails_cell ::Components::OnOffStatusCell,
- 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') %>
+ {
+ 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">
<div class="attributes-group">