BigW Consortium Gitlab

_active.html.haml 962 Bytes
Newer Older
1 2 3 4 5
- note = discussion_notes.first
.discussion.js-toggle-container{ class: note.discussion_id }
  .discussion-header
    .discussion-actions
      = link_to "#", class: "js-toggle-button" do
6
        %i.fa.fa-chevron-up
7 8 9 10
        Show/hide discussion
    %div
      = link_to_member(@project, note.author, avatar: false)
      started a discussion
Vinnie Okada committed
11
      = link_to diffs_namespace_project_merge_request_path(note.project.namespace, note.project, note.noteable, anchor: note.line_code) do
12 13 14 15 16
        %strong on the diff
    .last-update.hide.js-toggle-content
      - last_note = discussion_notes.last
      last updated by
      = link_to_member(@project, last_note.author, avatar: false)
17

18
      %span.discussion-last-update
19 20
        #{time_ago_with_tooltip(last_note.updated_at, placement: 'bottom', html_class: 'discussion_updated_ago')}

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