r2153 - done overhaul of tag stats report
[racktables] / inc / interface.php
index 5012bd291e5400ff012e45cebec6e3f12a78a4c9..576a2da40848a959396043670227c7c7b31ab64a 100644 (file)
@@ -3503,9 +3503,9 @@ function renderSystemReports ()
                ),
                array
                (
-                       'title' => 'Tag popularity',
-                       'type' => 'counters',
-                       'func' => 'getTagStats'
+                       'title' => 'Tags top-50',
+                       'type' => 'custom',
+                       'func' => 'renderTagStats'
                ),
        );
        renderReports ($systemreports);
@@ -3532,7 +3532,9 @@ function renderReports ($what)
                                        echo "<tr><td class=tdright>${header}:</td><td class=tdleft>${data}</td></tr>\n";
                                break;
                        case 'custom':
+                               echo "<tr><td colspan=2>";
                                $item['func'] ();
+                               echo "</td></tr>\n";
                                break;
                        default:
                                showError ('Internal data error', __FUNCTION__);