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

26 lines
850 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- note_left = notes_left.present? ? notes_left.first : nil
- note_right = notes_right.present? ? notes_right.first : nil
2015-04-26 12:48:37 +05:30
2014-09-02 18:07:02 +05:30
%tr.notes_holder
2016-06-02 11:05:42 +05:30
- if note_left
2015-09-11 14:41:01 +05:30
%td.notes_line.old
%td.notes_content.parallel.old
2016-06-02 11:05:42 +05:30
%ul.notes{ data: { discussion_id: note_left.discussion_id } }
= render partial: "projects/notes/note", collection: notes_left, as: :note
2014-09-02 18:07:02 +05:30
2016-08-24 12:49:21 +05:30
= link_to_reply_discussion(note_left, 'old')
2014-09-02 18:07:02 +05:30
- else
2015-09-11 14:41:01 +05:30
%td.notes_line.old= ""
%td.notes_content.parallel.old= ""
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
- if note_right
2015-09-11 14:41:01 +05:30
%td.notes_line.new
%td.notes_content.parallel.new
2016-06-02 11:05:42 +05:30
%ul.notes{ data: { discussion_id: note_right.discussion_id } }
= render partial: "projects/notes/note", collection: notes_right, as: :note
2014-09-02 18:07:02 +05:30
2016-08-24 12:49:21 +05:30
= link_to_reply_discussion(note_right, 'new')
2014-09-02 18:07:02 +05:30
- else
2015-09-11 14:41:01 +05:30
%td.notes_line.new= ""
%td.notes_content.parallel.new= ""