modified returned object from rest/user
authorCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Tue, 25 Feb 2014 15:58:37 +0000 (16:58 +0100)
committerCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Tue, 25 Feb 2014 15:58:37 +0000 (16:58 +0100)
portal/templates/onelab/onelab_home-view.html

index 6777eb3..233eb02 100644 (file)
                {% if person %}
                $.getJSON("rest/user", function( data ) {
                  var items = [];
-                 $.each( data[0].slices, function( key, val ) {
-                   items.push( "<li><a href=\"portal/slice/"+val+"\">" + val + "</a></li>" );
+                 $.each( data[0].slice, function( key, val ) {
+                       items.push( "<li><a href=\"portal/slice/"+val.slice_hrn+"\">" + val.slice_hrn + "</a></li>" );
                  });
                  
                  $("div#home-slice-list").html($( "<ul/>", { html: items.join( "" ) }));