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:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/notifications_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index 784b242e2b5..542a9ad2a70 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -29,7 +29,10 @@ module NotificationsHelper
end
def notification_icon(level)
- sprite_icon("#{notification_icon_class(level)}")
+ icon = notification_icon_class(level)
+ return '' unless icon
+
+ sprite_icon(icon)
end
def notification_title(level)