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/projects/notes/_notes.html.haml')
-rw-r--r--app/views/projects/notes/_notes.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/projects/notes/_notes.html.haml b/app/views/projects/notes/_notes.html.haml
new file mode 100644
index 00000000000..ac8901fe704
--- /dev/null
+++ b/app/views/projects/notes/_notes.html.haml
@@ -0,0 +1,11 @@
+- if @discussions.present?
+ - @discussions.each do |discussion_notes|
+ - note = discussion_notes.first
+ - if note_for_main_target?(note)
+ = render discussion_notes
+ - else
+ = render 'discussion', discussion_notes: discussion_notes
+- else
+ - @notes.each do |note|
+ - next unless note.author
+ = render note