git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a52e4ba
)
Dashboard: list of legacy slices bugfix
author
Loic Baron
<loic.baron@lip6.fr>
Wed, 13 May 2015 10:46:01 +0000
(12:46 +0200)
committer
Loic Baron
<loic.baron@lip6.fr>
Wed, 13 May 2015 10:46:01 +0000
(12:46 +0200)
portal/templates/base.html
patch
|
blob
|
history
diff --git
a/portal/templates/base.html
b/portal/templates/base.html
index
841dca9
..
ce31ce0
100644
(file)
--- a/
portal/templates/base.html
+++ b/
portal/templates/base.html
@@
-119,7
+119,7
@@
$(document).ready(function() {
if (s.match('^' + escapeRegExp(p))) {
slicename = s.replace(p + '.','')
items_sl.push( "<li><a href=\"/resources/" + s + "\" title='Add resources to slice "+slicename+"'><img src='/static/img/icon_slices_small.png' style='width: 12px;'> " + slicename + "</a></li>" );
if (s.match('^' + escapeRegExp(p))) {
slicename = s.replace(p + '.','')
items_sl.push( "<li><a href=\"/resources/" + s + "\" title='Add resources to slice "+slicename+"'><img src='/static/img/icon_slices_small.png' style='width: 12px;'> " + slicename + "</a></li>" );
- }else{
+ }else
if(s.split('.').length < 4)
{
slices_no_project.push( "<li><a href=\"/resources/" + s + "\" title='Add resources to slice "+s+"'><img src='/static/img/icon_slices_small.png' style='width: 12px;'> " + s + "</a></li>" );
}
});
slices_no_project.push( "<li><a href=\"/resources/" + s + "\" title='Add resources to slice "+s+"'><img src='/static/img/icon_slices_small.png' style='width: 12px;'> " + s + "</a></li>" );
}
});