summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-22 20:33:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-22 20:33:01 +0000
commit3f80a89a69b2a6f3290c4ebec3a693c86eccee6a (patch)
tree71c1d95710294a3e59f344a4559cc0b2bccdb7d3 /app/controllers/repositories_controller.rb
parent4fd2e4aa900d170a49e42a173bc9fb0f3bfbf392 (diff)
downloadredmine-3f80a89a69b2a6f3290c4ebec3a693c86eccee6a.tar.gz
redmine-3f80a89a69b2a6f3290c4ebec3a693c86eccee6a.zip
Show view/annotate/download links on repositories/entries and repositories/annotate views (#2367).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2167 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index dc2acee3a..3cec2e8e5 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -127,6 +127,9 @@ class RepositoriesController < ApplicationController
end
def annotate
+ @entry = @repository.entry(@path, @rev)
+ show_error_not_found and return unless @entry
+
@annotate = @repository.scm.annotate(@path, @rev)
render_error l(:error_scm_annotate) and return if @annotate.nil? || @annotate.empty?
end