summaryrefslogtreecommitdiff
path: root/app/views/projects/graphs/show.html.haml
blob: a21cb9e7861a2607d1681b49aa5bc60a4cbe4f28 (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
34
.loading-graph
  %center
    .loading
    %h3.page-title Building repository graph.
    %p Please wait a moment, this page will automatically refresh when ready.

.stat-graph
  .header.clearfix
    .pull-right
      %select
        %option{:value => "commits"} Commits
        %option{:value => "additions"} Additions
        %option{:value => "deletions"} Deletions
    %h3#date_header.page-title
    %p.light
      Commits to #{@project.default_branch}, excluding merge commits. Limited by 6,000 commits
    %input#brush_change{:type => "hidden"}
  .graphs
    #contributors-master
    #contributors.clearfix
      %ol.contributors-list.clearfix

:javascript
  $(".stat-graph").hide();

  $.ajax({
    type: "GET",
    url: location.href,
    complete: function() {
      $(".stat-graph").fadeIn();
      $(".loading-graph").hide();
    },
    dataType: "script"
  });