2014-06-24 15:19:35 -04:00
|
|
|
- note = discussion_notes.first
|
|
|
|
.discussion.js-toggle-container{ class: note.discussion_id }
|
|
|
|
.discussion-header
|
|
|
|
.discussion-actions
|
|
|
|
= link_to "#", class: "js-toggle-button" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-chevron-up
|
2014-06-24 15:19:35 -04:00
|
|
|
Show/hide discussion
|
|
|
|
%div
|
|
|
|
= link_to_member(@project, note.author, avatar: false)
|
|
|
|
started a discussion
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to diffs_namespace_project_merge_request_path(note.project.namespace, note.project, note.noteable, anchor: note.line_code) do
|
2014-06-24 15:19:35 -04:00
|
|
|
%strong on the diff
|
|
|
|
.last-update.hide.js-toggle-content
|
|
|
|
- last_note = discussion_notes.last
|
|
|
|
last updated by
|
|
|
|
= link_to_member(@project, last_note.author, avatar: false)
|
2015-05-14 06:18:19 -04:00
|
|
|
|
2014-06-24 15:19:35 -04:00
|
|
|
%span.discussion-last-update
|
2015-06-17 14:04:14 -04:00
|
|
|
#{time_ago_with_tooltip(last_note.updated_at, placement: 'bottom', html_class: 'discussion_updated_ago')}
|
|
|
|
|
2014-06-24 15:19:35 -04:00
|
|
|
.discussion-body.js-toggle-content
|
2014-06-25 04:40:33 -04:00
|
|
|
= render "projects/notes/discussions/diff", discussion_notes: discussion_notes, note: note
|