patch #9627 Add Side by Side in Diff view (Cyril Mougel)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@390 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -74,7 +74,8 @@ class RepositoriesController < ApplicationController
|
||||
|
||||
def diff
|
||||
@rev_to = params[:rev_to] || (@rev-1)
|
||||
@diff = @repository.scm.diff(params[:path], @rev, @rev_to)
|
||||
type = params[:type] || 'inline'
|
||||
@diff = @repository.scm.diff(params[:path], @rev, @rev_to, type)
|
||||
show_error and return unless @diff
|
||||
end
|
||||
|
||||
@@ -204,4 +205,4 @@ class Date
|
||||
def weeks_ago(date = Date.today)
|
||||
(date.year - self.year)*52 + (date.cweek - self.cweek)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user