From 6e303c10e35aa4876b9c39187db0cc94a8c2a662 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 1 Dec 2011 13:46:31 -0800 Subject: [PATCH] Various fixes to network section -bug 12141: Show VM details on static NAT chart -Move VPN actions from list view to detail view, to avoid excessive server calls from being made (due to needing additional calls to get VPN/network data) -Fix network action refresh for list view and detail view --- ui/css/cloudstack3.css | 29 ++++ ui/index-test.html | 1 + ui/index.jsp | 1 + ui/scripts/network.js | 255 +++++++++++++++----------------- ui/scripts/ui-custom/ipRules.js | 49 +++++- 5 files changed, 198 insertions(+), 137 deletions(-) diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index 8354fe3ad96..7b64a1de7b4 100644 --- a/ui/css/cloudstack3.css +++ b/ui/css/cloudstack3.css @@ -5691,6 +5691,35 @@ div.panel.ui-dialog div.list-view div.fixed-header { top: 44px; } +.network-chart li.static-nat-enabled .vmname { + /*+placement:shift 16px 41px;*/ + position: relative; + left: 16px; + top: 41px; + cursor: pointer; + padding: 7px; + font-size: 14px; + position: absolute; + color: #485563; + font-weight: bold; + /*+text-shadow:0px 1px 1px #000000;*/ + -moz-text-shadow: 0px 1px 1px #000000; + -webkit-text-shadow: 0px 1px 1px #000000; + -o-text-shadow: 0px 1px 1px #000000; + text-shadow: 0px 1px 1px #000000; + background: url(../images/bg-gradients.png) repeat-x 2px -221px; + color: #FFFFFF; + /*+border-radius:9px;*/ + -moz-border-radius: 9px; + -webkit-border-radius: 9px; + -khtml-border-radius: 9px; + border-radius: 9px 9px 9px 9px; +} + +.network-chart li.static-nat-enabled .vmname:hover { + background-position: 0px -946px; +} + .network-chart li.static-nat-enabled .name { background: url(../images/sprites.png) no-repeat -6px -460px; } diff --git a/ui/index-test.html b/ui/index-test.html index c90975d02ba..4340ba4357f 100644 --- a/ui/index-test.html +++ b/ui/index-test.html @@ -707,6 +707,7 @@