Fixed notification level list item helper.
This commit is contained in:
parent
84508c40b7
commit
ab56718feb
1 changed files with 8 additions and 12 deletions
|
@ -17,27 +17,23 @@ module NotificationsHelper
|
||||||
case notification_level
|
case notification_level
|
||||||
when Notification::N_DISABLED
|
when Notification::N_DISABLED
|
||||||
content_tag(:li) do
|
content_tag(:li) do
|
||||||
icon('microphone-slash') do
|
icon('microphone-slash')
|
||||||
'Disabled'
|
'Disabled'
|
||||||
end
|
|
||||||
end
|
end
|
||||||
when Notification::N_PARTICIPATING
|
when Notification::N_PARTICIPATING
|
||||||
content_tag(:li) do
|
content_tag(:li) do
|
||||||
icon('volume-up') do
|
icon('volume-up')
|
||||||
'Participating'
|
'Participating'
|
||||||
end
|
|
||||||
end
|
end
|
||||||
when Notification::N_WATCH
|
when Notification::N_WATCH
|
||||||
content_tag(:li) do
|
content_tag(:li) do
|
||||||
icon('globe') do
|
icon('globe')
|
||||||
'Watch'
|
'Watch'
|
||||||
end
|
|
||||||
end
|
end
|
||||||
when Notification::N_MENTION
|
when Notification::N_MENTION
|
||||||
content_tag(:li) do
|
content_tag(:li) do
|
||||||
icon('at') do
|
icon('at')
|
||||||
'Mention'
|
'Mention'
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
# do nothing
|
# do nothing
|
||||||
|
|
Loading…
Reference in a new issue