summaryrefslogtreecommitdiff
path: root/app/views/projects/notes/discussions/_active.html.haml
blob: 0ea8862a684d13b3f021cdd06a3c51b45f236b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- note = discussion_notes.first
.discussion.js-toggle-container{ class: note.discussion_id }
  .discussion-header
    = link_to_member(@project, note.author, avatar: false)
    .inline.discussion-headline-light
      = "#{note.author.to_reference} started a discussion"
      = link_to diffs_namespace_project_merge_request_path(note.project.namespace, note.project, note.noteable, anchor: note.line_code) do
        on the diff
      = time_ago_with_tooltip(note.created_at, placement: "bottom", html_class: "discussion_updated_ago")
    .discussion-actions
      = link_to "#", class: "discussion-action-button discussion-toggle-button js-toggle-button" do
        %i.fa.fa-chevron-up
        Show/hide discussion

  .discussion-body.js-toggle-content
    = render "projects/notes/discussions/diff", discussion_notes: discussion_notes, note: note