2017-03-30 22:34:14 -04:00
|
|
|
.discussion-notes
|
|
|
|
%ul.notes{ data: { discussion_id: discussion.id } }
|
2017-04-27 06:41:26 -04:00
|
|
|
= render partial: "shared/notes/note", collection: discussion.notes, as: :note
|
2016-07-26 00:49:53 -04:00
|
|
|
|
2017-05-26 15:01:42 -04:00
|
|
|
.flash-container
|
|
|
|
|
|
|
|
.discussion-reply-holder
|
|
|
|
- if can_create_note?
|
2017-03-30 22:34:14 -04:00
|
|
|
- if discussion.potentially_resolvable?
|
|
|
|
- line_type = local_assigns.fetch(:line_type, nil)
|
2016-07-28 21:14:00 -04:00
|
|
|
|
2017-03-30 22:34:14 -04:00
|
|
|
.btn-group-justified.discussion-with-resolve-btn{ role: "group" }
|
|
|
|
.btn-group{ role: "group" }
|
|
|
|
= link_to_reply_discussion(discussion, line_type)
|
2017-03-09 20:29:11 -05:00
|
|
|
|
2017-03-30 22:34:14 -04:00
|
|
|
= render "discussions/resolve_all", discussion: discussion
|
2017-03-21 11:28:47 -04:00
|
|
|
|
2017-03-30 22:34:14 -04:00
|
|
|
.btn-group.discussion-actions
|
|
|
|
= render "discussions/new_issue_for_discussion", discussion: discussion, merge_request: discussion.noteable
|
|
|
|
= render "discussions/jump_to_next", discussion: discussion
|
|
|
|
- else
|
|
|
|
= link_to_reply_discussion(discussion)
|
2017-05-26 15:01:42 -04:00
|
|
|
- elsif !current_user
|
|
|
|
.disabled-comment.text-center
|
|
|
|
Please
|
|
|
|
= link_to "register", new_session_path(:user, redirect_to_referer: 'yes')
|
|
|
|
or
|
|
|
|
= link_to "sign in", new_session_path(:user, redirect_to_referer: 'yes')
|
|
|
|
to reply
|