2012-06-20 21:21:13 +00:00
|
|
|
- if @commits.present?
|
2012-02-14 23:15:02 +00:00
|
|
|
.ui-box
|
2013-07-13 17:36:21 +00:00
|
|
|
.title
|
2012-07-16 05:03:10 +00:00
|
|
|
%i.icon-list
|
|
|
|
Commits (#{@commits.count})
|
2013-01-05 01:18:39 +00:00
|
|
|
.commits
|
2012-04-17 19:08:07 +00:00
|
|
|
- if @commits.count > 8
|
2013-01-05 01:18:39 +00:00
|
|
|
%ul.first-commits.well-list
|
2012-06-03 22:37:27 +00:00
|
|
|
- @commits.first(8).each do |commit|
|
2013-04-25 14:15:33 +00:00
|
|
|
= render "projects/commits/commit", commit: commit, project: @merge_request.source_project
|
2012-06-03 22:37:27 +00:00
|
|
|
%li.bottom
|
2012-04-17 19:08:07 +00:00
|
|
|
8 of #{@commits.count} commits displayed.
|
2012-06-03 22:37:27 +00:00
|
|
|
%strong
|
2013-01-05 01:18:39 +00:00
|
|
|
%a.show-all-commits Click here to show all
|
2014-01-22 13:54:53 +00:00
|
|
|
- if @commits.size > MergeRequestDiff::COMMITS_SAFE_SIZE
|
|
|
|
%ul.all-commits.hide.well-list
|
|
|
|
- @commits.first(MergeRequestDiff::COMMITS_SAFE_SIZE).each do |commit|
|
|
|
|
= render "projects/commits/inline_commit", commit: commit, project: @merge_request.source_project
|
|
|
|
%li
|
|
|
|
other #{@commits.size - MergeRequestDiff::COMMITS_SAFE_SIZE} commits hidden top prevent performance issues.
|
|
|
|
- else
|
|
|
|
%ul.all-commits.hide.well-list
|
|
|
|
- @commits.each do |commit|
|
|
|
|
= render "projects/commits/inline_commit", commit: commit, project: @merge_request.source_project
|
2012-04-17 19:08:07 +00:00
|
|
|
|
2012-06-03 22:37:27 +00:00
|
|
|
- else
|
2012-12-18 03:14:05 +00:00
|
|
|
%ul.well-list
|
2012-06-03 22:37:27 +00:00
|
|
|
- @commits.each do |commit|
|
2013-04-25 14:15:33 +00:00
|
|
|
= render "projects/commits/commit", commit: commit, project: @merge_request.source_project
|
2011-11-28 20:16:57 +00:00
|
|
|
|