From: Loic Baron Date: Wed, 29 Oct 2014 15:12:15 +0000 (+0100) Subject: Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab X-Git-Tag: myslice-1.1~13^2~9^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5a690e87a71059403fe3872a5a11b437f22f0438;hp=fce39be95fe05bccd1d6b6435451f663df728e97;p=myslice.git Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab --- diff --git a/portal/templates/base.html b/portal/templates/base.html index 0f2ecb52..df8fd9c1 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -69,11 +69,27 @@ $(document).ready(function() { slices = user.slices; drawSlices(slices); } + + /* + Launch queries to get the resources and leases in Manifold Cache + */ + + $.post("/rest/resource/", function( data ) { + }); + $.post("/rest/lease/", function( data ) { + }); + + function drawSlices(slices){ var items = []; $.each( slices, function(i, val) { items.push( "
  • " + val + "
  • " ); + /* + Launch a Query for each slice to get resources and leases in Manifold Cache + */ + $.post("/rest/slice/", { 'filters': { 'slice_hrn' : val } }, function(data) { + }); }); $("div#home-slice-list").html($( "