summaryrefslogtreecommitdiff
path: root/app/views/shared/notes/_notes.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/notes/_notes.html.haml')
-rw-r--r--app/views/shared/notes/_notes.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/shared/notes/_notes.html.haml b/app/views/shared/notes/_notes.html.haml
new file mode 100644
index 00000000000..cfdfeeb9e97
--- /dev/null
+++ b/app/views/shared/notes/_notes.html.haml
@@ -0,0 +1,8 @@
+- if defined?(@discussions)
+ - @discussions.each do |discussion|
+ - if discussion.individual_note?
+ = render partial: "shared/notes/note", collection: discussion.notes, as: :note
+ - else
+ = render 'discussions/discussion', discussion: discussion
+- else
+ = render partial: "shared/notes/note", collection: @notes, as: :note