X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=08b910d23a223a507e71cecd75e7d61f4f1147fd;hb=3a35ca5961754c1a0b8cbdd7aa717dcd837f3a43;hp=ce31ce05e24079bd496acdcd09c56c79d39d0268;hpb=7a41f0985a9af46e9678f5d2a647e584df149278;p=unfold.git diff --git a/portal/templates/base.html b/portal/templates/base.html index ce31ce05..08b910d2 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -131,12 +131,16 @@ $(document).ready(function() { items.push(el); items_sl = []; }); - - elm = '
  • other slices  '; + if (projects.length == 0){ + $.each( slices, function(y, s) { + slices_no_project.push( "
  • " + s + "
  • " ); + }); + } if (slices_no_project.length > 0) { + elm = '
  • other slices  '; elm += ""; + elm += "
  • "; } - elm += ""; items.push(elm); $("div#home-project-tree").html($( "