mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 11:21:36 +01:00
Fix lint issue in glitch-soc-only setting form
This commit is contained in:
parent
63acdebc5d
commit
5dcb8d92c3
1 changed files with 11 additions and 1 deletions
|
@ -45,7 +45,17 @@
|
||||||
wrapper: :with_label
|
wrapper: :with_label
|
||||||
|
|
||||||
.fields-group
|
.fields-group
|
||||||
= ff.input :default_content_type, collection: ['text/plain', 'text/markdown', 'text/html'], wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_default_content_type'), include_blank: false, label_method: ->(item) { safe_join([t("simple_form.labels.defaults.setting_default_content_type_#{item.split('/')[1]}"), content_tag(:span, t("simple_form.hints.defaults.setting_default_content_type_#{item.split('/')[1]}"), class: 'hint')]) }, required: false, as: :radio_buttons, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li', glitch_only: true
|
= ff.input :default_content_type,
|
||||||
|
collection: %w(text/plain text/markdown text/html),
|
||||||
|
wrapper: :with_label,
|
||||||
|
label: I18n.t('simple_form.labels.defaults.setting_default_content_type'),
|
||||||
|
include_blank: false,
|
||||||
|
label_method: ->(item) { safe_join([t("simple_form.labels.defaults.setting_default_content_type_#{item.split('/')[1]}"), content_tag(:span, t("simple_form.hints.defaults.setting_default_content_type_#{item.split('/')[1]}"), class: 'hint')]) },
|
||||||
|
required: false,
|
||||||
|
as: :radio_buttons,
|
||||||
|
collection_wrapper_tag: 'ul',
|
||||||
|
item_wrapper_tag: 'li',
|
||||||
|
glitch_only: true
|
||||||
|
|
||||||
%h4= t 'preferences.public_timelines'
|
%h4= t 'preferences.public_timelines'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue