X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Ffed4fire%2Ffed4fire_home-view.html;h=4cca20be3dd9c2a5044640de515f8b0e8a08bbf0;hb=6a3567b52967c88239e0ee7fa5e1dc18aa60c595;hp=09e4731c0f737593fc90cd5808ba17f695b55961;hpb=503c38854717cf2f728fddaf1b22ace04be8f83c;p=unfold.git diff --git a/portal/templates/fed4fire/fed4fire_home-view.html b/portal/templates/fed4fire/fed4fire_home-view.html index 09e4731c..4cca20be 100644 --- a/portal/templates/fed4fire/fed4fire_home-view.html +++ b/portal/templates/fed4fire/fed4fire_home-view.html @@ -6,8 +6,56 @@ {% widget '_widget-news.html' %} --> {% if username %} + +
+ {%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 %}

EXPERIMENT @@ -16,21 +64,28 @@

- + +
+
+

Your slices + + + +

Loading Slices
-
-

Experiment now

-
-
- Experiment now + jFed -

MANAGEMENT

@@ -46,15 +101,18 @@ SUPPORT
- +
- +

+
+ +
@@ -65,16 +123,99 @@
- + +
+
+ {% if person.last_name %} + {{person.first_name}} {{person.last_name}}
+ {% endif %} + Username: {{person.email}} +
+
+ + {%else%} +
+
+

+ EXPERIMENT +

+
+ +
+
+ +
+
+

Your slices + + +

+
+
+
Loading Slices
+
+ {% if pending_slices %} +

Pending slices + +

+ +

+ {%endif%} +

Experiment now

+ + jFed +
+
+

+ SUPPORT +

+
+ +
+
+ +
+

+
+ +
+
+ +
+
+ +
+

+ ACCOUNT +

+
+ +
+
+
{% if person.last_name %} {{person.first_name}} {{person.last_name}}
{% endif %} - Email: {{person.email}} + Username: {{person.email}}
+ {%endif%} + {% else %}
@@ -111,7 +252,7 @@ $('div#'+$(this).data('panel')).show(); }); $('button#validaterequestbtn').click(function() { - window.location="/portal/validate/"; + window.location="/portal/institution#requests"; }); $('button#ticketbtn').click(function() { window.location="/portal/contact/"; @@ -119,19 +260,44 @@ $('button#statbtn').click(function() { window.location="https://flsmonitor.fed4fire.eu"; }); + $('button#repbtn').click(function() { + window.location="/portal/reputation"; + }); $('button#signupbtn').click(function() { window.location="/portal/register/"; }); $('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" #} +{# widget "_widget-stats-top-slices.html" #} + {% endblock %}