diff options
author | Illya Klymov <xanf@xanf.me> | 2019-04-19 13:02:35 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-04-19 13:02:35 +0000 |
commit | 6ea92ef1a01929e8a311e2eb56d2b298bc4db1a8 (patch) | |
tree | facec66dc894043840f595f9881d7251a303e1db /app/helpers/notifications_helper.rb | |
parent | 48b025d188420b46bfd0df79f5c1f1bdde65c138 (diff) | |
download | gitlab-ce-6ea92ef1a01929e8a311e2eb56d2b298bc4db1a8.tar.gz |
Improvements to Project overview UI
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r-- | app/helpers/notifications_helper.rb | 7 |
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 |