X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=08b910d23a223a507e71cecd75e7d61f4f1147fd;hb=3a35ca5961754c1a0b8cbdd7aa717dcd837f3a43;hp=5a1248cdedb548894123e3942abf63b358c1eecd;hpb=6eb98c83dccb555e576740d8000d6fad8044763f;p=unfold.git diff --git a/portal/templates/base.html b/portal/templates/base.html index 5a1248cd..08b910d2 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" %} + @@ -76,11 +77,11 @@ $(document).ready(function() { slices.push("no slice"); }else{ slices = user.slices; - {% if theme != "fed4fire" %} + {% if theme != "fed4fire" or "onelab" in theme %} drawSlices(slices); {% endif %} } - {% if theme == "fed4fire" %} + {% if theme == "fed4fire" or "onelab" in theme%} p = myslice.get_projects(); if(p != null){ //drawProjects(p); @@ -91,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($( "