diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 13:32:43 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 13:32:43 +0200 |
commit | f7e7dc7ebbdac2a45d528d1f9c19055febd0bede (patch) | |
tree | 28162a6225926157c540e8870b289a1bacd46a5b /app/controllers/projects/commit_controller.rb | |
parent | 73af33e4b1aed1cbde3644a0e94ab2d40340e31b (diff) | |
download | gitlab-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.rb | 3 |
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 |