X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Ffed4fire%2Ffed4fire_home-view.html;h=f0d2387b19d3c0b9779276da2ad53f4bdbb798e2;hb=cd417eba7221258a2d0cc204d545cd7bed01cd6a;hp=edd88a8823a32988cb7e87fd2d0741c2eb41a4fb;hpb=6e8f0dd20d7bc7fd5edec2746f4c150a2597924c;p=unfold.git diff --git a/portal/templates/fed4fire/fed4fire_home-view.html b/portal/templates/fed4fire/fed4fire_home-view.html index edd88a88..f0d2387b 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

+ + jFed

MANAGEMENT

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

+
+ +
@@ -67,10 +126,90 @@ {% 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 %}
@@ -78,10 +217,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?

@@ -104,25 +246,50 @@ $('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#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 %}