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

stats.html.haml « repositories « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dfdbc898912a22a4d8dcdef6fb7a6c0c357ec7a7 (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
29
30
31
32
33
= render "projects/commits/head"
.row
  .span6
    %div#activity-chart.chart
    %hr
    %p
      %b Total commits:
      %span= @stats.commits_count
    %p
      %b Total files in #{@repository.root_ref}:
      %span= @stats.files_count
    %p
      %b Authors:
      %span= @stats.authors_count


  .span6
    %h4 Top 50 Committers:
    %ol.styled
      - @stats.authors[0...50].each do |author|
        %li
          = image_tag gravatar_icon(author.email, 16), class: 'avatar s16'
          = author.name
          %small.light= author.email
          .pull-right
            = author.commits


:javascript
  var labels = [#{@graph.labels.to_json}];
  var commits = [#{@graph.commits.join(', ')}];
  var title = "Commit activity for last #{@graph.weeks} weeks";
  Chart.init(labels, commits, title);