summaryrefslogtreecommitdiff
path: root/app/controllers/projects/commit_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-25 13:32:43 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-25 13:32:43 +0200
commitf7e7dc7ebbdac2a45d528d1f9c19055febd0bede (patch)
tree28162a6225926157c540e8870b289a1bacd46a5b /app/controllers/projects/commit_controller.rb
parent73af33e4b1aed1cbde3644a0e94ab2d40340e31b (diff)
downloadgitlab-ce-f7e7dc7ebbdac2a45d528d1f9c19055febd0bede.tar.gz
Make note anchors actually work
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r--app/controllers/projects/commit_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb
index 242aa41182d..34cd1341f78 100644
--- a/app/controllers/projects/commit_controller.rb
+++ b/app/controllers/projects/commit_controller.rb
@@ -24,7 +24,8 @@ class Projects::CommitController < Projects::ApplicationController
@line_notes = result[:line_notes]
@branches = result[:branches]
@notes_count = result[:notes_count]
- @target_type = :commit
+ @target_type = "Commit"
+ @notes = project.notes.for_commit_id(@commit.id).not_inline.fresh
@target_id = @commit.id
@comments_allowed = @reply_allowed = true