summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2015-09-14 19:40:45 -0500
committerPatricio Cano <suprnova32@gmail.com>2015-09-14 19:40:45 -0500
commit8a6fb46dff970d599860b06a6c9105c503cbb89c (patch)
tree1734a996d3141681c33afe268c415730d7967b08 /app/helpers/notifications_helper.rb
parentdd2ffafea4c4cd0a2c9ccebe6d52e00afe371535 (diff)
downloadgitlab-ce-8a6fb46dff970d599860b06a6c9105c503cbb89c.tar.gz
Corrected `case` indentation to conform with Rubocop
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r--app/helpers/notifications_helper.rb44
1 files changed, 22 insertions, 22 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index 0e4fd039831..829993fd77f 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -15,32 +15,32 @@ module NotificationsHelper
def notification_list_item(notification_level)
case notification_level
- when Notification::N_DISABLED
- content_tag(:li) do
- link_to '#', class: 'update-notification', data: { notification_level: Notification::N_DISABLED } do
- icon('microphone-slash fw', text: 'Disabled')
- end
+ when Notification::N_DISABLED
+ content_tag(:li) do
+ link_to '#', class: 'update-notification', data: { notification_level: Notification::N_DISABLED } do
+ icon('microphone-slash fw', text: 'Disabled')
end
- when Notification::N_PARTICIPATING
- content_tag(:li) do
- link_to '#', class: 'update-notification', data: { notification_level: Notification::N_PARTICIPATING } do
- icon('volume-up fw', text: 'Participating')
- end
+ end
+ when Notification::N_PARTICIPATING
+ content_tag(:li) do
+ link_to '#', class: 'update-notification', data: { notification_level: Notification::N_PARTICIPATING } do
+ icon('volume-up fw', text: 'Participating')
end
- when Notification::N_WATCH
- content_tag(:li) do
- link_to '#', class: 'update-notification', data: { notification_level: Notification::N_WATCH } do
- icon('globe fw', text: 'Watch')
- end
+ end
+ when Notification::N_WATCH
+ content_tag(:li) do
+ link_to '#', class: 'update-notification', data: { notification_level: Notification::N_WATCH } do
+ icon('globe fw', text: 'Watch')
end
- when Notification::N_MENTION
- content_tag(:li) do
- link_to '#', class: 'update-notification', data: { notification_level: Notification::N_MENTION } do
- icon('at fw', text: 'Mention')
- end
+ end
+ when Notification::N_MENTION
+ content_tag(:li) do
+ link_to '#', class: 'update-notification', data: { notification_level: Notification::N_MENTION } do
+ icon('at fw', text: 'Mention')
end
- else
- # do nothing
+ end
+ else
+ # do nothing
end
end
end