Commit 038e6230 authored by Phil Hughes's avatar Phil Hughes

Fixed tests

parent 44f3f42b
- note = discussion_notes.first - note = discussion_notes.first
.timeline-entry-inner %li.note.note-discussion.timeline-entry
.timeline-icon .timeline-entry-inner
= link_to user_path(note.author) do .timeline-icon
= image_tag avatar_icon(note.author_email), class: "avatar s40" = link_to user_path(note.author) do
.timeline-content = image_tag avatar_icon(note.author_email), class: "avatar s40"
- if note.for_merge_request? .timeline-content
- (active_notes, outdated_notes) = discussion_notes.partition(&:active?) - if note.for_merge_request?
= render "projects/notes/discussions/active", discussion_notes: active_notes if active_notes.length > 0 - (active_notes, outdated_notes) = discussion_notes.partition(&:active?)
= render "projects/notes/discussions/outdated", discussion_notes: outdated_notes if outdated_notes.length > 0 = render "projects/notes/discussions/active", discussion_notes: active_notes if active_notes.length > 0
- else = render "projects/notes/discussions/outdated", discussion_notes: outdated_notes if outdated_notes.length > 0
= render "projects/notes/discussions/commit", discussion_notes: discussion_notes - else
= render "projects/notes/discussions/commit", discussion_notes: discussion_notes
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
= render discussion_notes = render discussion_notes
- else - else
%li.note.note-discussion.timeline-entry = render 'projects/notes/discussion', discussion_notes: discussion_notes
= render 'projects/notes/discussion', discussion_notes: discussion_notes
- else - else
- @notes.each do |note| - @notes.each do |note|
- next unless note.author - next unless note.author
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment