diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index ef81697e464..2101e2bf84a 100644 --- a/ui/css/cloudstack3.css +++ b/ui/css/cloudstack3.css @@ -9097,17 +9097,20 @@ div.panel.ui-dialog div.list-view div.fixed-header { .vpc-chart li.tier span.title { color: #FFFFFF; - /*+placement:shift 11px 13px;*/ + /*+placement:shift 8px 7px;*/ position: relative; - left: 11px; - top: 13px; + left: 8px; + top: 7px; position: absolute; + cursor: pointer; + padding: 3px; font-size: 24px; /*+text-shadow:1px 2px 2px #000000;*/ -moz-text-shadow: 1px 2px 2px #000000; -webkit-text-shadow: 1px 2px 2px #000000; -o-text-shadow: 1px 2px 2px #000000; text-shadow: 1px 2px 2px #000000; + text-decoration: underline; } .vpc-chart li.tier span.cidr { @@ -9257,9 +9260,11 @@ div.panel.ui-dialog div.list-view div.fixed-header { width: 100px; border: 1px solid transparent; margin: 4px; + text-decoration: underline; } -.vpc-chart li.tier .vm-count:hover { +.vpc-chart li.tier .vm-count:hover, +.vpc-chart li.tier .title:hover { border-radius: 4px; border: 1px solid #4C545E; background: url(../images/bg-gradients.png) 0px -2751px; @@ -9304,6 +9309,7 @@ div.panel.ui-dialog div.list-view div.fixed-header { -webkit-text-shadow: none; -o-text-shadow: none; text-shadow: none; + text-decoration: none; } .vpc-chart li.tier.placeholder:hover span { @@ -9313,6 +9319,8 @@ div.panel.ui-dialog div.list-view div.fixed-header { -webkit-text-shadow: 0px 0px 7px #FFFFFF; -o-text-shadow: 0px 0px 7px #FFFFFF; text-shadow: 0px 0px 7px #FFFFFF; + background: none; + border: none; } .vpc-chart li.tier.virtual-router { @@ -9340,6 +9348,7 @@ div.panel.ui-dialog div.list-view div.fixed-header { position: relative; left: 53px; top: 22px; + text-decoration: none; } .vpc-chart li.tier.virtual-router span:hover { diff --git a/ui/images/sprites.png b/ui/images/sprites.png index 71674d13b77..f1f5b8c5820 100644 Binary files a/ui/images/sprites.png and b/ui/images/sprites.png differ diff --git a/ui/scripts/ui-custom/vpc.js b/ui/scripts/ui-custom/vpc.js index a4934bc9836..ab636a867c4 100644 --- a/ui/scripts/ui-custom/vpc.js +++ b/ui/scripts/ui-custom/vpc.js @@ -18,6 +18,8 @@ var elems = { vpcConfigureTooltip: function(args) { var $browser = args.$browser; + var ipAddresses = args.ipAddresses; + var gateways = args.gateways; var siteToSiteVPN = args.siteToSiteVPN; var links = { 'ip-addresses': 'IP Addresses', @@ -38,21 +40,39 @@ $link.appendTo($links); // Link event - $link.click(function() { + $link.click(function() { switch (id) { - case 'site-to-site-vpn': + case 'ip-addresses': + $browser.cloudBrowser('addPanel', { + title: 'IP Addresses', + maximizeIfSelected: true, + complete: function($panel) { + //ipAddresses.listView is a function + $panel.listView(ipAddresses.listView(), {context: ipAddresses.context}); + } + }); + break; + case 'gateways': + $browser.cloudBrowser('addPanel', { + title: 'Gateways', + maximizeIfSelected: true, + complete: function($panel) { + //ipAddresses.listView is a function + $panel.listView(gateways.listView(), {context: gateways.context}); + } + }); + break; + case 'site-to-site-vpn': $browser.cloudBrowser('addPanel', { title: 'Site-to-site VPNs', maximizeIfSelected: true, - complete: function($panel) { - $panel.listView( - $.isFunction(siteToSiteVPN.listView) ? - siteToSiteVPN.listView() : siteToSiteVPN.listView - ); + complete: function($panel) { + //siteToSiteVPN is an object + $panel.listView(siteToSiteVPN, {context: siteToSiteVPN.context}); } }); break; - } + } }); }); @@ -76,9 +96,11 @@ return $tooltip; }, - vpcConfigureArea: function(args) { + vpcConfigureArea: function(args) { var $browser = args.$browser; - var siteToSiteVPN = args.siteToSiteVPN; + var ipAddresses = args.ipAddresses; + var gateways = args.gateways; + var siteToSiteVPN = args.siteToSiteVPN; var $config = $('