59 lines
3 KiB
Text
59 lines
3 KiB
Text
- content_for :page_title do
|
|
= t('privacy_extra.title')
|
|
|
|
- content_for :heading do
|
|
%h2= t('settings.profile')
|
|
= render partial: 'settings/shared/profile_navigation'
|
|
|
|
= simple_form_for @account, url: settings_privacy_extra_path, html: { method: :put } do |f|
|
|
= render 'shared/error_messages', object: @account
|
|
|
|
%p.lead= t('privacy_extra.hint_html')
|
|
|
|
%h4= t('privacy_extra.post_processing')
|
|
|
|
%p.lead= t('privacy_extra.post_processing_hint_html')
|
|
|
|
= f.simple_fields_for :settings, current_user.settings do |ff|
|
|
.fields-group
|
|
= ff.input :translatable_private, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_translatable_private')
|
|
|
|
.fields-group
|
|
= ff.input :allow_quote, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_allow_quote'), hint: I18n.t('simple_form.hints.defaults.setting_allow_quote')
|
|
|
|
- if Setting.enable_emoji_reaction
|
|
%h4= t 'preferences.emoji_reaction_permitting'
|
|
|
|
.fields-row
|
|
.fields-group.fields-row__column.fields-row__column-12
|
|
= ff.input :emoji_reaction_policy,
|
|
collection: %w(allow outside_only followers_only following_only mutuals_only block),
|
|
collection_wrapper_tag: 'ul',
|
|
hint: I18n.t('simple_form.hints.defaults.setting_emoji_reaction_policy'),
|
|
include_blank: false,
|
|
item_wrapper_tag: 'li',
|
|
kmyblue: true,
|
|
label: I18n.t('simple_form.labels.defaults.setting_emoji_reaction_policy'),
|
|
label_method: ->(item) { safe_join([t("simple_form.labels.defaults.setting_emoji_reaction_policy_items.#{item}")]) },
|
|
wrapper: :with_label
|
|
|
|
.fields-group
|
|
= ff.input :slip_local_emoji_reaction, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_slip_local_emoji_reaction')
|
|
|
|
%h4= t 'privacy_extra.stop_deliver'
|
|
|
|
%p.lead= t('privacy_extra.stop_deliver_hint_html')
|
|
|
|
= f.simple_fields_for :settings, current_user.settings do |ff|
|
|
- if Setting.enable_public_unlisted_visibility
|
|
.fields-group
|
|
= ff.input :reject_public_unlisted_subscription, kmyblue: true, as: :boolean, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_reject_public_unlisted_subscription')
|
|
|
|
.fields-group
|
|
= ff.input :reject_unlisted_subscription, kmyblue: true, as: :boolean, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_reject_unlisted_subscription'), hint: I18n.t('simple_form.hints.defaults.setting_reject_unlisted_subscription')
|
|
|
|
.fields-group
|
|
= ff.input :reject_send_limited_to_suspects, kmyblue: true, as: :boolean, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_reject_send_limited_to_suspects'), hint: I18n.t('simple_form.hints.defaults.setting_reject_send_limited_to_suspects')
|
|
|
|
.actions
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|