debian-mirror-gitlab/app/views/projects/notes/_notes.html.haml

11 lines
407 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- if @discussions.present?
- @discussions.each do |discussion_notes|
- note = discussion_notes.first
- if note_for_main_target?(note)
2016-06-02 11:05:42 +05:30
= render partial: "projects/notes/note", object: note, as: :note
2014-09-02 18:07:02 +05:30
- else
= render 'projects/notes/discussion', discussion_notes: discussion_notes
- else
- @notes.each do |note|
2016-06-02 11:05:42 +05:30
= render partial: "projects/notes/note", object: note, as: :note