2016-06-22 15:30:34 +05:30
|
|
|
- @no_container = true
|
2017-08-17 22:00:37 +05:30
|
|
|
- page_title "Contributors"
|
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= page_specific_javascript_bundle_tag('common_d3')
|
|
|
|
= page_specific_javascript_bundle_tag('graphs')
|
|
|
|
= render 'projects/commits/head'
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2016-06-22 15:30:34 +05:30
|
|
|
.sub-header-block
|
|
|
|
.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.
|
2017-08-17 22:00:37 +05:30
|
|
|
%input#brush_change{ :type => "hidden" }
|
2016-06-22 15:30:34 +05:30
|
|
|
.graphs.row
|
|
|
|
#contributors-master
|
|
|
|
#contributors.clearfix
|
|
|
|
%ol.contributors-list.clearfix
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
:javascript
|
|
|
|
$.ajax({
|
2014-09-02 18:07:02 +05:30
|
|
|
type: "GET",
|
2016-09-13 17:45:13 +05:30
|
|
|
url: "#{namespace_project_graph_path(@project.namespace, @project, current_ref, format: :json)}",
|
2015-11-26 14:37:03 +05:30
|
|
|
dataType: "json",
|
|
|
|
success: function (data) {
|
|
|
|
var graph = new ContributorsStatGraph();
|
|
|
|
graph.init(data);
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
$("#brush_change").change(function(){
|
|
|
|
graph.change_date_header();
|
|
|
|
graph.redraw_authors();
|
|
|
|
});
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
$(".stat-graph").fadeIn();
|
|
|
|
$(".loading-graph").hide();
|
2015-11-26 14:37:03 +05:30
|
|
|
}
|
|
|
|
});
|