git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicer rendering of simplelist
[unfold.git]
/
plugins
/
static
/
js
/
simplelist.js
diff --git
a/plugins/static/js/simplelist.js
b/plugins/static/js/simplelist.js
index
7cce7dc
..
120c6f9
100644
(file)
--- a/
plugins/static/js/simplelist.js
+++ b/
plugins/static/js/simplelist.js
@@
-80,12
+80,12
@@
simplelist_debug=false;
return out;
}
return out;
}
- function myslice_html_li(key, value) {
- var cached =
''
;
+ function myslice_html_li(key, value
,is_cached
) {
+ var cached =
is_cached ? "(cached)" : ""
;
if (key == 'slice_hrn') {
if (key == 'slice_hrn') {
- return "<li class='
icn icn-play'
><a href='/slice/" + value + "'>" + value + cached + "</a></li>";
+ return "<li class='
slice-hrn'><i class='icon-play-circle'></i
><a href='/slice/" + value + "'>" + value + cached + "</a></li>";
} else if (key == 'network_hrn') {
} else if (key == 'network_hrn') {
- return "<li class='
icn icn-play'
>" + value + cached + "</li>";
+ return "<li class='
network-hrn'><i class='icon-play-circle'></i
>" + value + cached + "</li>";
} else {
return "<li>" + value + "</li>";
}
} else {
return "<li>" + value + "</li>";
}