about summary refs log tree commit diff
path: root/app/views/admin/settings/discovery/show.html.haml
blob: 3983b563b442516ec4e37ce5918e183b07fb2130 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
- 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 :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

  %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