2022-10-22 11:44:41 +02:00
|
|
|
- content_for :page_title do
|
|
|
|
|
= t('admin.settings.discovery.title')
|
|
|
|
|
|
|
|
|
|
- content_for :heading do
|
2026-03-17 11:32:24 +01:00
|
|
|
%h1= t('admin.settings.title')
|
2022-10-22 11:44:41 +02:00
|
|
|
= render partial: 'admin/settings/shared/links'
|
|
|
|
|
|
2025-12-17 03:32:24 -05:00
|
|
|
= simple_form_for @admin_settings, url: admin_settings_discovery_path do |f|
|
2022-10-22 11:44:41 +02:00
|
|
|
= render 'shared/error_messages', object: @admin_settings
|
|
|
|
|
|
|
|
|
|
%p.lead= t('admin.settings.discovery.preamble')
|
|
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.discovery.trends')
|
2022-10-22 11:44:41 +02:00
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :trends,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
wrapper: :with_label
|
2022-10-22 11:44:41 +02:00
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :trendable_by_default,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
wrapper: :with_label,
|
|
|
|
|
recommended: :not_recommended
|
2022-10-28 11:36:25 +02:00
|
|
|
|
|
|
|
|
.fields-group
|
2022-11-12 10:09:27 +01:00
|
|
|
= f.input :trending_status_cw, as: :boolean, wrapper: :with_label, label: t('admin.settings.trending_status_cw.title'), hint: t('admin.settings.trending_status_cw.desc_html'), glitch_only: true
|
2022-10-22 11:44:41 +02:00
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.discovery.public_timelines')
|
2022-10-22 11:44:41 +02:00
|
|
|
|
2025-10-06 10:34:05 +02:00
|
|
|
.fields-row
|
|
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
|
|
|
|
= f.input :local_live_feed_access,
|
|
|
|
|
collection: f.object.class::FEED_ACCESS_MODES,
|
|
|
|
|
include_blank: false,
|
|
|
|
|
label_method: ->(mode) { I18n.t("admin.settings.feed_access.modes.#{mode}") },
|
|
|
|
|
wrapper: :with_label
|
|
|
|
|
|
|
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
|
|
|
|
= f.input :remote_live_feed_access,
|
|
|
|
|
collection: f.object.class::FEED_ACCESS_MODES,
|
|
|
|
|
include_blank: false,
|
|
|
|
|
label_method: ->(mode) { I18n.t("admin.settings.feed_access.modes.#{mode}") },
|
|
|
|
|
wrapper: :with_label
|
|
|
|
|
|
|
|
|
|
.fields-row
|
|
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
|
|
|
|
= f.input :local_topic_feed_access,
|
2025-11-04 11:37:43 +01:00
|
|
|
collection: f.object.class::ALTERNATE_FEED_ACCESS_MODES,
|
2025-10-06 10:34:05 +02:00
|
|
|
include_blank: false,
|
|
|
|
|
label_method: ->(mode) { I18n.t("admin.settings.feed_access.modes.#{mode}") },
|
|
|
|
|
wrapper: :with_label
|
|
|
|
|
|
|
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
|
|
|
|
= f.input :remote_topic_feed_access,
|
|
|
|
|
collection: f.object.class::FEED_ACCESS_MODES,
|
|
|
|
|
include_blank: false,
|
|
|
|
|
label_method: ->(mode) { I18n.t("admin.settings.feed_access.modes.#{mode}") },
|
|
|
|
|
wrapper: :with_label
|
2022-10-22 11:44:41 +02:00
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.discovery.privacy')
|
2025-05-19 15:13:22 +02:00
|
|
|
|
2022-12-11 00:27:44 -06:00
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :noindex,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
hint: t('admin.settings.default_noindex.desc_html'),
|
|
|
|
|
label: t('admin.settings.default_noindex.title'),
|
|
|
|
|
wrapper: :with_label
|
2022-12-11 00:27:44 -06:00
|
|
|
|
2025-05-19 15:13:22 +02:00
|
|
|
.fields-group
|
|
|
|
|
= f.input :allow_referrer_origin,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
hint: t('admin.settings.allow_referrer_origin.desc'),
|
|
|
|
|
label: t('admin.settings.allow_referrer_origin.title'),
|
|
|
|
|
wrapper: :with_label
|
|
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.discovery.publish_statistics')
|
2023-01-13 08:14:39 -08:00
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :activity_api_enabled,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
wrapper: :with_label,
|
|
|
|
|
recommended: :recommended
|
2023-01-13 08:14:39 -08:00
|
|
|
|
2023-01-13 07:43:17 -08:00
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :peers_api_enabled,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
wrapper: :with_label,
|
|
|
|
|
recommended: :recommended
|
2023-01-13 07:43:17 -08:00
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.security.federation_authentication')
|
2023-09-01 15:41:10 +02:00
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :authorized_fetch,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
disabled: authorized_fetch_overridden?,
|
|
|
|
|
hint: discovery_hint_text,
|
|
|
|
|
label: t('admin.settings.security.authorized_fetch'),
|
|
|
|
|
recommended: discovery_recommended_value,
|
|
|
|
|
warning_hint: discovery_warning_hint_text,
|
|
|
|
|
wrapper: :with_label
|
2023-09-01 15:41:10 +02:00
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.discovery.follow_recommendations')
|
2022-10-22 11:44:41 +02:00
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :bootstrap_timeline_accounts,
|
|
|
|
|
wrapper: :with_block_label
|
2022-10-22 11:44:41 +02:00
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.discovery.profile_directory')
|
2022-10-22 11:44:41 +02:00
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 07:19:00 -04:00
|
|
|
= f.input :profile_directory,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
wrapper: :with_label
|
2022-10-22 11:44:41 +02:00
|
|
|
|
2026-03-17 11:32:24 +01:00
|
|
|
%h2= t('admin.settings.discovery.wrapstodon')
|
2025-12-17 10:47:02 +01:00
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
|
= f.input :wrapstodon,
|
|
|
|
|
as: :boolean,
|
|
|
|
|
wrapper: :with_label
|
|
|
|
|
|
2022-10-22 11:44:41 +02:00
|
|
|
.actions
|
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|