nicer rendering of simplelist
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 11 Mar 2013 14:33:50 +0000 (15:33 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 11 Mar 2013 14:33:50 +0000 (15:33 +0100)
plugins/static/css/simplelist.css
plugins/static/js/simplelist.js

index 4293772..9953a25 100644 (file)
@@ -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;
+}
index 7cce7dc..120c6f9 100644 (file)
@@ -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 "<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') {
-            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>";
         }