Dashboard: link to a single platform in the list of testbeds - http://trac.myslice...
[unfold.git] / plugins / lists / static / js / simplelist.js
index aed6217..6a61ca5 100644 (file)
            $plugindiv.closest('.need-spin').spin(false);
 
         if (rows.length == 0) {
-               if (use_datatables)
-                 datatables_set_message ($table, $tbody, unfold.warning("No result"));
-               else
-                       regular_set_message ($table, $tbody, unfold.warning("No result"));
+           if (use_datatables)
+                datatables_set_message ($table, $tbody, unfold.warning("No result"));
+           else
+               regular_set_message ($table, $tbody, unfold.warning("No result"));
             return;
         }
 
@@ -94,8 +94,8 @@
     // hard-wire a separate presentation depending on the key being used....
     function cell(key, value) {
         if (key == 'slice.slice_hrn') {
-            return "<i class='icon-play-circle'></i><a href='/slice/" + value + "'>" + value + "</a>";
-        } else if (key == 'network_hrn') {
+            return "<i class='icon-play-circle'></i><a href='/portal/slice/" + value + "'>" + value + "</a>";
+        } else if (key == 'platform') {
             return "<i class='icon-play-circle'></i><a href='/portal/platform/" + value + "'>" + value + "</a>";
         } else {
             return value;