summaryrefslogtreecommitdiff
path: root/app/views/projects/notes/discussions/_outdated.html.haml
blob: 51ee0cc9d3f36999b71803ac1a74accf8f36d69b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- note = discussion_notes.first
.discussion.js-toggle-container{ class: note.discussion_id }
  .discussion-header
    .discussion-actions
      = link_to "#", class: "js-toggle-button" do
        %i.icon-chevron-down
        Show/hide discussion
    = image_tag avatar_icon(note.author_email), class: "avatar s32"
    %div
      = link_to_member(@project, note.author, avatar: false)
      started a discussion on the
      %strong outdated diff
    %div
      - last_note = discussion_notes.last
      last updated by
      = link_to_member(@project, last_note.author, avatar: false)
      %span.discussion-last-update
        #{time_ago_with_tooltip(last_note.updated_at, 'bottom', 'discussion_updated_ago')}
  .discussion-body.js-toggle-content.hide
    = render "projects/notes/discussion_diff", discussion_notes: discussion_notes, note: note