Change: プロフィール設定画面の検索許可設定項目のテキスト (#431)

This commit is contained in:
KMY(雪あすか) 2024-01-08 09:49:30 +09:00 committed by GitHub
parent ecf6f31ecd
commit 7ee9efd6f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 6 deletions

View file

@ -28,13 +28,20 @@
%p.lead= t('privacy.search_hint_html')
.fields-group
= f.input :indexable, as: :boolean, wrapper: :with_label
= f.simple_fields_for :settings, current_user.settings do |ff|
.fields-group
= ff.input :indexable, wrapper: :with_label
%p.lead= t('privacy.search_kmyblue_hint_html')
.fields-group
= f.input :indexable, as: :boolean, wrapper: :with_label, label: I18n.t('simple_form.labels.account.indexable_kmyblue')
= f.simple_fields_for :settings, current_user.settings do |ff|
.fields-row
.fields-group.fields-row__column.fields-row__column-12
= ff.input :default_searchability, collection: Status.selectable_searchabilities, wrapper: :with_label, kmyblue: true, include_blank: false, label_method: ->(searchability) { safe_join([I18n.t("statuses.searchabilities.#{searchability}"), I18n.t("statuses.searchabilities.#{searchability}_long")], ' - ') }, required: false, label: I18n.t('simple_form.labels.account.searchability_kmyblue')
%h4= t('privacy.privacy')
%p.lead= t('privacy.privacy_hint_html')