Fix for broken commit_url in graph
This commit is contained in:
parent
3ce79e0658
commit
097e6053ef
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
%h3.page_title Project Network Graph
|
%h3.page_title Project Network Graph
|
||||||
%br
|
%br
|
||||||
|
|
||||||
.graph_holder
|
.graph_holder
|
||||||
%h4
|
%h4
|
||||||
%small You can move around the graph by using the arrow keys.
|
%small You can move around the graph by using the arrow keys.
|
||||||
|
@ -11,6 +12,6 @@
|
||||||
$(function(){
|
$(function(){
|
||||||
branch_graph = new BranchGraph($("#holder"), {
|
branch_graph = new BranchGraph($("#holder"), {
|
||||||
url: '#{url_for controller: 'projects', action: 'graph', format: :json}',
|
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")}'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue