summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-01-28 03:32:48 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-01-28 03:48:18 -0500
commit4e7a4cd95696746bcab78a4f9ec071dd4089397a (patch)
treee7abebe5edd248e6369a5eb5ea4e4b28fcf8f6ec /app/helpers/notifications_helper.rb
parentfe831dcd6f4af535abba1a9dc350c4d8a0f809e9 (diff)
downloadgitlab-ce-4e7a4cd95696746bcab78a4f9ec071dd4089397a.tar.gz
Use `icon` helper method in helper modules
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r--app/helpers/notifications_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index bad380e98a8..f771fe761ef 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -1,13 +1,13 @@
module NotificationsHelper
def notification_icon(notification)
if notification.disabled?
- content_tag :i, nil, class: 'fa fa-volume-off ns-mute'
+ icon('volume-off', class: 'ns-mute')
elsif notification.participating?
- content_tag :i, nil, class: 'fa fa-volume-down ns-part'
+ icon('volume-down', class: 'ns-part')
elsif notification.watch?
- content_tag :i, nil, class: 'fa fa-volume-up ns-watch'
+ icon('volume-up', class: 'ns-watch')
else
- content_tag :i, nil, class: 'fa fa-circle-o ns-default'
+ icon('circle-o', class: 'ns-default')
end
end
end