about summary refs log tree commit diff
path: root/app/views/settings/preferences/filters/show.html.haml
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-16 21:48:42 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:18 -0500
commitaf0b6f445c597b41e861da9e77f39b4caed3e753 (patch)
treef8002bf3d903163ea1aa6507b1782c335c1651d3 /app/views/settings/preferences/filters/show.html.haml
parentf074595602e4efdd307780c942d95bb12afbffe6 (diff)
[Filters, Timelines] Add options to toggle filters for replies to and boosts of unfollowed accounts
Diffstat (limited to 'app/views/settings/preferences/filters/show.html.haml')
-rw-r--r--app/views/settings/preferences/filters/show.html.haml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/settings/preferences/filters/show.html.haml b/app/views/settings/preferences/filters/show.html.haml
new file mode 100644
index 000000000..f91010724
--- /dev/null
+++ b/app/views/settings/preferences/filters/show.html.haml
@@ -0,0 +1,22 @@
+- content_for :page_title do
+  = t('settings.preferences')
+
+- content_for :heading_actions do
+  = button_tag t('generic.save_changes'), class: 'button', form: 'edit_preferences'
+
+= simple_form_for current_user, url: settings_preferences_filters_path, html: { method: :put, id: 'edit_preferences' } do |f|
+  = render 'shared/error_messages', object: current_user
+
+  %h4= t 'preferences.filtering'
+
+  .fields-group
+    = f.input :setting_filter_to_unknown, as: :boolean, wrapper: :with_label
+    = f.input :setting_filter_from_unknown, as: :boolean, wrapper: :with_label
+
+  %h4= t 'preferences.public_timelines'
+
+  .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'
+
+  .actions
+    = f.button :button, t('generic.save_changes'), type: :submit