2016-07-28 21:14:00 -04:00
|
|
|
%ul.notes{ data: { discussion_id: discussion.id } }
|
|
|
|
= render partial: "projects/notes/note", collection: discussion.notes, as: :note
|
2016-07-26 00:49:53 -04:00
|
|
|
|
2016-08-01 05:06:31 -04:00
|
|
|
- if current_user
|
|
|
|
.discussion-reply-holder
|
|
|
|
- if discussion.diff_discussion?
|
|
|
|
- line_type = local_assigns.fetch(:line_type, nil)
|
2016-07-28 21:14:00 -04:00
|
|
|
|
2016-08-01 05:06:31 -04:00
|
|
|
.btn-group-justified.discussion-with-resolve-btn{ role: "group" }
|
|
|
|
.btn-group{ role: "group" }
|
|
|
|
= link_to_reply_discussion(discussion, line_type)
|
2016-07-28 21:14:00 -04:00
|
|
|
= render "discussions/resolve_all", discussion: discussion
|
2016-09-20 05:52:55 -04:00
|
|
|
- if discussion.for_merge_request?
|
2016-12-22 07:31:12 -05:00
|
|
|
.btn-group.discussion-actions
|
2017-02-27 04:23:36 -05:00
|
|
|
= render "discussions/new_issue_for_discussion", discussion: discussion, merge_request: discussion.noteable
|
2016-12-22 07:31:12 -05:00
|
|
|
= render "discussions/jump_to_next", discussion: discussion
|
2016-08-01 05:06:31 -04:00
|
|
|
- else
|
|
|
|
= link_to_reply_discussion(discussion)
|