Improve: 全文検索が有効でない環境で、検索設定画面の表示を変更 (#479)
This commit is contained in:
parent
f20ebfac41
commit
cb77851768
3 changed files with 23 additions and 16 deletions
|
@ -44,6 +44,9 @@
|
||||||
|
|
||||||
%h4= t 'preferences.searchability'
|
%h4= t 'preferences.searchability'
|
||||||
|
|
||||||
|
- unless Chewy.enabled?
|
||||||
|
%p.hint= t 'preferences.does_not_search'
|
||||||
|
|
||||||
.fields-row
|
.fields-row
|
||||||
.fields-group.fields-row__column.fields-row__column-12
|
.fields-group.fields-row__column.fields-row__column-12
|
||||||
= ff.input :default_searchability,
|
= ff.input :default_searchability,
|
||||||
|
@ -59,24 +62,26 @@
|
||||||
.fields-group
|
.fields-group
|
||||||
= ff.input :disallow_unlisted_public_searchability, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_disallow_unlisted_public_searchability'), hint: I18n.t('simple_form.hints.defaults.setting_disallow_unlisted_public_searchability')
|
= ff.input :disallow_unlisted_public_searchability, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_disallow_unlisted_public_searchability'), hint: I18n.t('simple_form.hints.defaults.setting_disallow_unlisted_public_searchability')
|
||||||
|
|
||||||
%h4= t 'preferences.search'
|
- if Chewy.enabled?
|
||||||
|
%h4= t 'preferences.search'
|
||||||
|
|
||||||
.fields-row
|
.fields-row
|
||||||
.fields-group.fields-row__column.fields-row__column-12
|
.fields-group.fields-row__column.fields-row__column-12
|
||||||
= ff.input :default_searchability_of_search,
|
= ff.input :default_searchability_of_search,
|
||||||
collection: Status.selectable_searchabilities_for_search,
|
collection: Status.selectable_searchabilities_for_search,
|
||||||
hint: false,
|
hint: false,
|
||||||
include_blank: false,
|
include_blank: false,
|
||||||
kmyblue: true,
|
kmyblue: true,
|
||||||
label: I18n.t('simple_form.labels.defaults.setting_default_searchability_of_search'),
|
label: I18n.t('simple_form.labels.defaults.setting_default_searchability_of_search'),
|
||||||
label_method: ->(searchability) { safe_join([I18n.t("statuses.searchabilities.#{searchability}"), I18n.t("statuses.searchabilities.#{searchability}_search_long")], ' - ') },
|
label_method: ->(searchability) { safe_join([I18n.t("statuses.searchabilities.#{searchability}"), I18n.t("statuses.searchabilities.#{searchability}_search_long")], ' - ') },
|
||||||
required: false,
|
required: false,
|
||||||
wrapper: :with_label
|
wrapper: :with_label
|
||||||
.fields-group
|
|
||||||
= ff.input :reverse_search_quote, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_reverse_search_quote'), hint: I18n.t('simple_form.hints.defaults.setting_reverse_search_quote')
|
|
||||||
|
|
||||||
.fields-group
|
.fields-group
|
||||||
= ff.input :use_public_index, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_use_public_index')
|
= ff.input :reverse_search_quote, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_reverse_search_quote'), hint: I18n.t('simple_form.hints.defaults.setting_reverse_search_quote')
|
||||||
|
|
||||||
|
.fields-group
|
||||||
|
= ff.input :use_public_index, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_use_public_index')
|
||||||
|
|
||||||
.actions
|
.actions
|
||||||
= f.button :button, t('generic.save_changes'), type: :submit
|
= f.button :button, t('generic.save_changes'), type: :submit
|
||||||
|
|
|
@ -1721,6 +1721,7 @@ en:
|
||||||
too_few_options: must have more than one item
|
too_few_options: must have more than one item
|
||||||
too_many_options: can't contain more than %{max} items
|
too_many_options: can't contain more than %{max} items
|
||||||
preferences:
|
preferences:
|
||||||
|
does_not_search: The full-text search feature is not available on this server. Instead, your posts will be searched according to this setting on other kmyblue servers.
|
||||||
dtl: Deep timeline
|
dtl: Deep timeline
|
||||||
dtl_hint: "You can join deep timeline with #%{tag} tag. Following settings make convenient to use deep timeline."
|
dtl_hint: "You can join deep timeline with #%{tag} tag. Following settings make convenient to use deep timeline."
|
||||||
emoji_reaction_permitting: Receiving stamps
|
emoji_reaction_permitting: Receiving stamps
|
||||||
|
|
|
@ -1700,6 +1700,7 @@ ja:
|
||||||
too_few_options: は複数必要です
|
too_few_options: は複数必要です
|
||||||
too_many_options: は%{max}個までです
|
too_many_options: は%{max}個までです
|
||||||
preferences:
|
preferences:
|
||||||
|
does_not_search: このサーバーでは全文検索機能を利用できません。代わりに、他のkmyblueサーバーであなたの投稿がこの設定に従って検索されます。
|
||||||
dtl: ディープタイムライン
|
dtl: ディープタイムライン
|
||||||
dtl_hint: "#%{tag} ハッシュタグに参加することで、ディープタイムラインに投稿できます。ここではディープタイムラインを利用しやすくするための設定ができます。"
|
dtl_hint: "#%{tag} ハッシュタグに参加することで、ディープタイムラインに投稿できます。ここではディープタイムラインを利用しやすくするための設定ができます。"
|
||||||
emoji_reaction_permitting: スタンプの受け入れ
|
emoji_reaction_permitting: スタンプの受け入れ
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue