Skip to content

Commit

Permalink
Fix routes display
Browse files Browse the repository at this point in the history
remove bad table formatter
  • Loading branch information
murrant committed Dec 19, 2024
1 parent 99440c7 commit a108764
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions includes/html/pages/device/routing/routes.inc.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
<?php

use Librenms\Config;

$no_refresh = true;
?>
<table id="routes" class="table table-condensed table-hover table-striped">
<thead>
<tr>
<th data-column-id="context_name" data-width="125px" data-formatter="tooltip">VRF</th>
<th data-column-id="context_name" data-width="125px">VRF</th>
<th data-column-id="inetCidrRouteDestType" data-width="70px">Proto</th>
<th data-column-id="inetCidrRouteDest" data-formatter="tooltip">Destination</th>
<th data-column-id="inetCidrRouteDest">Destination</th>
<th data-column-id="inetCidrRoutePfxLen" data-width="80px">Mask</th>
<th data-column-id="inetCidrRouteNextHop" data-formatter="tooltip">Next hop</th>
<th data-column-id="inetCidrRouteIfIndex" data-formatter="tooltip">Interface</th>
<th data-column-id="inetCidrRouteNextHop">Next hop</th>
<th data-column-id="inetCidrRouteIfIndex">Interface</th>
<th data-column-id="inetCidrRouteMetric1" data-width="85px">Metric</th>
<th data-column-id="inetCidrRouteType" data-width="85px">Type</th>
<th data-column-id="inetCidrRouteProto" data-width="85px">Proto</th>
<th data-column-id="created_at" data-width="165px" data-formatter="tooltip">First seen</th>
<th data-column-id="updated_at" data-width="165px" data-formatter="tooltip">Last seen</th>
<th data-column-id="created_at" data-width="165px">First seen</th>
<th data-column-id="updated_at" data-width="165px">Last seen</th>
</tr>
</thead>
</table>
Expand Down Expand Up @@ -46,15 +47,6 @@
showProtocols: list_showProtocols
};
},
formatters: {
"tooltip": function (column, row) {
var value = row[column.id];
if (value.includes('onmouseover=')) {
return value;
}
return "<span title=\'" + value + "\' data-toggle=\'tooltip\'>" + value + "</span>";
},
},
url: "ajax/table/routes"
});

Expand Down

0 comments on commit a108764

Please sign in to comment.