From: Loic Baron Date: Wed, 13 May 2015 10:53:06 +0000 (+0200) Subject: Dashboard: list slices fix if 0 project X-Git-Tag: myslice-1.5~43 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=3a35ca5961754c1a0b8cbdd7aa717dcd837f3a43 Dashboard: list slices fix if 0 project --- 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($( "