Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-25 00:19:47 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-25 00:19:47 +0400
commitd41d8ffb02fa74fd4571603548bd7e401ec99e0c (patch)
treeb70b500d914367efbb39fe822053a6c141276975 /app/views/commits/_text_file.html.haml
parent215a01f63ccdc085f75a48f6f7ab6f2b15b5852c (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.haml3
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 }