2017-08-17 22:00:37 +05:30
|
|
|
.discussion-notes
|
|
|
|
%ul.notes{ data: { discussion_id: discussion.id } }
|
|
|
|
= render partial: "shared/notes/note", collection: discussion.notes, as: :note
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.flash-container
|
|
|
|
|
|
|
|
.discussion-reply-holder
|
|
|
|
- if can_create_note?
|
2017-08-17 22:00:37 +05:30
|
|
|
- if discussion.potentially_resolvable?
|
|
|
|
- line_type = local_assigns.fetch(:line_type, nil)
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.btn-group-justified.discussion-with-resolve-btn{ role: "group" }
|
|
|
|
.btn-group{ role: "group" }
|
|
|
|
= link_to_reply_discussion(discussion, line_type)
|
|
|
|
|
|
|
|
= render "discussions/resolve_all", discussion: discussion
|
|
|
|
|
|
|
|
.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-09-10 17:25:29 +05:30
|
|
|
- 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
|