summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-31 17:05:22 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-31 17:05:22 +0300
commit9f38cf5093f5141717cfa1b1c956ed8ec9135ebe (patch)
tree5ab2d50c2ef6af28e7668c7d6b6d94772fc449f4 /app/helpers/notifications_helper.rb
parentc4856e6f8dbc7b7db5cb01c340e211026dda03af (diff)
downloadgitlab-ce-9f38cf5093f5141717cfa1b1c956ed8ec9135ebe.tar.gz
Improve Notifications page. Much easier to find muted projects now
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r--app/helpers/notifications_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index 7342393a707..ae3402b2617 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -1,2 +1,13 @@
module NotificationsHelper
+ def notification_icon(notification)
+ if notification.disabled?
+ content_tag :i, nil, class: 'icon-circle cred'
+ elsif notification.participating?
+ content_tag :i, nil, class: 'icon-circle cblue'
+ elsif notification.watch?
+ content_tag :i, nil, class: 'icon-circle cgreen'
+ else
+ content_tag :i, nil, class: 'icon-circle-blank cblue'
+ end
+ end
end