gitlab-org--gitlab-foss/app/views/projects/graphs/show.html.haml

50 lines
1.2 KiB
Text
Raw Normal View History

2016-06-15 09:54:31 -04:00
- @no_container = true
- page_title "Contributors", "Graphs"
= render 'head'
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
.sub-header-block
2016-06-15 09:54:31 -04:00
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'graphs'
%ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
.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 to 6,000 commits.
%input#brush_change{ :type => "hidden" }
2016-06-15 13:01:58 -04:00
.graphs.row
2016-06-15 09:54:31 -04:00
#contributors-master
#contributors.clearfix
%ol.contributors-list.clearfix
:javascript
$.ajax({
type: "GET",
url: "#{namespace_project_graph_path(@project.namespace, @project, current_ref, format: :json)}",
dataType: "json",
success: function (data) {
var graph = new ContributorsStatGraph();
graph.init(data);
$("#brush_change").change(function(){
graph.change_date_header();
graph.redraw_authors();
});
$(".stat-graph").fadeIn();
$(".loading-graph").hide();
}
});