diff options
Diffstat (limited to 'app/views/projects/graph.html.haml')
-rw-r--r-- | app/views/projects/graph.html.haml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/projects/graph.html.haml b/app/views/projects/graph.html.haml index 07f038d28a2..4e0b0e36c34 100644 --- a/app/views/projects/graph.html.haml +++ b/app/views/projects/graph.html.haml @@ -2,13 +2,15 @@ %br .graph_holder %h4 - %small You can move around the graph by using arrow keys. + %small You can move around the graph by using the arrow keys. #holder.graph + .loading.loading-gray + :javascript - var chunk1={commits:#{@commits_json}}; - var days=#{@days_json}; - initGraph(); + var branch_graph; $(function(){ - branchGraph($("#holder")[0]); - GraphNav.init(); + branch_graph = new BranchGraph($("#holder"), { + url: '#{url_for controller: 'projects', action: 'graph', format: :json}', + commit_url: '#{url_for controller: 'projects', action: 'show'}/commits/%s' + }); }); |