summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDarby <darbsies@gmail.com>2015-09-14 16:37:11 -0700
committerDarby <darbsies@gmail.com>2015-09-14 16:37:11 -0700
commit84508c40b7a132b775717d2aeef313d4e370a2b9 (patch)
treed8ce8d5e739abf5d9f7f605e2c2043640fe4ae9b /app/views
parenta81ce718c772672706da33848670149dd577ae79 (diff)
downloadgitlab-ce-84508c40b7a132b775717d2aeef313d4e370a2b9.tar.gz
PAtrially working notification button
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/_home_panel.html.haml2
-rw-r--r--app/views/projects/buttons/_notifications.html.haml15
2 files changed, 17 insertions, 0 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index b93036e78e6..67a00b4ebef 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -25,6 +25,8 @@
= icon('download fw')
Download
+ = render 'projects/buttons/notifications'
+
= render 'projects/buttons/dropdown'
= render "shared/clone_panel"
diff --git a/app/views/projects/buttons/_notifications.html.haml b/app/views/projects/buttons/_notifications.html.haml
new file mode 100644
index 00000000000..fb30868fc6b
--- /dev/null
+++ b/app/views/projects/buttons/_notifications.html.haml
@@ -0,0 +1,15 @@
+- 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
+ %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)
+
+
+
+