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

_commits.html.haml « commits « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82f39e59284d28f8bb8d49518a1087135a1ab123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- unless defined?(project)
  - project = @project

- commits, hidden = limited_commits(@commits)

- commits.group_by { |c| c.committed_date.in_time_zone.to_date }.sort.reverse.each do |day, commits|
  .row.commits-row
    .col-md-2.hidden-xs.hidden-sm
      %h5.commits-row-date
        %i.fa.fa-calendar
        %span= day.strftime('%d %b, %Y')
      .light
        = pluralize(commits.count, 'commit')
    .col-md-10.col-sm-12
      %ul.content-list
        = render commits, project: project
  %hr.lists-separator

- if hidden > 0
  .alert.alert-warning
    #{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.