mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 02:01:36 +01:00
2d4ff8f6ed
Conflicts: - `app/views/admin/custom_emojis/new.html.haml`: Upstream split some `simple_form` arguments across multiple lines. One of the arguments in glitch-soc was different. Split as upstream's did, keeping our different limit argument. - `app/views/admin/settings/appearance/show.html.haml`: Upstream split some `simple_form` arguments across multiple lines. Glitch-soc had a different field because of the different theming system. Kept glitch-soc's definition of that form field.
90 lines
2.7 KiB
Text
90 lines
2.7 KiB
Text
- 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
|
|
|
|
.fields-group
|
|
= 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
|
|
|
|
%h4= t('admin.settings.discovery.public_timelines')
|
|
|
|
.fields-group
|
|
= f.input :timeline_preview,
|
|
as: :boolean,
|
|
wrapper: :with_label
|
|
|
|
.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
|
|
|
|
%h4= t('admin.settings.discovery.publish_statistics')
|
|
|
|
.fields-group
|
|
= f.input :activity_api_enabled,
|
|
as: :boolean,
|
|
wrapper: :with_label,
|
|
recommended: :recommended
|
|
|
|
%h4= t('admin.settings.discovery.publish_discovered_servers')
|
|
|
|
.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
|