debian-mirror-gitlab/app/views/projects/notes/discussions/_active.html.haml

23 lines
962 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- note = discussion_notes.first
.discussion.js-toggle-container{ class: note.discussion_id }
.discussion-header
.discussion-actions
= link_to "#", class: "js-toggle-button" do
2015-04-26 12:48:37 +05:30
%i.fa.fa-chevron-up
2014-09-02 18:07:02 +05:30
Show/hide discussion
%div
= link_to_member(@project, note.author, avatar: false)
started a discussion
2015-04-26 12:48:37 +05:30
= link_to diffs_namespace_project_merge_request_path(note.project.namespace, note.project, note.noteable, anchor: note.line_code) do
2014-09-02 18:07:02 +05:30
%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)
2015-09-11 14:41:01 +05:30
2014-09-02 18:07:02 +05:30
%span.discussion-last-update
2015-09-11 14:41:01 +05:30
#{time_ago_with_tooltip(last_note.updated_at, placement: 'bottom', html_class: 'discussion_updated_ago')}
2014-09-02 18:07:02 +05:30
.discussion-body.js-toggle-content
= render "projects/notes/discussions/diff", discussion_notes: discussion_notes, note: note