diff options
author | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-01-29 12:25:17 +0400 |
---|---|---|
committer | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-01-30 04:12:03 +0400 |
commit | 525a8cd3e96b7bae0acda8b6e94df529fa06ff6a (patch) | |
tree | dbfda7c6ee03274470c2176c7c19dc396fc4ac5a /app/views/graph/show.html.haml | |
parent | c84675ee06dfc72c46c178ef40e30f03053dcc5a (diff) |
Switchable the main branch on network graph
Diffstat (limited to 'app/views/graph/show.html.haml')
-rw-r--r-- | app/views/graph/show.html.haml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/graph/show.html.haml b/app/views/graph/show.html.haml new file mode 100644 index 00000000000..ca3a8706313 --- /dev/null +++ b/app/views/graph/show.html.haml @@ -0,0 +1,19 @@ +%h3.page_title Project Network Graph +%br += render partial: 'shared/ref_switcher', locals: {destination: 'graph', path: @path} +%br +.graph_holder + %h4 + %small You can move around the graph by using the arrow keys. + #holder.graph + .loading.loading-gray + +:javascript + var branch_graph; + $(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}' + }); + }); |