summaryrefslogtreecommitdiff
path: root/app/views/projects/network
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-15 15:03:56 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-15 15:03:56 +0300
commit16c3925927ebabaca3598e1c804856b952321003 (patch)
tree9db4e574f481c8c5f5bc194431a2258a159d4df8 /app/views/projects/network
parent6aa34c0efd9b5bdb8a5e5fd16a40f90bc37adcf0 (diff)
downloadgitlab-ce-16c3925927ebabaca3598e1c804856b952321003.tar.gz
Determine network height based on window size
Diffstat (limited to 'app/views/projects/network')
-rw-r--r--app/views/projects/network/show.html.haml16
1 files changed, 6 insertions, 10 deletions
diff --git a/app/views/projects/network/show.html.haml b/app/views/projects/network/show.html.haml
index a480ceaf995..492f77341f7 100644
--- a/app/views/projects/network/show.html.haml
+++ b/app/views/projects/network/show.html.haml
@@ -1,18 +1,14 @@
= render "head"
-.graph_holder
- %h4
- %small You can move around the graph by using the arrow keys.
- #holder.graph
+.project-network
+ .tip
+ You can move around the graph by using the arrow keys.
+ .network-graph
.loading.loading-gray
:javascript
- var branch_graph;
- $("#filter_ref").click(function() {
- $(this).closest('form').submit();
- });
- branch_graph = new BranchGraph($("#holder"), {
+ new Network({
url: '#{project_network_path(@project, @ref, @options.merge(format: :json))}',
commit_url: '#{project_commit_path(@project, 'ae45ca32').gsub("ae45ca32", "%s")}',
ref: '#{@ref}',
commit_id: '#{@commit.id}'
- });
+ })