summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r--app/helpers/notifications_helper.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index a0e91a63d2d..8816cc5d164 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -22,16 +22,12 @@ module NotificationsHelper
def notification_title(level)
case level.to_sym
- when :disabled
- 'Disabled'
when :participating
'Participate'
- when :watch
- 'Watch'
when :mention
'On mention'
- when :global
- 'Global'
+ else
+ level.to_s.titlecase
end
end
@@ -50,10 +46,6 @@ module NotificationsHelper
end
end
- def notification_label(setting)
- notification_title(setting.level)
- end
-
def active_level_for(setting, level)
'active' if setting.level == level
end