From 097e6053efd973c70c4995784a1abc30e9384008 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Fri, 25 Jan 2013 10:16:20 +0200 Subject: [PATCH] Fix for broken commit_url in graph --- app/views/projects/graph.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/projects/graph.html.haml b/app/views/projects/graph.html.haml index 4e0b0e36c3..72d9cb5ef1 100644 --- a/app/views/projects/graph.html.haml +++ b/app/views/projects/graph.html.haml @@ -1,5 +1,6 @@ %h3.page_title Project Network Graph %br + .graph_holder %h4 %small You can move around the graph by using the arrow keys. @@ -11,6 +12,6 @@ $(function(){ branch_graph = new BranchGraph($("#holder"), { url: '#{url_for controller: 'projects', action: 'graph', format: :json}', - commit_url: '#{url_for controller: 'projects', action: 'show'}/commits/%s' + commit_url: '#{project_commit_path(@project, 'ae45ca32').gsub("ae45ca32", "%s")}' }); }); -- 2.30.9