summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-25 10:16:20 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-25 10:16:20 +0200
commit097e6053efd973c70c4995784a1abc30e9384008 (patch)
tree95353a38ba70889cb5b512c7c363c235b63fcb12 /app/views
parent3ce79e06580c0efb0abeba0263bdc3ea10670e2d (diff)
downloadgitlab-ce-097e6053efd973c70c4995784a1abc30e9384008.tar.gz
Fix for broken commit_url in graph
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/graph.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/graph.html.haml b/app/views/projects/graph.html.haml
index 4e0b0e36c34..72d9cb5ef15 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")}'
});
});