git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create slice shown only when user is in at least one project
[myslice.git]
/
portal
/
templates
/
base.html
diff --git
a/portal/templates/base.html
b/portal/templates/base.html
index
fd1869e
..
27c17ea
100644
(file)
--- 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;
slices.push("no slice");
}else{
slices = user.slices;
- drawSlices(slices);
+
//
drawSlices(slices);
}
{% if theme == "fed4fire" %}
p = myslice.projects();
if(p != null){
}
{% if theme == "fed4fire" %}
p = myslice.projects();
if(p != null){
- drawProjects(p);
+
//
drawProjects(p);
drawProjectsTree(p,slices);
}
{% endif %}
drawProjectsTree(p,slices);
}
{% endif %}
@@
-126,7
+126,14
@@
$(document).ready(function() {
items_sl = [];
});
$("div#home-project-tree").html($( "<ul/>", { html: items.join( "" ) }));
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();
{% endif %}
{% endif %}
jQuery('[title!=""]').qtip();