Commit 097e6053efd973c70c4995784a1abc30e9384008

Authored by Dmitriy Zaporozhets
1 parent 3ce79e06

Fix for broken commit_url in graph

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/views/projects/graph.html.haml
1 %h3.page_title Project Network Graph 1 %h3.page_title Project Network Graph
2 %br 2 %br
  3 +
3 .graph_holder 4 .graph_holder
4 %h4 5 %h4
5 %small You can move around the graph by using the arrow keys. 6 %small You can move around the graph by using the arrow keys.
@@ -11,6 +12,6 @@ @@ -11,6 +12,6 @@
11 $(function(){ 12 $(function(){
12 branch_graph = new BranchGraph($("#holder"), { 13 branch_graph = new BranchGraph($("#holder"), {
13 url: '#{url_for controller: 'projects', action: 'graph', format: :json}', 14 url: '#{url_for controller: 'projects', action: 'graph', format: :json}',
14 - commit_url: '#{url_for controller: 'projects', action: 'show'}/commits/%s' 15 + commit_url: '#{project_commit_path(@project, 'ae45ca32').gsub("ae45ca32", "%s")}'
15 }); 16 });
16 }); 17 });