X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Ffibre%2Ffibre_institution.html;h=3e3d415b7dba0a0607ae5bcb7a2c2a301dfb2348;hb=bb98f1e7f4d1d2692b0405377c8f7c7466d72aee;hp=b58f3c411fa0a1c9b12aa980e78b99f1e81b2786;hpb=22d09f122df0baa7f9d033e687b0422ea12b0e07;p=myslice.git diff --git a/portal/templates/fibre/fibre_institution.html b/portal/templates/fibre/fibre_institution.html index b58f3c41..3e3d415b 100644 --- a/portal/templates/fibre/fibre_institution.html +++ b/portal/templates/fibre/fibre_institution.html @@ -95,13 +95,10 @@ $(document).ready(function() { {% if user_details.parent_authority %} $.post("/rest/slice/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { - var username = "{{person.username}}"; var list_slices = []; var table_slices = []; /* "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 ) { - if(String(val.users[0]).indexOf("@") != -1){ - if(String(val.users[0]).split("@")[1] == username.split("@")[1]){ list_slices.push( "
  • " + val.slice_hrn + "
  • " ); if(val.nodes=="undefined" || val.nodes==null){ nodes_length=0; @@ -130,8 +127,6 @@ $(document).ready(function() { slice_row += ""+val.slice_expires+""; slice_row += ""; table_slices.push(slice_row); - } - } }); /* $("div#slice-list").html($( "