2012-06-30 21:35:24 +00:00
|
|
|
%h3.page_title Project Network Graph
|
2012-02-26 20:06:40 +00:00
|
|
|
%br
|
2013-01-29 08:25:17 +00:00
|
|
|
= render partial: 'shared/ref_switcher', locals: {destination: 'graph', path: @path}
|
|
|
|
%br
|
2012-05-31 20:30:54 +00:00
|
|
|
.graph_holder
|
|
|
|
%h4
|
2012-12-04 23:57:21 +00:00
|
|
|
%small You can move around the graph by using the arrow keys.
|
2012-05-31 20:30:54 +00:00
|
|
|
#holder.graph
|
2012-12-21 11:07:34 +00:00
|
|
|
.loading.loading-gray
|
2012-12-04 23:57:21 +00:00
|
|
|
|
2011-11-13 11:58:45 +00:00
|
|
|
:javascript
|
2012-12-07 18:06:46 +00:00
|
|
|
var branch_graph;
|
2011-11-13 11:58:45 +00:00
|
|
|
$(function(){
|
2012-12-07 21:05:17 +00:00
|
|
|
branch_graph = new BranchGraph($("#holder"), {
|
2013-01-29 08:25:17 +00:00
|
|
|
url: '#{project_graph_path(@project, @ref, format: :json)}',
|
|
|
|
commit_url: '#{project_commit_path(@project, 'ae45ca32').gsub("ae45ca32", "%s")}',
|
2013-02-05 03:34:35 +00:00
|
|
|
ref: '#{@ref}',
|
|
|
|
commit_id: '#{@commit && @commit.id}'
|
2012-12-07 21:05:17 +00:00
|
|
|
});
|
2011-11-13 11:58:45 +00:00
|
|
|
});
|