Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8a6fb46d
Commit
8a6fb46d
authored
Sep 14, 2015
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected `case` indentation to conform with Rubocop
parent
dd2ffafe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
app/helpers/notifications_helper.rb
app/helpers/notifications_helper.rb
+22
-22
No files found.
app/helpers/notifications_helper.rb
View file @
8a6fb46d
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment