2016-12-10 01:21:47 -05:00
|
|
|
%ul.dropdown-menu.dropdown-menu-no-wrap.dropdown-menu-selectable.dropdown-menu-large{ role: "menu", class: [notifications_menu_identifier("dropdown", notification_setting)] }
|
2016-06-14 14:36:36 -04:00
|
|
|
- NotificationSetting.levels.each_key do |level|
|
|
|
|
- next if level == "custom"
|
|
|
|
- next if level == "global" && notification_setting.source.nil?
|
|
|
|
|
|
|
|
= notification_list_item(level, notification_setting)
|
|
|
|
|
2016-06-17 09:29:43 -04:00
|
|
|
%li.divider
|
|
|
|
%li
|
2016-06-17 18:57:59 -04:00
|
|
|
%a.update-notification{ href: "#", role: "button", class: ("is-active" if notification_setting.custom?), data: { toggle: "modal", target: "#" + notifications_menu_identifier("modal", notification_setting), notification_level: "custom", notification_title: "Custom" } }
|
2016-06-17 09:29:43 -04:00
|
|
|
%strong.dropdown-menu-inner-title Custom
|
|
|
|
%span.dropdown-menu-inner-content= notification_description("custom")
|