From f40c1ae07ed96e4629389867593ae5fbc6f226ae Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 15 Jan 2020 13:38:24 -0600 Subject: break up preferences with more page sections --- app/views/settings/preferences/show.html.haml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'app/views/settings') diff --git a/app/views/settings/preferences/show.html.haml b/app/views/settings/preferences/show.html.haml index 3d371c14a..d65fc46e7 100644 --- a/app/views/settings/preferences/show.html.haml +++ b/app/views/settings/preferences/show.html.haml @@ -110,6 +110,8 @@ = f.input :setting_show_cursor, as: :boolean, wrapper: :with_label = f.input :setting_force_lowercase, as: :boolean, wrapper: :with_label + %hr/ + .fields-group = f.input :setting_hide_mascot, as: :boolean, wrapper: :with_label = f.input :setting_hide_replies_muted, as: :boolean, wrapper: :with_label @@ -120,22 +122,28 @@ = f.input :setting_hide_mntions_blocker, as: :boolean, wrapper: :with_label = f.input :setting_hide_mntions_packm8, as: :boolean, wrapper: :with_label + %hr/ + .fields-group + = f.input :setting_aggregate_reblogs, as: :boolean, wrapper: :with_label = f.input :setting_advanced_layout, as: :boolean, wrapper: :with_label + %hr/ + .fields-group = f.input :setting_unfollow_modal, as: :boolean, wrapper: :with_label = f.input :setting_boost_modal, as: :boolean, wrapper: :with_label = f.input :setting_favourite_modal, as: :boolean, wrapper: :with_label = f.input :setting_delete_modal, as: :boolean, wrapper: :with_label - .fields-group - = f.input :setting_aggregate_reblogs, as: :boolean, wrapper: :with_label + %hr/ .fields-group = f.input :setting_display_media, collection: ['default', 'show_all', 'hide_all'], wrapper: :with_label, include_blank: false, label_method: lambda { |item| safe_join([t("simple_form.labels.defaults.setting_display_media_#{item}"), content_tag(:span, t("simple_form.hints.defaults.setting_display_media_#{item}"), class: 'hint')]) }, required: false, as: :radio_buttons, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li' = f.input :setting_expand_spoilers, as: :boolean, wrapper: :with_label + %hr/ + .fields-row#settings_languages .fields-group.fields-row__column.fields-row__column-6 = f.input :locale, collection: I18n.available_locales, wrapper: :with_label, include_blank: false, label_method: lambda { |locale| human_locale(locale) }, selected: I18n.locale @@ -145,5 +153,7 @@ .fields-group = f.input :chosen_languages, collection: filterable_languages.sort, wrapper: :with_block_label, include_blank: false, label_method: lambda { |locale| human_locale(locale) }, required: false, as: :check_boxes, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li' + %hr/ + .actions = f.button :button, t('generic.save_changes'), type: :submit -- cgit