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 %}
items_sl = [];
});
$("div#home-project-tree").html($( "<ul/>", { html: items.join( "" ) }));
+ if (projects.length > 0) {
+ $('.dashboard-create-slice').show();
+ }
}
+
+ window.setTimeout(function() {
+ $('.projects-loading').hide();
+ },10000);
{% endif %}
{% endif %}
jQuery('[title!=""]').qtip();
<div>
<span class="glyphicon glyphicon-cog"></span> <a href="/portal/project_request/">Create/Join project</a>
- <br />
+ </div>
+ <div class="dashboard-create-slice">
<span class="glyphicon glyphicon-plus"></span> <a href="/portal/slice_request/">Create slice</a>
</div>
<div class="projects-tree">
those slices will not appear here. <br /><br /> A <b>project</b> is a sub-authority under the responsability of your institution gathering users,
who will be able to create slices for their experiments." class="glyphicon glyphicon-info-sign"> </span>
- <div id="home-project-tree"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading projects" /></div>
+ <div id="home-project-tree"><img class="projects-loading" src="{{ STATIC_URL }}img/loading.gif" alt="Loading projects" /></div>
</div>
<div class="experiment-tools">