BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
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
...
@@ -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
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