mastodon/app/views/admin/settings/discovery/show.html.haml
Echo dbf14784bf
Some checks are pending
Check i18n / check-i18n (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Crowdin / Upload translations / upload-translations (push) Waiting to run
Check formatting / lint (push) Waiting to run
CSS Linting / lint (push) Waiting to run
Haml Linting / lint (push) Waiting to run
JavaScript Linting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
JavaScript Testing / test (push) Waiting to run
Historical data migration test / test (14-alpine) (push) Waiting to run
Historical data migration test / test (15-alpine) (push) Waiting to run
Historical data migration test / test (16-alpine) (push) Waiting to run
Historical data migration test / test (17-alpine) (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / Libvips tests (.ruby-version) (push) Blocked by required conditions
Ruby Testing / Libvips tests (3.2) (push) Blocked by required conditions
Ruby Testing / Libvips tests (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.2) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Add setting to control the referrer origin (#34731)
2025-05-19 13:13:22 +00:00

95 lines
2.7 KiB
Plaintext

- 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
.fields-group
= f.input :trends_as_landing_page,
as: :boolean,
wrapper: :with_label
.fields-group
= f.input :trendable_by_default,
as: :boolean,
wrapper: :with_label,
recommended: :not_recommended
%h4= t('admin.settings.discovery.public_timelines')
.fields-group
= f.input :timeline_preview,
as: :boolean,
wrapper: :with_label
%h4= t('admin.settings.discovery.privacy')
.fields-group
= f.input :noindex,
as: :boolean,
hint: t('admin.settings.default_noindex.desc_html'),
label: t('admin.settings.default_noindex.title'),
wrapper: :with_label
.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
%h4= t('admin.settings.discovery.publish_statistics')
.fields-group
= f.input :activity_api_enabled,
as: :boolean,
wrapper: :with_label,
recommended: :recommended
.fields-group
= f.input :peers_api_enabled,
as: :boolean,
wrapper: :with_label,
recommended: :recommended
%h4= t('admin.settings.security.federation_authentication')
.fields-group
= 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
%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