about summary refs log tree commit diff
path: root/app/views/settings/preferences/notifications
diff options
context:
space:
mode:
authorSasha Sorokin <dafri.nochiterov8@gmail.com>2019-11-29 23:03:06 +0700
committerEugen Rochko <eugen@zeonfederated.com>2019-11-29 17:03:06 +0100
commitfd45f5bbaabcc83ae66e507414c657beba9b3ce5 (patch)
treeb4109458edde7de4b36b5e5e369629faddaad068 /app/views/settings/preferences/notifications
parenta690b3e470ed85cc6f3f8fa7aec57d04b60a4705 (diff)
Improve notifications page (#12497)
Currently notifications page seems a bit cluttered with no clear
separation between e-mail and filtering settings. This commit tries to
address them by adding clear separation with headers, hints and removing
continuously reused texts for events checkboxes.
Diffstat (limited to 'app/views/settings/preferences/notifications')
-rw-r--r--app/views/settings/preferences/notifications/show.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/settings/preferences/notifications/show.html.haml b/app/views/settings/preferences/notifications/show.html.haml
index f666ae4ff..f71b930e7 100644
--- a/app/views/settings/preferences/notifications/show.html.haml
+++ b/app/views/settings/preferences/notifications/show.html.haml
@@ -4,6 +4,10 @@
 = simple_form_for current_user, url: settings_preferences_notifications_path, html: { method: :put } do |f|
   = render 'shared/error_messages', object: current_user
 
+  %h4= t('notifications.email_events')
+
+  %p.hint = t('notifications.email_events_hint')
+
   .fields-group
     = f.simple_fields_for :notification_emails, hash_to_object(current_user.settings.notification_emails) do |ff|
       = ff.input :follow, as: :boolean, wrapper: :with_label
@@ -21,6 +25,8 @@
     = f.simple_fields_for :notification_emails, hash_to_object(current_user.settings.notification_emails) do |ff|
       = ff.input :digest, as: :boolean, wrapper: :with_label
 
+  %h4 = t('notifications.other_settings')
+
   .fields-group
     = f.simple_fields_for :interactions, hash_to_object(current_user.settings.interactions) do |ff|
       = ff.input :must_be_follower, as: :boolean, wrapper: :with_label