X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fonelab%2Fonelab_home-view.html;h=9170b4af07ba24d69197822b8745168ed45f1a64;hb=95acb4a32b2a19bbf47e7f3f4de462e8f07e0327;hp=944bcbe6707fb7f34830944db7bf9087c1c0fc04;hpb=109ed808530a69d0779c8a8d9fee34e6149f2bf7;p=myslice.git
diff --git a/portal/templates/onelab/onelab_home-view.html b/portal/templates/onelab/onelab_home-view.html
index 944bcbe6..9170b4af 100644
--- a/portal/templates/onelab/onelab_home-view.html
+++ b/portal/templates/onelab/onelab_home-view.html
@@ -51,6 +51,9 @@
{%if 'no_creds' in user_cred %}
NO CREDENTIALS are delegated to the portal!
{%endif%}
+ {%if 'creds_expired' in user_cred %}
+ EXPIRED CREDENTIALS Please delegate again your credentials to the portal!
+ {%endif%}
{%if 'is_pi' in pi %}
@@ -232,11 +235,31 @@
$('button#slicerequestbtn').click(function() {
window.location="/portal/slice_request/";
});
-/*-------
-List of slices has been moved in
-portal/templates/base.html
-This should go into session
---------*/
+
+ /*
+ Launch queries to get the resources and leases in Manifold Cache
+ */
+
+ $.post("/rest/resource/", function( data ) {
+ });
+ $.post("/rest/lease/", function( data ) {
+ });
+
+ /*-------
+ List of slices has been moved in
+ portal/templates/base.html
+ This is now in localStorage
+ --------*/
+ // myslice.user is in LocalStorage
+ if(myslice.user.slices.length>0){
+ $.each( myslice.user.slices, function(i, val) {
+ /*
+ Launch a Query for each slice to get resources and leases in Manifold Cache
+ */
+ $.post("/rest/slice/", { 'filters': { 'slice_hrn' : val } }, function(data) {
+ });
+ });
+ }
});
{# widget "_widget-monitor.html" #}