mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
fix device health tab links
git-svn-id: http://www.observium.org/svn/observer/trunk@2502 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -40,6 +40,10 @@ $type_text['frequency'] = "Frequency";
|
|||||||
$type_text['current'] = "Current";
|
$type_text['current'] = "Current";
|
||||||
$type_text['power'] = "Power";
|
$type_text['power'] = "Power";
|
||||||
|
|
||||||
|
$link_array = array('page' => 'device',
|
||||||
|
'device' => $device['device_id'],
|
||||||
|
'tab' => 'health');
|
||||||
|
|
||||||
print_optionbar_start();
|
print_optionbar_start();
|
||||||
|
|
||||||
echo("<span style='font-weight: bold;'>Health</span> » ");
|
echo("<span style='font-weight: bold;'>Health</span> » ");
|
||||||
@@ -53,7 +57,6 @@ foreach ($datas as $type)
|
|||||||
|
|
||||||
if ($vars['metric'] == $type)
|
if ($vars['metric'] == $type)
|
||||||
{ echo('<span class="pagemenu-selected">'); }
|
{ echo('<span class="pagemenu-selected">'); }
|
||||||
|
|
||||||
echo(generate_link($type_text[$type],$link_array,array('metric'=>$type)));
|
echo(generate_link($type_text[$type],$link_array,array('metric'=>$type)));
|
||||||
if ($vars['metric'] == $type) { echo("</span>"); }
|
if ($vars['metric'] == $type) { echo("</span>"); }
|
||||||
$sep = " | ";
|
$sep = " | ";
|
||||||
|
|||||||
Reference in New Issue
Block a user