X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fslice-tab-info.html;h=15d85e28503acda9b9ecd3ba26afa4dddcf2fa19;hb=4d26ed18cf30c1e1dc12be165732486bc9510d84;hp=bd10ac38566ad2e43e233639bf2984996da28247;hpb=5a40dbe074a307538769ae873e446323d6a75f39;p=unfold.git diff --git a/portal/templates/slice-tab-info.html b/portal/templates/slice-tab-info.html index bd10ac38..15d85e28 100644 --- a/portal/templates/slice-tab-info.html +++ b/portal/templates/slice-tab-info.html @@ -11,16 +11,17 @@ var table_slices = []; /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "user", "slice_urn", "slice_expires" */ $.each( data, function( key, val ) { + console.log(val); if(val.nodes=="undefined" || val.nodes==null){ nodes_length=0; }else{ nodes_length=val.nodes.length; } - if(val.user=="undefined" || val.user==null){ + if(val.users=="undefined" || val.users==null){ user_length=0; }else{ - user_length=val.user.length; + user_length=val.users.length; } if(val.slice_url=="undefined" || val.slice_url==null){ @@ -32,7 +33,7 @@ slice_row = "Description:"+val.slice_description+""; slice_row += "url:"+val.slice_url+""; slice_row += "users:"+user_length+""; - slice_row += "resources:"+nodes_length+""; + //slice_row += "resources:"+nodes_length+""; slice_row += "created:"+val.created+""; slice_row += "last update:"+val.slice_last_updated+""; slice_row += "expires:"+val.slice_expires+""; @@ -41,4 +42,4 @@ $("div#slice-info").html("" + table_slices.join( "" ) + "
"); }); }); - \ No newline at end of file +