1
0
Fork 0
forked from gitea/nas

Change: #802 絵文字リアクション受け入れと表示設定」をプライバシー追加設定に移動 (#811)

This commit is contained in:
KMY(雪あすか) 2024-08-21 12:30:13 +09:00 committed by GitHub
parent 997d744cea
commit 19e2272122
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 22 deletions

View file

@ -37,26 +37,6 @@
label: I18n.t('simple_form.labels.defaults.setting_default_sensitive'),
wrapper: :with_label
- 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: false,
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}")]) },
warning_hint: I18n.t('simple_form.hints.defaults.setting_emoji_reaction_policy'),
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')
- if @dtl_enabled
%h4= t 'preferences.dtl'

View file

@ -21,6 +21,25 @@
.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')