mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add SysName to Oxidized view (#10012)
* Add sysName to Oxidized view * Add sysName to Oxidized view * Add force_ip_to_sysname check * Add force_ip_to_sysname check * Add force_ip_to_sysname check Config::get method * Add force_ip_to_sysname check Config::get method * Add force_ip_to_sysname check loose comparison * Add force_ip_to_sysname check loose comparison * Fix Spacing - Travis check * Fix Spacing - Travis check * Travis Check * Travis Check * Travis check changes * Whitespace Travis Check * Replace ifcheck with ternary operator Always send column id tag, but hide SysName conditionally * Move php tags * Remove ifcheck
This commit is contained in:
@@ -1350,6 +1350,9 @@ function get_oxidized_nodes_list()
|
||||
echo "
|
||||
</td>
|
||||
<td>
|
||||
" . $device['sysName'] . "
|
||||
</td>
|
||||
<td>
|
||||
<i class='fa fa-square text-" . $fa_color . "'></i>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -30,6 +30,7 @@ $pagetitle[] = 'Oxidized';
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-column-id="hostname" data-order="desc">Hostname</th>
|
||||
<th data-column-id="sysname" data-visible=" <?php echo (!Config::get('force_ip_to_sysname') ? 'true' : 'false') ?>">SysName</th>";
|
||||
<th data-column-id="last_status">Last Status</th>
|
||||
<th data-column-id="last_update">Last Update</th>
|
||||
<th data-column-id="model">Model</th>
|
||||
|
||||
Reference in New Issue
Block a user