summaryrefslogtreecommitdiff
path: root/app/controllers/commit_controller.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-29 15:55:37 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-03 22:51:55 +0100
commit9b919939a35f9e5606f86a09eafa2a392d40d1a7 (patch)
tree36e33d493cd60e236fb3673927e26a0091d98b8a /app/controllers/commit_controller.rb
parentb91d6802572eeb152bd86dd68c54ef4151180848 (diff)
downloadgitlab-ce-9b919939a35f9e5606f86a09eafa2a392d40d1a7.tar.gz
Fix parameter passing and wording for per line notes
Diffstat (limited to 'app/controllers/commit_controller.rb')
-rw-r--r--app/controllers/commit_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/commit_controller.rb b/app/controllers/commit_controller.rb
index d671e9f9e9e..ebc27772f9a 100644
--- a/app/controllers/commit_controller.rb
+++ b/app/controllers/commit_controller.rb
@@ -17,7 +17,9 @@ class CommitController < ProjectResourceController
@note = result[:note]
@line_notes = result[:line_notes]
@notes_count = result[:notes_count]
- @comments_allowed = true
+ @comments_allowed = @reply_allowed = true
+ @comments_target = { noteable_type: 'Commit',
+ noteable_id: @commit.id }
respond_to do |format|
format.html do