2014-09-08 09:26:49 -04:00
|
|
|
.row
|
|
|
|
.col-md-8
|
2014-09-08 14:54:52 -04:00
|
|
|
= render 'projects/diffs/stats', diffs: diffs
|
2014-09-08 09:26:49 -04:00
|
|
|
.col-md-4
|
|
|
|
%ul.nav.nav-tabs
|
|
|
|
%li.pull-right{class: params[:view] == 'parallel' ? 'active' : ''}
|
|
|
|
- params_copy = params.dup
|
|
|
|
- params_copy[:view] = 'parallel'
|
|
|
|
= link_to "Side-by-side Diff", url_for(params_copy), {id: "commit-diff-viewtype"}
|
|
|
|
%li.pull-right{class: params[:view] != 'parallel' ? 'active' : ''}
|
|
|
|
- params_copy[:view] = 'inline'
|
|
|
|
= link_to "Inline Diff", url_for(params_copy), {id: "commit-diff-viewtype"}
|
|
|
|
|
2014-09-08 15:12:54 -04:00
|
|
|
|
2014-09-09 05:52:16 -04:00
|
|
|
- if show_diff_size_warning?(diffs)
|
2014-09-08 14:54:52 -04:00
|
|
|
= render 'projects/diffs/warning', diffs: diffs
|
2014-09-08 09:26:49 -04:00
|
|
|
|
|
|
|
.files
|
2014-09-08 14:54:52 -04:00
|
|
|
- safe_diff_files(diffs).each_with_index do |diff_file, index|
|
|
|
|
= render 'projects/diffs/file', diff_file: diff_file, i: index, project: project
|
2014-09-08 09:26:49 -04:00
|
|
|
|
|
|
|
- if @diff_timeout
|
|
|
|
.alert.alert-danger
|
|
|
|
%h4
|
|
|
|
Failed to collect changes
|
|
|
|
%p
|
2014-09-10 16:20:40 -04:00
|
|
|
Maybe diff is really big and operation failed with timeout. Try to get diff locally
|