debian-mirror-gitlab/app/views/projects/buttons/_notifications.html.haml

12 lines
702 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- if @notification_setting
= form_for @notification_setting, url: namespace_project_notification_setting_path(@project.namespace.becomes(Namespace), @project), method: :patch, remote: true, html: { class: 'inline', id: 'notification-form' } do |f|
= f.hidden_field :level
2015-10-24 18:46:33 +05:30
%span.dropdown
2015-11-26 14:37:03 +05:30
%a.dropdown-new.btn.notifications-btn#notifications-button{href: '#', "data-toggle" => "dropdown"}
2015-10-24 18:46:33 +05:30
= icon('bell')
2016-06-02 11:05:42 +05:30
= notification_title(@notification_setting.level)
2015-10-24 18:46:33 +05:30
= icon('angle-down')
%ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
2016-06-02 11:05:42 +05:30
- NotificationSetting.levels.each do |level|
= notification_list_item(level.first, @notification_setting)