show.html.haml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. - content_for :page_title do
  2. = t('admin.settings.discovery.title')
  3. - content_for :heading do
  4. %h2= t('admin.settings.title')
  5. = render partial: 'admin/settings/shared/links'
  6. = simple_form_for @admin_settings, url: admin_settings_discovery_path, html: { method: :patch } do |f|
  7. = render 'shared/error_messages', object: @admin_settings
  8. %p.lead= t('admin.settings.discovery.preamble')
  9. %h4= t('admin.settings.discovery.trends')
  10. .fields-group
  11. = f.input :trends, as: :boolean, wrapper: :with_label
  12. .fields-group
  13. = f.input :trends_as_landing_page, as: :boolean, wrapper: :with_label
  14. .fields-group
  15. = f.input :trendable_by_default, as: :boolean, wrapper: :with_label, recommended: :not_recommended
  16. %h4= t('admin.settings.discovery.public_timelines')
  17. .fields-group
  18. = f.input :timeline_preview, as: :boolean, wrapper: :with_label
  19. .fields-group
  20. = f.input :noindex, as: :boolean, wrapper: :with_label, label: t('admin.settings.default_noindex.title'), hint: t('admin.settings.default_noindex.desc_html')
  21. %h4= t('admin.settings.discovery.publish_statistics')
  22. .fields-group
  23. = f.input :activity_api_enabled, as: :boolean, wrapper: :with_label, recommended: :recommended
  24. %h4= t('admin.settings.discovery.publish_discovered_servers')
  25. .fields-group
  26. = f.input :peers_api_enabled, as: :boolean, wrapper: :with_label, recommended: :recommended
  27. %h4= t('admin.settings.security.federation_authentication')
  28. .fields-group
  29. = f.input :authorized_fetch, as: :boolean, wrapper: :with_label, label: t('admin.settings.security.authorized_fetch'), warning_hint: discovery_warning_hint_text, hint: discovery_hint_text, disabled: authorized_fetch_overridden?, recommended: discovery_recommended_value
  30. %h4= t('admin.settings.discovery.follow_recommendations')
  31. .fields-group
  32. = f.input :bootstrap_timeline_accounts, wrapper: :with_block_label
  33. %h4= t('admin.settings.discovery.profile_directory')
  34. .fields-group
  35. = f.input :profile_directory, as: :boolean, wrapper: :with_label
  36. .actions
  37. = f.button :button, t('generic.save_changes'), type: :submit