_commits.html.haml 854 Bytes
Newer Older
Zevs's avatar
Zevs committed
1
- if @commits.present?
2
  .ui-box
3 4 5
    %h5
      %i.icon-list
      Commits (#{@commits.count})
6
    .merge-request-commits
7 8
      - if @commits.count > 8
        %ul.first_mr_commits.unstyled
9
          - @commits.first(8).each do |commit|
10
            = render "commits/commit", commit: commit
11
          %li.bottom
12
            8 of #{@commits.count} commits displayed.
13
            %strong
14
              %a.mr_show_all_commits Click here to show all
15
        %ul.all_mr_commits.hide.unstyled
16
          - @commits.each do |commit|
17
            = render "commits/commit", commit: commit
18

19
      - else
20
        %ul.unstyled
21
          - @commits.each do |commit|
22
            = render "commits/commit", commit: commit
23

24
- else
25
  %h5
26 27 28
    Nothing to merge from
    %span.label #{@merge_request.source_branch}
    to
29 30
    %span.label #{@merge_request.target_branch}
  %br