Add: #483 特定の公開範囲を無効にするオプション (#712)

* Add: #483 特定の公開範囲を無効にするオプション

* Fix test partically

* Complete
This commit is contained in:
KMY(雪あすか) 2024-04-18 12:40:18 +09:00 committed by GitHub
parent 7f9ec2e510
commit f79fb3adae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 177 additions and 59 deletions

View file

@ -40,7 +40,18 @@
= ff.input :public_post_to_unlisted, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_public_post_to_unlisted'), hint: I18n.t('simple_form.hints.defaults.setting_public_post_to_unlisted')
.fields-group
= ff.input :'web.enable_login_privacy', wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_enable_login_privacy'), hint: false
= ff.input :enabled_visibilities,
as: :check_boxes,
collection_wrapper_tag: 'ul',
collection: Status.selectable_all_visibilities,
hint: I18n.t('simple_form.hints.defaults.setting_enabled_visibilities'),
include_blank: false,
item_wrapper_tag: 'li',
kmyblue: true,
label: I18n.t('simple_form.labels.defaults.setting_enabled_visibilities'),
label_method: ->(visibility) { I18n.t("statuses.visibilities.#{visibility}") },
required: false,
wrapper: :with_block_label
%h4= t 'preferences.searchability'