2013-06-23 16:47:22 +00:00
|
|
|
= render "projects/commits/head"
|
2012-02-06 20:32:04 +00:00
|
|
|
|
2013-07-13 05:45:48 +00:00
|
|
|
%h3.page-title
|
2012-02-06 20:32:04 +00:00
|
|
|
Compare View
|
|
|
|
|
2012-09-26 03:13:19 +00:00
|
|
|
= render "form"
|
2012-02-06 20:32:04 +00:00
|
|
|
|
2012-09-21 08:22:53 +00:00
|
|
|
- if @commits.present?
|
2014-05-29 15:42:44 +00:00
|
|
|
%div.panel.panel-default
|
2014-05-29 15:43:21 +00:00
|
|
|
.panel-heading
|
2013-01-08 10:23:33 +00:00
|
|
|
Commits (#{@commits.count})
|
2014-02-05 13:54:51 +00:00
|
|
|
- if @commits.size > MergeRequestDiff::COMMITS_SAFE_SIZE
|
|
|
|
%ul.well-list
|
|
|
|
- Commit.decorate(@commits.first(MergeRequestDiff::COMMITS_SAFE_SIZE)).each do |commit|
|
|
|
|
= render "projects/commits/inline_commit", commit: commit, project: @project
|
|
|
|
%li.warning-row.unstyled
|
|
|
|
other #{@commits.size - MergeRequestDiff::COMMITS_SAFE_SIZE} commits hidden to prevent performance issues.
|
|
|
|
- else
|
|
|
|
%ul.well-list= render Commit.decorate(@commits), project: @project
|
2012-02-06 20:32:04 +00:00
|
|
|
|
2014-09-08 17:41:55 +00:00
|
|
|
= render "projects/diffs/diffs", diffs: @diffs, project: @project
|
2014-02-05 14:09:13 +00:00
|
|
|
|
2013-09-12 17:15:10 +00:00
|
|
|
- else
|
|
|
|
.light-well
|
2014-06-21 07:41:44 +00:00
|
|
|
.center
|
2013-09-12 17:15:10 +00:00
|
|
|
%h4
|
|
|
|
There isn't anything to compare.
|
|
|
|
%p.slead
|
|
|
|
- if params[:to] == params[:from]
|
|
|
|
%span.label-branch #{params[:from]}
|
|
|
|
and
|
|
|
|
%span.label-branch #{params[:to]}
|
|
|
|
are the same.
|
2014-08-11 07:41:05 +00:00
|
|
|
- else
|
|
|
|
You'll need to use different branch names to get a valid comparison.
|