Use radio buttons for emoji style preference (#39126)
This commit is contained in:
@@ -51,17 +51,16 @@
|
|||||||
label_method: ->(contrast) { I18n.t("contrast.#{contrast}", default: contrast) },
|
label_method: ->(contrast) { I18n.t("contrast.#{contrast}", default: contrast) },
|
||||||
wrapper: :with_label,
|
wrapper: :with_label,
|
||||||
required: false
|
required: false
|
||||||
|
.input.horizontal-options
|
||||||
.fields-group
|
= ff.input :'web.emoji_style',
|
||||||
= f.simple_fields_for :settings, current_user.settings do |ff|
|
as: :radio_buttons,
|
||||||
= ff.input :'web.emoji_style',
|
collection: user_settings_collection('web.emoji_style'),
|
||||||
collection: user_settings_collection('web.emoji_style'),
|
include_blank: false,
|
||||||
include_blank: false,
|
hint: I18n.t('simple_form.hints.defaults.setting_emoji_style'),
|
||||||
hint: I18n.t('simple_form.hints.defaults.setting_emoji_style'),
|
label: I18n.t('simple_form.labels.defaults.setting_emoji_style'),
|
||||||
label: I18n.t('simple_form.labels.defaults.setting_emoji_style'),
|
label_method: ->(emoji_style) { I18n.t("emoji_styles.#{emoji_style}", default: emoji_style) },
|
||||||
label_method: ->(emoji_style) { I18n.t("emoji_styles.#{emoji_style}", default: emoji_style) },
|
wrapper: :with_label,
|
||||||
wrapper: :with_label,
|
required: false
|
||||||
required: false
|
|
||||||
|
|
||||||
- unless I18n.locale == :en
|
- unless I18n.locale == :en
|
||||||
.flash-message.translation-prompt
|
.flash-message.translation-prompt
|
||||||
|
|||||||
Reference in New Issue
Block a user