2013-02-04 22:46:31 -05:00
|
|
|
= render "head"
|
2012-05-31 16:30:54 -04:00
|
|
|
.graph_holder
|
|
|
|
%h4
|
2012-12-04 18:57:21 -05:00
|
|
|
%small You can move around the graph by using the arrow keys.
|
2012-05-31 16:30:54 -04:00
|
|
|
#holder.graph
|
2012-12-21 06:07:34 -05:00
|
|
|
.loading.loading-gray
|
2012-12-04 18:57:21 -05:00
|
|
|
|
2011-11-13 06:58:45 -05:00
|
|
|
:javascript
|
2012-12-07 13:06:46 -05:00
|
|
|
var branch_graph;
|
2011-11-13 06:58:45 -05:00
|
|
|
$(function(){
|
2012-12-07 16:05:17 -05:00
|
|
|
branch_graph = new BranchGraph($("#holder"), {
|
2013-02-04 22:46:31 -05:00
|
|
|
url: '#{project_graph_path(@project, @ref, q: @q, format: :json)}',
|
2013-01-29 03:25:17 -05:00
|
|
|
commit_url: '#{project_commit_path(@project, 'ae45ca32').gsub("ae45ca32", "%s")}',
|
2013-02-04 22:34:35 -05:00
|
|
|
ref: '#{@ref}',
|
2013-02-04 22:46:31 -05:00
|
|
|
commit_id: '#{@commit.id}'
|
2012-12-07 16:05:17 -05:00
|
|
|
});
|
2011-11-13 06:58:45 -05:00
|
|
|
});
|