X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Finstitution.html;h=8ec395b290295fd28ef08a0bb01ce31bacbfc0e6;hb=3733746e438e9de3ac8225f3ecf869e50ca6e61b;hp=ea404fca5b11c84e55eb34a40988b88932f75467;hpb=1b77de34cb9a655ab718543aafed5ee76b723fca;p=myslice.git diff --git a/portal/templates/institution.html b/portal/templates/institution.html index ea404fca..8ec395b2 100644 --- a/portal/templates/institution.html +++ b/portal/templates/institution.html @@ -89,7 +89,7 @@ $.post("/rest/slice/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { var list_slices = []; var table_slices = []; - /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "user", "slice_urn", "slice_expires" */ + /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "users", "slice_urn", "slice_expires" */ $.each( data, function( key, val ) { list_slices.push( "
  • " + val.slice_hrn + "
  • " ); if(val.nodes=="undefined" || val.nodes==null){ @@ -97,11 +97,10 @@ }else{ nodes_length=val.nodes.length; } - - if(val.user=="undefined" || val.user==null){ - user_length=0; + if(val.users=="undefined" || val.users==null){ + users_length=0; }else{ - user_length=val.user.length; + users_length=val.users.length; } if(val.slice_url=="undefined" || val.slice_url==null){ @@ -113,7 +112,7 @@ slice_row = ""; slice_row += ""; slice_row += "" + val.slice_hrn + ""; - slice_row += ""+user_length+""; + slice_row += ""+users_length+""; slice_row += ""+slice_url+""; slice_row += ""+nodes_length+""; slice_row += ""+val.slice_expires+"";