X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Ffed4fire%2Ffed4fire_home-view.html;h=4cca20be3dd9c2a5044640de515f8b0e8a08bbf0;hb=6a3567b52967c88239e0ee7fa5e1dc18aa60c595;hp=a3cf9b248712b95ebd4ebab341044df48b424fda;hpb=fe44e41f6699681b3426d10377568428c7264293;p=unfold.git diff --git a/portal/templates/fed4fire/fed4fire_home-view.html b/portal/templates/fed4fire/fed4fire_home-view.html index a3cf9b24..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,18 +64,28 @@

- + +
+
+

Your slices + + + +

Loading Slices
-
- -
-
- -
+

Experiment now

+ + jFed

MANAGEMENT

@@ -43,11 +101,18 @@ SUPPORT
- +
+

+
+ +
+
+ +
@@ -64,10 +129,93 @@ {% if person.last_name %} {{person.first_name}} {{person.last_name}}
{% endif %} - Email: {{person.email}} + 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 %} + Username: {{person.email}} +
+
+
+ {%endif%} + {% else %}
@@ -75,10 +223,13 @@

- Your Easy Access to Computer Networking Testbeds. + Fed4FIRE Portal

- A wide variety of world class testbeds available through your one account. + Your easy access to Future Internet Research and Experimentation testbeds belonging to the Fed4FIRE federation. +

+

+ Want to learn more?

@@ -101,22 +252,67 @@ $('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/"; }); + $('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 %}