2016-06-15 09:54:31 -04:00
|
|
|
- @no_container = true
|
2017-03-02 12:57:01 -05:00
|
|
|
- page_title "Contributors"
|
|
|
|
- content_for :page_specific_javascripts do
|
2017-03-02 02:34:36 -05:00
|
|
|
= page_specific_javascript_bundle_tag('common_d3')
|
2017-03-02 12:57:01 -05:00
|
|
|
= page_specific_javascript_bundle_tag('graphs')
|
|
|
|
= render 'projects/commits/head'
|
2015-07-02 14:12:24 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-16 10:09:58 -04:00
|
|
|
.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.
|
2016-12-26 05:47:16 -05:00
|
|
|
%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
|
2013-05-09 01:00:56 -04:00
|
|
|
|
|
|
|
|
2014-09-26 11:04:41 -04:00
|
|
|
|
2015-11-10 06:17:37 -05:00
|
|
|
:javascript
|
|
|
|
$.ajax({
|
2013-06-05 08:50:11 -04:00
|
|
|
type: "GET",
|
2016-07-31 16:52:44 -04:00
|
|
|
url: "#{namespace_project_graph_path(@project.namespace, @project, current_ref, format: :json)}",
|
2015-11-10 06:17:37 -05:00
|
|
|
dataType: "json",
|
|
|
|
success: function (data) {
|
|
|
|
var graph = new ContributorsStatGraph();
|
|
|
|
graph.init(data);
|
2014-09-26 11:04:41 -04:00
|
|
|
|
2015-11-10 06:17:37 -05:00
|
|
|
$("#brush_change").change(function(){
|
|
|
|
graph.change_date_header();
|
|
|
|
graph.redraw_authors();
|
|
|
|
});
|
2014-09-26 11:04:41 -04:00
|
|
|
|
2013-06-25 10:34:50 -04:00
|
|
|
$(".stat-graph").fadeIn();
|
2013-06-05 08:50:11 -04:00
|
|
|
$(".loading-graph").hide();
|
2015-11-10 06:17:37 -05:00
|
|
|
}
|
|
|
|
});
|