_commit_list.html.haml 530 Bytes
Newer Older
Jacob Vosmaer's avatar
Jacob Vosmaer committed
1
- commits, hidden = limited_commits(@commits)
2 3
- commits = Commit.decorate(commits, @project)

4 5 6
%div.panel.panel-default
  .panel-heading
    Commits (#{@commits.count})
7
  - if hidden > 0
8
    %ul.content-list
9
      - commits.each do |commit|
10 11
        = render "projects/commits/inline_commit", commit: commit, project: @project
      %li.warning-row.unstyled
Jacob Vosmaer's avatar
Jacob Vosmaer committed
12
        #{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.
13
  - else
14
    %ul.content-list= render commits, project: @project