BigW Consortium Gitlab

Commit 8a6fb46d by Patricio Cano

Corrected `case` indentation to conform with Rubocop

parent dd2ffafe
...@@ -15,32 +15,32 @@ module NotificationsHelper ...@@ -15,32 +15,32 @@ module NotificationsHelper
def notification_list_item(notification_level) def notification_list_item(notification_level)
case notification_level case notification_level
when Notification::N_DISABLED when Notification::N_DISABLED
content_tag(:li) do content_tag(:li) do
link_to '#', class: 'update-notification', data: { notification_level: Notification::N_DISABLED } do link_to '#', class: 'update-notification', data: { notification_level: Notification::N_DISABLED } do
icon('microphone-slash fw', text: 'Disabled') icon('microphone-slash fw', text: 'Disabled')
end
end end
when Notification::N_PARTICIPATING end
content_tag(:li) do when Notification::N_PARTICIPATING
link_to '#', class: 'update-notification', data: { notification_level: Notification::N_PARTICIPATING } do content_tag(:li) do
icon('volume-up fw', text: 'Participating') link_to '#', class: 'update-notification', data: { notification_level: Notification::N_PARTICIPATING } do
end icon('volume-up fw', text: 'Participating')
end end
when Notification::N_WATCH end
content_tag(:li) do when Notification::N_WATCH
link_to '#', class: 'update-notification', data: { notification_level: Notification::N_WATCH } do content_tag(:li) do
icon('globe fw', text: 'Watch') link_to '#', class: 'update-notification', data: { notification_level: Notification::N_WATCH } do
end icon('globe fw', text: 'Watch')
end end
when Notification::N_MENTION end
content_tag(:li) do when Notification::N_MENTION
link_to '#', class: 'update-notification', data: { notification_level: Notification::N_MENTION } do content_tag(:li) do
icon('at fw', text: 'Mention') link_to '#', class: 'update-notification', data: { notification_level: Notification::N_MENTION } do
end icon('at fw', text: 'Mention')
end end
else end
# do nothing else
# do nothing
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment