From: Thierry Parmentelat Date: Mon, 11 Mar 2013 14:33:50 +0000 (+0100) Subject: nicer rendering of simplelist X-Git-Tag: myslice-django-0.1-1~38 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=1e2a468758d79b3f48a6b5ab78a570ddd8fc7e22 nicer rendering of simplelist --- diff --git a/plugins/static/css/simplelist.css b/plugins/static/css/simplelist.css index 42937724..9953a253 100644 --- a/plugins/static/css/simplelist.css +++ b/plugins/static/css/simplelist.css @@ -4,3 +4,10 @@ select { div.dataTables_filter input[type=text] { width: 60; } +li.slice-hrn, li.network-hrn { + padding: 0; + list-style: none; +} +li.slice-hrn>a { + padding-left: 8px; +} diff --git a/plugins/static/js/simplelist.js b/plugins/static/js/simplelist.js index 7cce7dcc..120c6f96 100644 --- a/plugins/static/js/simplelist.js +++ b/plugins/static/js/simplelist.js @@ -80,12 +80,12 @@ simplelist_debug=false; 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') { - return "
  • " + value + cached + "
  • "; + return "
  • " + value + cached + "
  • "; } else if (key == 'network_hrn') { - return "
  • " + value + cached + "
  • "; + return "
  • " + value + cached + "
  • "; } else { return "
  • " + value + "
  • "; }