From 1d34262ea4f143f31c95fb4cfc78e945cb00afe3 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Thu, 10 Dec 2015 17:09:52 +0100 Subject: [PATCH] Cloud plugin style --- portal/templates/slice-tab-cloud.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/portal/templates/slice-tab-cloud.html b/portal/templates/slice-tab-cloud.html index c92b416b..247da1ba 100644 --- a/portal/templates/slice-tab-cloud.html +++ b/portal/templates/slice-tab-cloud.html @@ -401,7 +401,11 @@ function render_node(platform, node, state){ if(sliver instanceof Array){ client_id = sliver['@name']; }else{ - client_id = node['@client_id']; + if ('@sliver_name' in sliver){ + client_id = sliver['@sliver_name']; + }else{ + client_id = node['@client_id']; + } } if ('@component_name' in node){ node_name = node['@component_name'] @@ -417,10 +421,10 @@ function render_node(platform, node, state){ if(state=='pending_add'){ $("#"+id).append("
"); }else{ - $("#"+id).append("
 
"); + $("#"+id).append("
 
"); } - $("#"+id).append("
"+node_name+"
"); - $("#"+id).append("
"+client_id+"
"); + $("#"+id).append("
"+node_name+"
"); + $("#"+id).append("
"+client_id+"
"); if('openstack:flavor' in node[key_sliver]){ $("#"+id).append("
"+sliver['openstack:flavor']['@name']+"
"); $("#"+id).append("
"+sliver['openstack:flavor']['openstack:image']['@name']+"
"); @@ -561,7 +565,7 @@ $(document).ready(function() {

{{ platform }}

// display only if VMs already in slice

VMs in slice {{slicename}}

-