Always show 'View' and 'Annotate' links on repository files (download will be forced when clicking 'View' if the file is binary).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1274 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-03-19 17:51:13 +00:00
parent 93a33c6286
commit f162337e1b
31 changed files with 49 additions and 18 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class RepositoriesController < ApplicationController
def annotate
@annotate = @repository.scm.annotate(@path, @rev)
show_error_not_found and return if @annotate.nil? || @annotate.empty?
render_error l(:error_scm_annotate) and return if @annotate.nil? || @annotate.empty?
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end