Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_commits.html.haml « merge_requests « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ad3cba2b8223db1478ff993887556a36c674d4a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
- if @commits.present?
  .ui-box
    %h5 Commits (#{@commits.count})
    .merge-request-commits
      - 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
              %a.show_all Click here to show all
        %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

- else
  %h5
    Nothing to merge from
    %span.label #{@merge_request.source_branch}
    to
    %span.label #{@merge_request.target_branch}
  %br