From 9684bf9151df4050813361ab4816e9c07a1ba08d Mon Sep 17 00:00:00 2001 From: Rezende & Pedro & Carlos & Raphael Date: Fri, 3 Oct 2014 17:49:22 -0300 Subject: [PATCH] mgt/slice tab: show only the first user (TO BE MODIFIED) --- portal/templates/fibre/fibre_institution.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/portal/templates/fibre/fibre_institution.html b/portal/templates/fibre/fibre_institution.html index 3ee7a553..1d6cf97e 100644 --- a/portal/templates/fibre/fibre_institution.html +++ b/portal/templates/fibre/fibre_institution.html @@ -103,8 +103,8 @@ $(document).ready(function() { 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).indexOf("@") != -1){ - if(String(val.users).split("@")[1] == username.split("@")[1]){ + 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; @@ -127,14 +127,14 @@ $(document).ready(function() { slice_row = ""; slice_row += ""; slice_row += "" + val.slice_hrn + ""; - slice_row += ""+users_length+""; + slice_row += ""+val.users[0]+""; slice_row += ""+slice_url+""; //slice_row += ""+nodes_length+""; slice_row += ""+val.slice_expires+""; slice_row += ""; table_slices.push(slice_row); } - } + } }); /* $("div#slice-list").html($( "