debian-mirror-gitlab/app/views/projects/graphs/show.html.haml
2015-09-11 14:41:01 +05:30

40 lines
965 B
Text

- page_title "Contributor statistics"
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'graphs'
= render 'head'
.loading-graph
.center
%h3.page-title
%i.fa.fa-spinner.fa-spin
Building repository graph.
%p.slead Please wait a moment, this page will automatically refresh when ready.
.stat-graph.hide
.header.clearfix
%h3#date_header.page-title
%p.light
Commits to #{@ref}, excluding merge commits. Limited by 6,000 commits
%input#brush_change{:type => "hidden"}
.graphs
#contributors-master
#contributors.clearfix
%ol.contributors-list.clearfix
:coffeescript
$.ajax
type: "GET",
url: location.href,
success: (data) ->
graph = new ContributorsStatGraph()
graph.init(data)
$("#brush_change").change ->
graph.change_date_header()
graph.redraw_authors()
$(".stat-graph").fadeIn();
$(".loading-graph").hide();
dataType: "json"