diff options
Diffstat (limited to 'app/views/projects/notes/_notes.html.haml')
-rw-r--r-- | app/views/projects/notes/_notes.html.haml | 11 |
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 |