From 1e2a468758d79b3f48a6b5ab78a570ddd8fc7e22 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 11 Mar 2013 15:33:50 +0100 Subject: [PATCH] nicer rendering of simplelist --- plugins/static/css/simplelist.css | 7 +++++++ plugins/static/js/simplelist.js | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) 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 + "
  • "; } -- 2.43.0