BigW Consortium Gitlab

_notes.html.haml 1.11 KB
Newer Older
1 2
.discussion-notes
  %ul.notes{ data: { discussion_id: discussion.id } }
3
    = render partial: "shared/notes/note", collection: discussion.notes, as: :note
4

5 6 7 8
  .flash-container

  .discussion-reply-holder
    - if can_create_note?
9 10
      - if discussion.potentially_resolvable?
        - line_type = local_assigns.fetch(:line_type, nil)
11

12 13 14
        .btn-group-justified.discussion-with-resolve-btn{ role: "group" }
          .btn-group{ role: "group" }
            = link_to_reply_discussion(discussion, line_type)
15

16
          = render "discussions/resolve_all", discussion: discussion
Douwe Maan committed
17

18 19 20 21 22
          .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)
23 24 25 26 27 28 29
    - 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