debian-mirror-gitlab/app/views/shared/notifications/_notification_dropdown.html.haml

13 lines
829 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
%ul.dropdown-menu.dropdown-menu-no-wrap.dropdown-menu-selectable.dropdown-menu-large{ role: "menu", class: [notifications_menu_identifier("dropdown", notification_setting)] }
2016-06-22 15:30:34 +05:30
- NotificationSetting.levels.each_key do |level|
- next if level == "custom"
- next if level == "global" && notification_setting.source.nil?
= notification_list_item(level, notification_setting)
%li.divider
%li
%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" } }
2019-09-04 21:01:54 +05:30
%strong.dropdown-menu-inner-title= s_('NotificationSetting|Custom')
2016-06-22 15:30:34 +05:30
%span.dropdown-menu-inner-content= notification_description("custom")