From 08cf8f5ad12df97137284f2d474582bc5851cb45 Mon Sep 17 00:00:00 2001 From: Ciro Scognamiglio Date: Thu, 16 Apr 2015 16:58:10 +0200 Subject: [PATCH] create slice shown only when user is in at least one project --- portal/static/css/fed4fire.css | 3 +++ portal/templates/base.html | 11 +++++++++-- portal/templates/fed4fire/fed4fire_home-view.html | 5 +++-- 3 files changed, 15 insertions(+), 4 deletions(-) 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($( "