Skip to content

Commit 097e605

Browse files
committed
Fix for broken commit_url in graph
1 parent 3ce79e0 commit 097e605

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/views/projects/graph.html.haml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
%h3.page_title Project Network Graph
22
%br
3+
34
.graph_holder
45
%h4
56
%small You can move around the graph by using the arrow keys.
@@ -11,6 +12,6 @@
1112
$(function(){
1213
branch_graph = new BranchGraph($("#holder"), {
1314
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")}'
1516
});
1617
});

0 commit comments

Comments
 (0)