Text files can now be viewed online when browsing the repository.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@521 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -61,10 +61,10 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def entry
|
||||
if 'raw' == params[:format]
|
||||
content = @repository.scm.cat(@path, @rev)
|
||||
show_error and return unless content
|
||||
send_data content, :filename => @path.split('/').last
|
||||
@content = @repository.scm.cat(@path, @rev)
|
||||
show_error and return unless @content
|
||||
if 'raw' == params[:format]
|
||||
send_data @content, :filename => @path.split('/').last
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user