gitlab-org--gitlab-foss/app/views/projects/compare/show.html.haml

36 lines
893 B
Plaintext

= render "projects/commits/head"
%h3.page-title
Compare View
= render "form"
- if @commits.size > 100
.alert.alert-block
%p
%strong Warning! This comparison includes more than 100 commits.
%p To preserve performance the line diff is not shown.
- if @commits.present?
%div.ui-box
.title
Commits (#{@commits.count})
%ul.well-list= render Commit.decorate(@commits), project: @project
- unless @diffs.empty?
%h4 Diff
= render "projects/commits/diffs", diffs: @diffs, project: @project
- else
.light-well
%center
%h4
There isn't anything to compare.
%p.slead
- if params[:to] == params[:from]
You'll need to use different branch names to get a valid comparison.
- else
%span.label-branch #{params[:from]}
and
%span.label-branch #{params[:to]}
are the same.