X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fstatic%2Fjs%2Fsimplelist.js;h=120c6f9686102860c1a05dce7d2da77ea1194eb3;hb=1e2a468758d79b3f48a6b5ab78a570ddd8fc7e22;hp=7cce7dcc39bd651d881b68e876e8a9c5776e0eeb;hpb=ed83c34a12ada274e6ac7c17c95a252b57a685a3;p=myslice.git 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 + "
  • "; }