Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/notes/_notes.html.haml')
-rw-r--r--app/views/notes/_notes.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/notes/_notes.html.haml b/app/views/notes/_notes.html.haml
new file mode 100644
index 00000000000..457bb8db763
--- /dev/null
+++ b/app/views/notes/_notes.html.haml
@@ -0,0 +1,14 @@
+%ul#notes-list
+ - @notes.each do |note|
+ = render :partial => "notes/show", :locals => {:note => note}
+
+%br
+%br
+- if can? current_user, :write_note, @project
+ = render "notes/form"
+
+:javascript
+ $('.delete-note').live('ajax:success', function() {
+ $(this).closest('li').fadeOut(); });
+
+