OSDN Git Service

Fix for broken commit_url in graph
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 25 Jan 2013 08:16:20 +0000 (10:16 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 25 Jan 2013 08:16:20 +0000 (10:16 +0200)
app/views/projects/graph.html.haml

index 4e0b0e3..72d9cb5 100644 (file)
@@ -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")}'
     });
   });