mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Keeps the look more in line with the navigation bar icons. In the future with Bootstrap 4, Glyphicons will not be included, so this starts the transistions away.
39 lines
1.5 KiB
PHP
39 lines
1.5 KiB
PHP
<div class="table-responsive">
|
|
<table id="storage" class="table table-hover table-condensed storage">
|
|
<thead>
|
|
<tr>
|
|
<th data-column-id="hostname">Device</th>
|
|
<th data-column-id="storage_descr">Storage</th>
|
|
<th data-column-id="graph" data-sortable="false" data-searchable="false"></th>
|
|
<th data-column-id="storage_used" data-searchable="false">Used</th>
|
|
<th data-column-id="storage_perc" data-searchable="false">Usage</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
|
|
<script>
|
|
var grid = $("#storage").bootgrid({
|
|
ajax: true,
|
|
rowCount: [25,50,100,250,-1],
|
|
post: function ()
|
|
{
|
|
return {
|
|
id: "storage",
|
|
view: '<?php echo $vars['view']; ?>'
|
|
};
|
|
},
|
|
url: "ajax_table.php",
|
|
formatters: {
|
|
"status": function(column,row) {
|
|
return "<h4><span class='label label-"+row.extra+" threeqtr-width'>" + row.msg + "</span></h4>";
|
|
},
|
|
"ack": function(column,row) {
|
|
return "<button type='button' class='btn btn-"+row.ack_col+" btn-sm command-ack-alert' data-target='#ack-alert' data-state='"+row.state+"' data-alert_id='"+row.alert_id+"' name='ack-alert' id='ack-alert' data-extra='"+row.extra+"'><i class='fa fa-"+row.ack_ico+"'aria-hidden='true'></i></button>";
|
|
}
|
|
},
|
|
templates: {
|
|
}
|
|
});
|
|
</script>
|