diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-15 13:38:24 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-15 13:38:24 -0600 |
commit | f40c1ae07ed96e4629389867593ae5fbc6f226ae (patch) | |
tree | c0a4f7847d4ef0c2e5dc9f815cf4676919291f0a /app | |
parent | 5d600cc67098c9097f178d092a3df30f18113165 (diff) |
break up preferences with more page sections
Diffstat (limited to 'app')
-rw-r--r-- | app/views/settings/preferences/show.html.haml | 14 |
1 files changed, 12 insertions, 2 deletions
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 |