2017-05-04 12:12:44 -04:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.settings.title')
|
|
|
|
|
2017-07-11 21:24:04 -04:00
|
|
|
= simple_form_for @admin_settings, url: admin_settings_path, html: { method: :patch } do |f|
|
2018-07-05 20:15:56 -04:00
|
|
|
.actions.actions--top
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|
|
|
|
|
2017-07-11 21:24:04 -04:00
|
|
|
.fields-group
|
|
|
|
= f.input :site_title, placeholder: t('admin.settings.site_title')
|
|
|
|
= f.input :site_description, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_description.title'), hint: t('admin.settings.site_description.desc_html'), input_html: { rows: 8 }
|
|
|
|
= f.input :site_contact_username, placeholder: t('admin.settings.contact_information.username')
|
|
|
|
= f.input :site_contact_email, placeholder: t('admin.settings.contact_information.email')
|
2017-05-04 12:12:44 -04:00
|
|
|
|
2017-07-11 21:24:04 -04:00
|
|
|
%hr/
|
|
|
|
|
2017-09-13 18:04:30 -04:00
|
|
|
.fields-group
|
|
|
|
= f.input :thumbnail, as: :file, wrapper: :with_block_label, label: t('admin.settings.thumbnail.title'), hint: t('admin.settings.thumbnail.desc_html')
|
2018-02-21 19:03:48 -05:00
|
|
|
= f.input :hero, as: :file, wrapper: :with_block_label, label: t('admin.settings.hero.title'), hint: t('admin.settings.hero.desc_html')
|
2017-09-13 18:04:30 -04:00
|
|
|
|
|
|
|
%hr/
|
|
|
|
|
2017-07-11 21:24:04 -04:00
|
|
|
.fields-group
|
|
|
|
= f.input :timeline_preview, as: :boolean, wrapper: :with_label, label: t('admin.settings.timeline_preview.title'), hint: t('admin.settings.timeline_preview.desc_html')
|
|
|
|
|
2018-02-04 00:00:10 -05:00
|
|
|
.fields-group
|
|
|
|
= f.input :show_known_fediverse_at_about_page, as: :boolean, wrapper: :with_label, label: t('admin.settings.show_known_fediverse_at_about_page.title'), hint: t('admin.settings.show_known_fediverse_at_about_page.desc_html')
|
|
|
|
|
2017-11-18 22:13:57 -05:00
|
|
|
.fields-group
|
|
|
|
= f.input :show_staff_badge, as: :boolean, wrapper: :with_label, label: t('admin.settings.show_staff_badge.title'), hint: t('admin.settings.show_staff_badge.desc_html')
|
|
|
|
|
2017-07-11 21:24:04 -04:00
|
|
|
.fields-group
|
|
|
|
= f.input :open_registrations, as: :boolean, wrapper: :with_label, label: t('admin.settings.registrations.open.title'), hint: t('admin.settings.registrations.open.desc_html')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :open_deletion, as: :boolean, wrapper: :with_label, label: t('admin.settings.registrations.deletion.title'), hint: t('admin.settings.registrations.deletion.desc_html')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :closed_registrations_message, as: :text, wrapper: :with_block_label, label: t('admin.settings.registrations.closed_message.title'), hint: t('admin.settings.registrations.closed_message.desc_html'), input_html: { rows: 8 }
|
|
|
|
|
|
|
|
%hr/
|
|
|
|
|
2017-11-27 10:07:59 -05:00
|
|
|
.fields-group
|
|
|
|
= f.input :min_invite_role, wrapper: :with_label, collection: %i(disabled user moderator admin), label: t('admin.settings.registrations.min_invite_role.title'), label_method: lambda { |role| role == :disabled ? t('admin.settings.registrations.min_invite_role.disabled') : t("admin.accounts.roles.#{role}") }, as: :radio_buttons, include_blank: false, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li'
|
|
|
|
|
|
|
|
%hr/
|
|
|
|
|
2017-07-11 21:24:04 -04:00
|
|
|
.fields-group
|
|
|
|
= f.input :site_extended_description, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_description_extended.title'), hint: t('admin.settings.site_description_extended.desc_html'), input_html: { rows: 8 }
|
|
|
|
= f.input :site_terms, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_terms.title'), hint: t('admin.settings.site_terms.desc_html'), input_html: { rows: 8 }
|
|
|
|
|
2017-09-10 03:58:38 -04:00
|
|
|
%hr/
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :bootstrap_timeline_accounts, wrapper: :with_block_label, label: t('admin.settings.bootstrap_timeline_accounts.title'), hint: t('admin.settings.bootstrap_timeline_accounts.desc_html')
|
|
|
|
|
2017-12-29 13:52:04 -05:00
|
|
|
%hr/
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :activity_api_enabled, as: :boolean, wrapper: :with_label, label: t('admin.settings.activity_api_enabled.title'), hint: t('admin.settings.activity_api_enabled.desc_html')
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :peers_api_enabled, as: :boolean, wrapper: :with_label, label: t('admin.settings.peers_api_enabled.title'), hint: t('admin.settings.peers_api_enabled.desc_html')
|
|
|
|
|
2018-07-05 20:15:56 -04:00
|
|
|
.fields-group
|
|
|
|
= f.input :preview_sensitive_media, as: :boolean, wrapper: :with_label, label: t('admin.settings.preview_sensitive_media.title'), hint: t('admin.settings.preview_sensitive_media.desc_html')
|
|
|
|
|
2017-07-11 21:24:04 -04:00
|
|
|
.actions
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|