gitlabhq/app/views/graph/show.html.haml

21 lines
594 B
Plaintext
Raw Normal View History

%h3.page_title Project Network Graph
2012-02-26 21:06:40 +01:00
%br
= render partial: 'shared/ref_switcher', locals: {destination: 'graph', path: @path}
%br
2012-05-31 22:30:54 +02:00
.graph_holder
%h4
%small You can move around the graph by using the arrow keys.
2012-05-31 22:30:54 +02:00
#holder.graph
.loading.loading-gray
2011-11-13 12:58:45 +01:00
:javascript
var branch_graph;
2011-11-13 12:58:45 +01:00
$(function(){
branch_graph = new BranchGraph($("#holder"), {
url: '#{project_graph_path(@project, @ref, format: :json)}',
commit_url: '#{project_commit_path(@project, 'ae45ca32').gsub("ae45ca32", "%s")}',
ref: '#{@ref}',
commit_id: '#{@commit && @commit.id}'
});
2011-11-13 12:58:45 +01:00
});