BigW Consortium Gitlab

_notes.html.haml 842 Bytes
Newer Older
1 2
%ul.notes{ data: { discussion_id: discussion.id } }
  = render partial: "projects/notes/note", collection: discussion.notes, as: :note
3

4 5 6 7
- if current_user
  .discussion-reply-holder
    - if discussion.diff_discussion?
      - line_type = local_assigns.fetch(:line_type, nil)
8

9 10 11
      .btn-group-justified.discussion-with-resolve-btn{ role: "group" }
        .btn-group{ role: "group" }
          = link_to_reply_discussion(discussion, line_type)
12
        = render "discussions/resolve_all", discussion: discussion
13
        - if discussion.for_merge_request?
14
          .btn-group.discussion-actions
15
            = render "discussions/new_issue_for_discussion", discussion: discussion, merge_request: discussion.noteable
16
            = render "discussions/jump_to_next", discussion: discussion
17 18
    - else
      = link_to_reply_discussion(discussion)