2012-06-20 23:21:13 +02:00
|
|
|
- if @commits.present?
|
2012-02-15 00:15:02 +01:00
|
|
|
.ui-box
|
2013-01-04 23:35:38 +01:00
|
|
|
%h5.title
|
2012-07-16 07:03:10 +02:00
|
|
|
%i.icon-list
|
|
|
|
Commits (#{@commits.count})
|
2013-01-05 02:18:39 +01:00
|
|
|
.commits
|
2012-04-17 21:08:07 +02:00
|
|
|
- if @commits.count > 8
|
2013-01-05 02:18:39 +01:00
|
|
|
%ul.first-commits.well-list
|
2012-06-04 00:37:27 +02:00
|
|
|
- @commits.first(8).each do |commit|
|
2012-08-11 00:07:50 +02:00
|
|
|
= render "commits/commit", commit: commit
|
2012-06-04 00:37:27 +02:00
|
|
|
%li.bottom
|
2012-04-17 21:08:07 +02:00
|
|
|
8 of #{@commits.count} commits displayed.
|
2012-06-04 00:37:27 +02:00
|
|
|
%strong
|
2013-01-05 02:18:39 +01:00
|
|
|
%a.show-all-commits Click here to show all
|
|
|
|
%ul.all-commits.hide.well-list
|
2012-06-04 00:37:27 +02:00
|
|
|
- @commits.each do |commit|
|
2012-08-11 00:07:50 +02:00
|
|
|
= render "commits/commit", commit: commit
|
2012-04-17 21:08:07 +02:00
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
- else
|
2012-12-18 04:14:05 +01:00
|
|
|
%ul.well-list
|
2012-06-04 00:37:27 +02:00
|
|
|
- @commits.each do |commit|
|
2012-08-11 00:07:50 +02:00
|
|
|
= render "commits/commit", commit: commit
|
2011-11-28 21:16:57 +01:00
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
- else
|
2012-02-15 00:15:02 +01:00
|
|
|
%h5
|
2012-06-04 00:37:27 +02:00
|
|
|
Nothing to merge from
|
|
|
|
%span.label #{@merge_request.source_branch}
|
|
|
|
to
|
2012-02-15 00:15:02 +01:00
|
|
|
%span.label #{@merge_request.target_branch}
|
|
|
|
%br
|