diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-25 00:19:47 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-25 00:19:47 +0400 |
commit | d41d8ffb02fa74fd4571603548bd7e401ec99e0c (patch) | |
tree | b70b500d914367efbb39fe822053a6c141276975 /app/views/commits/_text_file.html.haml | |
parent | 215a01f63ccdc085f75a48f6f7ab6f2b15b5852c (diff) |
Reply button, Comments for Merge Request diff
Diffstat (limited to 'app/views/commits/_text_file.html.haml')
-rw-r--r-- | app/views/commits/_text_file.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |