X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=4760849629b1b4b766baeb9d8b038242233da580;hb=d0bb04b0886c2a2395c14aa7b2b30f58227f00c7;hp=aed282c1847adaf61fd325cdcd725a7b725a90a7;hpb=38246e458d7376845f110d5dbfcc4d8ae874f277;p=unfold.git diff --git a/portal/templates/base.html b/portal/templates/base.html index aed282c1..47608496 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -21,7 +21,7 @@ - + @@ -66,7 +66,7 @@ This list of slices should go into SESSION ! $(document).ready(function() { {% if username %} myslice.login(function(){ - user = myslice.user(); + user = myslice.get_user(); var slices = []; if($.isEmptyObject(user)){ @@ -76,12 +76,15 @@ $(document).ready(function() { slices.push("no slice"); }else{ slices = user.slices; + {% if theme != "fed4fire" or "onelab" in theme %} drawSlices(slices); + {% endif %} } - {% if theme == "fed4fire" %} - p = myslice.projects(); + {% if theme == "fed4fire" or "onelab" in theme%} + p = myslice.get_projects(); if(p != null){ - drawProjects(p); + //drawProjects(p); + drawProjectsTree(p,slices); } {% endif %} }); @@ -90,22 +93,49 @@ $(document).ready(function() { var items = []; $.each( slices, function(i, val) { - items.push( "
  • " + val + "
  • " ); + items.push( "
  • " + val + "
  • " ); }); $("div#home-slice-list").html($( "