X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Ffed4fire%2Ffed4fire_home-view.html;h=bb5b16c22191011d1c17ce423fa420a1472d812d;hb=a228a3f58b5be134ebd4085294da28618c55268e;hp=4d844f3b09b37ce4165179e183f168bfe66a5c22;hpb=37d19f4884a722c14202037ad08300869498b603;p=unfold.git diff --git a/portal/templates/fed4fire/fed4fire_home-view.html b/portal/templates/fed4fire/fed4fire_home-view.html index 4d844f3b..bb5b16c2 100644 --- a/portal/templates/fed4fire/fed4fire_home-view.html +++ b/portal/templates/fed4fire/fed4fire_home-view.html @@ -6,57 +6,16 @@ {% widget '_widget-news.html' %} --> {% if username %} - - +{% widget "_widget-no_credentials.html" %}
- {%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 %} + {%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 pi %}

EXPERIMENT @@ -71,8 +30,8 @@

Your slices @@ -81,15 +40,35 @@

Loading Slices
+

Experiment now

+ + jFed

MANAGEMENT

+
+ +
+
+

Your projects + + +

+
+
+
Loading projects
+
+

@@ -103,7 +82,10 @@

- + +
+
+
@@ -141,8 +123,8 @@

Your slices

@@ -161,7 +143,13 @@

- {%endif%} + {%endif%} +

Experiment now

+ + jFed

@@ -177,6 +165,9 @@
+
+ +

@@ -243,39 +234,38 @@ $('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/"; }); + $('button#projectrequestbtn').click(function() { + window.location="/portal/project_request/"; + }); - /* - 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) { - }); - }); - } + myslice.loadSlices(); }); + + + + {# widget "_widget-monitor.html" #} {# widget "_widget-stats-top-slices.html" #}