From: Yasin Date: Wed, 23 Apr 2014 09:48:27 +0000 (+0200) Subject: Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab X-Git-Tag: myslice-1.1~131 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=00dc99e4482d8f4086e6595ec192855c83a1439a;hp=5cef9949c25228e0b8c9d342ad9c40fe386f5396;p=myslice.git Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab --- diff --git a/portal/templates/home-view.html b/portal/templates/home-view.html index d31c3e02..c0086922 100644 --- a/portal/templates/home-view.html +++ b/portal/templates/home-view.html @@ -42,14 +42,11 @@
Loading Slices
{% else %} + {% endif %} - -
- Contact
- -
+ @@ -103,6 +100,9 @@ $('button#ticketbtn').click(function() { window.location="/portal/contact/"; }); + $('button#signupbtn').click(function() { + window.location="/portal/register/"; + }); $('button#slicerequestbtn').click(function() { window.location="/portal/slice_request/"; }); diff --git a/portal/templates/institution.html b/portal/templates/institution.html index ea404fca..8ec395b2 100644 --- a/portal/templates/institution.html +++ b/portal/templates/institution.html @@ -89,7 +89,7 @@ $.post("/rest/slice/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { var list_slices = []; var table_slices = []; - /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "user", "slice_urn", "slice_expires" */ + /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "users", "slice_urn", "slice_expires" */ $.each( data, function( key, val ) { list_slices.push( "
  • " + val.slice_hrn + "
  • " ); if(val.nodes=="undefined" || val.nodes==null){ @@ -97,11 +97,10 @@ }else{ nodes_length=val.nodes.length; } - - if(val.user=="undefined" || val.user==null){ - user_length=0; + if(val.users=="undefined" || val.users==null){ + users_length=0; }else{ - user_length=val.user.length; + users_length=val.users.length; } if(val.slice_url=="undefined" || val.slice_url==null){ @@ -113,7 +112,7 @@ slice_row = ""; slice_row += ""; slice_row += "" + val.slice_hrn + ""; - slice_row += ""+user_length+""; + slice_row += ""+users_length+""; slice_row += ""+slice_url+""; slice_row += ""+nodes_length+""; slice_row += ""+val.slice_expires+""; diff --git a/portal/templates/onelab/onelab_institution.html b/portal/templates/onelab/onelab_institution.html index 1b6a1224..0a424fab 100644 --- a/portal/templates/onelab/onelab_institution.html +++ b/portal/templates/onelab/onelab_institution.html @@ -145,7 +145,7 @@ $.post("/rest/slice/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { var list_slices = []; var table_slices = []; - /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "user", "slice_urn", "slice_expires" */ + /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "users", "slice_urn", "slice_expires" */ $.each( data, function( key, val ) { list_slices.push( "
  • " + val.slice_hrn + "
  • " ); if(val.nodes=="undefined" || val.nodes==null){ @@ -153,11 +153,11 @@ }else{ nodes_length=val.nodes.length; } - - if(val.user=="undefined" || val.user==null){ - user_length=0; + console.log(val); + if(val.users=="undefined" || val.users==null){ + users_length=0; }else{ - user_length=val.user.length; + users_length=val.users.length; } if(val.slice_url=="undefined" || val.slice_url==null){ @@ -169,7 +169,7 @@ slice_row = ""; slice_row += ""; slice_row += "" + val.slice_hrn + ""; - slice_row += ""+user_length+""; + slice_row += ""+users_length+""; slice_row += ""+slice_url+""; slice_row += ""+nodes_length+""; slice_row += ""+val.slice_expires+"";