diff options
author | Patricio Cano <suprnova32@gmail.com> | 2015-09-14 19:27:54 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2015-09-14 19:27:54 -0500 |
commit | adcae6ebd597c731b22a748b882b668e6301763f (patch) | |
tree | 59043f6fb2146dbb5a445b10f54c6016f5544697 /app/views/projects/buttons | |
parent | ab56718feb0e155ae889afe900a009594f8acfa1 (diff) | |
download | gitlab-ce-adcae6ebd597c731b22a748b882b668e6301763f.tar.gz |
Notification level can now be saved from within the project view.
Diffstat (limited to 'app/views/projects/buttons')
-rw-r--r-- | app/views/projects/buttons/_notifications.html.haml | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/app/views/projects/buttons/_notifications.html.haml b/app/views/projects/buttons/_notifications.html.haml index fb30868fc6b..76e462a8986 100644 --- a/app/views/projects/buttons/_notifications.html.haml +++ b/app/views/projects/buttons/_notifications.html.haml @@ -1,15 +1,12 @@ - if current_user and !@membership_id.nil? - %span.dropdown - = form_tag profile_notifications_path, method: :put, remote: true do - = hidden_field_tag :notification_type, 'project' - = hidden_field_tag :notification_id, @membership_id + = form_tag profile_notifications_path, method: :put, remote: true, class: 'inline-form', id: 'notification-form' do + = hidden_field_tag :notification_type, 'project' + = hidden_field_tag :notification_id, @membership_id + = hidden_field_tag :notification_level + %span.dropdown %a.dropdown-toggle.btn.btn-new{href: '#', "data-toggle" => "dropdown"} = icon('bell') Notifications - %ul.dropdown-menu.dropdown-menu-right.project-home-dropdown - - Notification.notification_levels.each do | level | - = notification_list_item(level) - - - - + %ul.dropdown-menu.dropdown-menu-right.project-home-dropdown + - Notification.notification_levels.each do |level| + = notification_list_item(level)
\ No newline at end of file |