Added description to custom option in notification dropdown
Always shows the custom option in the dropdown
This commit is contained in:
parent
89a2c8730b
commit
24f5f071dc
2 changed files with 8 additions and 6 deletions
|
@ -34,7 +34,7 @@ module NotificationsHelper
|
|||
def notification_description(level)
|
||||
case level.to_sym
|
||||
when :participating
|
||||
'You will only receive notifications from related resources'
|
||||
'You will only receive notifications for threads you have participated in'
|
||||
when :mention
|
||||
'You will receive notifications only for comments in which you were @mentioned'
|
||||
when :watch
|
||||
|
@ -43,6 +43,8 @@ module NotificationsHelper
|
|||
'You will not get any notifications via email'
|
||||
when :global
|
||||
'Use your global notification setting'
|
||||
when :custom
|
||||
'You will only receive notifications for the events you choose'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
- NotificationSetting.levels.each do |level|
|
||||
- if level.first != "custom"
|
||||
= notification_list_item(level.first, @notification_setting)
|
||||
- unless @notification_setting.custom?
|
||||
%li.divider
|
||||
%li
|
||||
%a.update-notification{ href: "#", role: "button", data: { toggle: "modal", target: "#custom-notifications-modal", notification_level: "custom", notification_title: "Custom" } }
|
||||
Custom
|
||||
%li.divider
|
||||
%li
|
||||
%a.update-notification{ href: "#", role: "button", data: { toggle: "modal", target: "#custom-notifications-modal", notification_level: "custom", notification_title: "Custom" } }
|
||||
%strong.dropdown-menu-inner-title Custom
|
||||
%span.dropdown-menu-inner-content= notification_description("custom")
|
||||
|
|
Loading…
Reference in a new issue