From: Ciro Scognamiglio Date: Thu, 16 Apr 2015 14:58:10 +0000 (+0200) Subject: create slice shown only when user is in at least one project X-Git-Tag: myslice-1.3~37^2~4 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=08cf8f5ad12df97137284f2d474582bc5851cb45 create slice shown only when user is in at least one project --- diff --git a/portal/static/css/fed4fire.css b/portal/static/css/fed4fire.css index 735e78e2..99e57d40 100644 --- a/portal/static/css/fed4fire.css +++ b/portal/static/css/fed4fire.css @@ -717,6 +717,9 @@ div.dashboard span.glyphicon { width:45px; height:25px; } +div.dashboard-create-slice { + display:none; +} div.experiment-tools { } div.experiment-tools h4 { diff --git a/portal/templates/base.html b/portal/templates/base.html index fd1869ee..27c17ea7 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -76,12 +76,12 @@ $(document).ready(function() { slices.push("no slice"); }else{ slices = user.slices; - drawSlices(slices); + //drawSlices(slices); } {% if theme == "fed4fire" %} p = myslice.projects(); if(p != null){ - drawProjects(p); + //drawProjects(p); drawProjectsTree(p,slices); } {% endif %} @@ -126,7 +126,14 @@ $(document).ready(function() { items_sl = []; }); $("div#home-project-tree").html($( "