2022-10-22 09:44:41 +00:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.settings.discovery.title')
|
|
|
|
|
|
|
|
- content_for :heading do
|
|
|
|
%h2= t('admin.settings.title')
|
|
|
|
= render partial: 'admin/settings/shared/links'
|
|
|
|
|
|
|
|
= simple_form_for @admin_settings, url: admin_settings_discovery_path, html: { method: :patch } do |f|
|
|
|
|
= render 'shared/error_messages', object: @admin_settings
|
|
|
|
|
|
|
|
%p.lead= t('admin.settings.discovery.preamble')
|
|
|
|
|
|
|
|
%h4= t('admin.settings.discovery.trends')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :trends,
|
|
|
|
as: :boolean,
|
|
|
|
wrapper: :with_label
|
2022-10-22 09:44:41 +00:00
|
|
|
|
2023-01-18 15:43:58 +00:00
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :trends_as_landing_page,
|
|
|
|
as: :boolean,
|
|
|
|
wrapper: :with_label
|
2023-01-18 15:43:58 +00:00
|
|
|
|
2022-10-22 09:44:41 +00:00
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :trendable_by_default,
|
|
|
|
as: :boolean,
|
|
|
|
wrapper: :with_label,
|
|
|
|
recommended: :not_recommended
|
2022-10-28 09:36:25 +00:00
|
|
|
|
|
|
|
.fields-group
|
2022-11-12 09:09:27 +00: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 09:44:41 +00:00
|
|
|
|
|
|
|
%h4= t('admin.settings.discovery.public_timelines')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :timeline_preview,
|
|
|
|
as: :boolean,
|
|
|
|
wrapper: :with_label
|
2022-10-22 09:44:41 +00:00
|
|
|
|
2022-12-11 06:27:44 +00:00
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00: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 06:27:44 +00:00
|
|
|
|
2023-01-13 16:14:39 +00:00
|
|
|
%h4= t('admin.settings.discovery.publish_statistics')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :activity_api_enabled,
|
|
|
|
as: :boolean,
|
|
|
|
wrapper: :with_label,
|
|
|
|
recommended: :recommended
|
2023-01-13 16:14:39 +00:00
|
|
|
|
2023-01-13 15:43:17 +00:00
|
|
|
%h4= t('admin.settings.discovery.publish_discovered_servers')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :peers_api_enabled,
|
|
|
|
as: :boolean,
|
|
|
|
wrapper: :with_label,
|
|
|
|
recommended: :recommended
|
2023-01-13 15:43:17 +00:00
|
|
|
|
2023-09-01 13:41:10 +00:00
|
|
|
%h4= t('admin.settings.security.federation_authentication')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00: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 13:41:10 +00:00
|
|
|
|
2022-10-22 09:44:41 +00:00
|
|
|
%h4= t('admin.settings.discovery.follow_recommendations')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :bootstrap_timeline_accounts,
|
|
|
|
wrapper: :with_block_label
|
2022-10-22 09:44:41 +00:00
|
|
|
|
|
|
|
%h4= t('admin.settings.discovery.profile_directory')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 11:19:00 +00:00
|
|
|
= f.input :profile_directory,
|
|
|
|
as: :boolean,
|
|
|
|
wrapper: :with_label
|
2022-10-22 09:44:41 +00:00
|
|
|
|
|
|
|
.actions
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|