summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
diff options
context:
space:
mode:
authorIllya Klymov <xanf@xanf.me>2019-04-19 13:02:35 +0000
committerStan Hu <stanhu@gmail.com>2019-04-19 13:02:35 +0000
commit6ea92ef1a01929e8a311e2eb56d2b298bc4db1a8 (patch)
treefacec66dc894043840f595f9881d7251a303e1db /app/helpers/notifications_helper.rb
parent48b025d188420b46bfd0df79f5c1f1bdde65c138 (diff)
downloadgitlab-ce-6ea92ef1a01929e8a311e2eb56d2b298bc4db1a8.tar.gz
Improvements to Project overview UI
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r--app/helpers/notifications_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index 5318ab4ddef..a7ce7667916 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -93,4 +93,11 @@ module NotificationsHelper
s_(event.to_s.humanize)
end
end
+
+ def notification_setting_icon(notification_setting)
+ sprite_icon(
+ notification_setting.disabled? ? "notifications-off" : "notifications",
+ css_class: "icon notifications-icon js-notifications-icon"
+ )
+ end
end