From 3f80a89a69b2a6f3290c4ebec3a693c86eccee6a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 22 Dec 2008 20:33:01 +0000 Subject: 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 --- app/controllers/repositories_controller.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/controllers/repositories_controller.rb') 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 -- cgit v1.2.3