2022-10-22 02:44:41 -07:00
|
|
|
- content_for :header_tags do
|
|
|
|
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
|
|
|
|
|
|
- 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
|
|
|
|
= f.input :trends, as: :boolean, wrapper: :with_label
|
|
|
|
|
2023-01-18 07:43:58 -08:00
|
|
|
.fields-group
|
|
|
|
= f.input :trends_as_landing_page, as: :boolean, wrapper: :with_label
|
|
|
|
|
2022-10-22 02:44:41 -07:00
|
|
|
.fields-group
|
2022-11-12 01:54:51 -08:00
|
|
|
= f.input :trendable_by_default, as: :boolean, wrapper: :with_label, recommended: :not_recommended
|
2022-10-22 02:44:41 -07:00
|
|
|
|
|
|
|
%h4= t('admin.settings.discovery.public_timelines')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :timeline_preview, as: :boolean, wrapper: :with_label
|
|
|
|
|
2022-12-10 22:27:44 -08:00
|
|
|
.fields-group
|
|
|
|
= f.input :noindex, as: :boolean, wrapper: :with_label, label: t('admin.settings.default_noindex.title'), hint: t('admin.settings.default_noindex.desc_html')
|
|
|
|
|
2023-01-13 08:14:39 -08:00
|
|
|
%h4= t('admin.settings.discovery.publish_statistics')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :activity_api_enabled, as: :boolean, wrapper: :with_label, recommended: :recommended
|
|
|
|
|
2023-01-13 07:43:17 -08:00
|
|
|
%h4= t('admin.settings.discovery.publish_discovered_servers')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :peers_api_enabled, as: :boolean, wrapper: :with_label, recommended: :recommended
|
|
|
|
|
2022-10-22 02:44:41 -07:00
|
|
|
%h4= t('admin.settings.discovery.follow_recommendations')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :bootstrap_timeline_accounts, wrapper: :with_block_label
|
|
|
|
|
|
|
|
%h4= t('admin.settings.discovery.profile_directory')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :profile_directory, as: :boolean, wrapper: :with_label
|
|
|
|
|
|
|
|
.actions
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|