X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=7f9bd44921df4a229e232150e9ef29264e936f95;hb=c95c98421985b3d3bcc371d665cf5efb65d2882b;hp=fd1869ee9239d8c51702f5230de6941b584e228c;hpb=bb7c2839a257b071008c32fe4a39eb5e48864368;p=unfold.git diff --git a/portal/templates/base.html b/portal/templates/base.html index fd1869ee..7f9bd449 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -55,6 +55,7 @@ {% insert_str prelude "css/topmenu.css" %} {% insert_str prelude "js/logout.js" %} + @@ -66,7 +67,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 +77,14 @@ $(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 %} @@ -89,20 +92,20 @@ $(document).ready(function() { function drawSlices(slices){ var items = []; - + console.log(slices); $.each( slices, function(i, val) { - items.push( "
  • " + val + "
  • " ); + items.push( "
  • " + val + "
  • " ); }); $("div#home-slice-list").html($( "