2
0

Add a new setting to choose the server landing page (#36588)

This commit is contained in:
Renaud Chaput
2025-10-27 11:16:59 +01:00
committed by GitHub
parent e40ca321ed
commit 779a1f8448
72 changed files with 81 additions and 135 deletions

View File

@@ -68,5 +68,12 @@
= material_symbol 'delete'
= t('admin.site_uploads.delete')
.fields-row
= f.input :landing_page,
collection: f.object.class::LANDING_PAGE,
include_blank: false,
label_method: ->(page) { I18n.t("admin.settings.landing_page.values.#{page}") },
wrapper: :with_label
.actions
= f.button :button, t('generic.save_changes'), type: :submit

View File

@@ -17,11 +17,6 @@
as: :boolean,
wrapper: :with_label
.fields-group
= f.input :trends_as_landing_page,
as: :boolean,
wrapper: :with_label
.fields-group
= f.input :trendable_by_default,
as: :boolean,