2012-02-15 00:15:02 +01:00
|
|
|
- unless @commits.empty?
|
|
|
|
.ui-box
|
2012-04-17 21:08:07 +02:00
|
|
|
%h5 Commits (#{@commits.count})
|
2012-02-15 00:15:02 +01:00
|
|
|
.merge-request-commits
|
2012-04-17 21:08:07 +02:00
|
|
|
- if @commits.count > 8
|
|
|
|
%ul.first_mr_commits.unstyled
|
|
|
|
- @commits.first(8).each do |commit|
|
|
|
|
= render "commits/commit", :commit => commit
|
|
|
|
%li.bottom
|
|
|
|
8 of #{@commits.count} commits displayed.
|
|
|
|
%strong
|
|
|
|
= link_to_function "Click here to show all", "MergeRequest.showAllCommits()"
|
|
|
|
%ul.all_mr_commits.hide.unstyled
|
|
|
|
- @commits.each do |commit|
|
|
|
|
= render "commits/commit", :commit => commit
|
|
|
|
|
|
|
|
- else
|
|
|
|
%ul.unstyled
|
|
|
|
- @commits.each do |commit|
|
|
|
|
= render "commits/commit", :commit => commit
|
2011-11-28 21:16:57 +01:00
|
|
|
|
2012-02-15 00:15:02 +01:00
|
|
|
- else
|
|
|
|
%h5
|
|
|
|
Nothing to merge from
|
|
|
|
%span.label #{@merge_request.source_branch}
|
|
|
|
to
|
|
|
|
%span.label #{@merge_request.target_branch}
|
|
|
|
%br
|