gitlab-org--gitlab-foss/app/views/merge_requests/show/_commits.html.haml
2012-12-18 06:14:05 +03:00

30 lines
857 B
Text

- if @commits.present?
.ui-box
%h5
%i.icon-list
Commits (#{@commits.count})
.merge-request-commits
- if @commits.count > 8
%ul.first_mr_commits.well-list
- @commits.first(8).each do |commit|
= render "commits/commit", commit: commit
%li.bottom
8 of #{@commits.count} commits displayed.
%strong
%a.mr_show_all_commits Click here to show all
%ul.all_mr_commits.hide.well-list
- @commits.each do |commit|
= render "commits/commit", commit: commit
- else
%ul.well-list
- @commits.each do |commit|
= render "commits/commit", commit: commit
- else
%h5
Nothing to merge from
%span.label #{@merge_request.source_branch}
to
%span.label #{@merge_request.target_branch}
%br