From d41d8ffb02fa74fd4571603548bd7e401ec99e0c Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 24 Feb 2012 22:19:47 +0200 Subject: Reply button, Comments for Merge Request diff --- app/views/commits/_text_file.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/commits/_text_file.html.haml') diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml index a9b3f65aa81..441bdf2c210 100644 --- a/app/views/commits/_text_file.html.haml +++ b/app/views/commits/_text_file.html.haml @@ -16,6 +16,7 @@ - if @comments_allowed - comments = @line_notes.select { |n| n.line_code == line_code }.sort_by(&:created_at).reverse - unless comments.empty? - - comments.each do |note| + - comments.each_with_index do |note, i| + = render "notes/reply_button", :line_code => line_code if i.zero? = render "notes/per_line_show", :note => note - @line_notes.reject!{ |n| n == note } -- cgit v1.2.3