X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=df8fd9c12773e06d962e484ad48f4e637b5b9fda;hb=979b117cd11dd9d5b7c3f6d5aa74959f9ab60237;hp=940d1c172a092c4d7f511aaff060191dd02d41f2;hpb=67b07f0775cf6e4d3e2b8813f6792af3b2e6e4d1;p=unfold.git diff --git a/portal/templates/base.html b/portal/templates/base.html index 940d1c17..df8fd9c1 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -3,10 +3,11 @@ {{theme}} portal - {{ section }} - + {# This is where insert_str will end up #}{% media_container prelude %} {% include 'messages-transient-header.html' %} + @@ -18,17 +19,23 @@ {% block head %} {% endblock head %} {# let's add these ones no matter what #} {% insert_str prelude "js/jquery.min.js" %} +{% insert_str prelude "js/angular/angular.min.js" %} {% insert_str prelude "js/jquery.html5storage.min.js" %} {% insert_str prelude "js/messages-runtime.js" %} {% insert_str prelude "js/class.js" %} {% insert_str prelude "js/plugin-helper.js" %} {% insert_str prelude "js/mustache.js" %} +{% insert_str prelude "js/hashtable.js" %} {% insert_str prelude "js/plugin.js" %} {% insert_str prelude "js/manifold.js" %} {% insert_str prelude "css/manifold.css" %} {% insert_str prelude "css/plugin.css" %} {% insert_str prelude "js/bootstrap.js" %} {% insert_str prelude "css/bootstrap.css" %} +{% insert_str prelude "js/bootstrap-datepicker.js" %} +{% insert_str prelude "css/datepicker.css" %} +{% insert_str prelude "js/bootstrap-slider.js" %} +{% insert_str prelude "css/slider.css" %} {% insert_str prelude "css/topmenu.css" %} {% insert_str prelude "js/logout.js" %} @@ -62,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($( "