Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIllya Klymov <xanf@xanf.me>2019-04-19 16:02:35 +0300
committerStan Hu <stanhu@gmail.com>2019-04-19 16:02:35 +0300
commit6ea92ef1a01929e8a311e2eb56d2b298bc4db1a8 (patch)
treefacec66dc894043840f595f9881d7251a303e1db /app/helpers
parent48b025d188420b46bfd0df79f5c1f1bdde65c138 (diff)
Improvements to Project overview UI
Diffstat (limited to 'app/helpers')
-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