summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-14 17:26:32 +0100
committerPhil Hughes <me@iamphill.com>2016-04-14 17:26:32 +0100
commit038e623042af614fb739f49a9302ec42cab9812a (patch)
treefcd9a0a2e713858d6ae6c590b1e50911698e3049 /app
parent44f3f42bac143f87d756ed38fa7142f98c7be90d (diff)
downloadgitlab-ce-038e623042af614fb739f49a9302ec42cab9812a.tar.gz
Fixed testsdiscussion-notes
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/notes/_discussion.html.haml23
-rw-r--r--app/views/projects/notes/_notes.html.haml3
2 files changed, 13 insertions, 13 deletions
diff --git a/app/views/projects/notes/_discussion.html.haml b/app/views/projects/notes/_discussion.html.haml
index b66fead09b7..572b00a38c7 100644
--- a/app/views/projects/notes/_discussion.html.haml
+++ b/app/views/projects/notes/_discussion.html.haml
@@ -1,12 +1,13 @@
- note = discussion_notes.first
-.timeline-entry-inner
- .timeline-icon
- = link_to user_path(note.author) do
- = image_tag avatar_icon(note.author_email), class: "avatar s40"
- .timeline-content
- - if note.for_merge_request?
- - (active_notes, outdated_notes) = discussion_notes.partition(&:active?)
- = render "projects/notes/discussions/active", discussion_notes: active_notes if active_notes.length > 0
- = render "projects/notes/discussions/outdated", discussion_notes: outdated_notes if outdated_notes.length > 0
- - else
- = render "projects/notes/discussions/commit", discussion_notes: discussion_notes
+%li.note.note-discussion.timeline-entry
+ .timeline-entry-inner
+ .timeline-icon
+ = link_to user_path(note.author) do
+ = image_tag avatar_icon(note.author_email), class: "avatar s40"
+ .timeline-content
+ - if note.for_merge_request?
+ - (active_notes, outdated_notes) = discussion_notes.partition(&:active?)
+ = render "projects/notes/discussions/active", discussion_notes: active_notes if active_notes.length > 0
+ = render "projects/notes/discussions/outdated", discussion_notes: outdated_notes if outdated_notes.length > 0
+ - else
+ = render "projects/notes/discussions/commit", discussion_notes: discussion_notes
diff --git a/app/views/projects/notes/_notes.html.haml b/app/views/projects/notes/_notes.html.haml
index 4eeaf70e987..62db86fb181 100644
--- a/app/views/projects/notes/_notes.html.haml
+++ b/app/views/projects/notes/_notes.html.haml
@@ -6,8 +6,7 @@
= render discussion_notes
- else
- %li.note.note-discussion.timeline-entry
- = render 'projects/notes/discussion', discussion_notes: discussion_notes
+ = render 'projects/notes/discussion', discussion_notes: discussion_notes
- else
- @notes.each do |note|
- next unless note.author