summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-06-05 08:56:06 +0200
committerTobi Oetiker <tobi@oetiker.ch>2008-06-05 08:56:06 +0200
commitfc9d545ce142680a5fb1fedfd0286c0acd0e1ebe (patch)
treed169ab022e45a9d806ab51e91e81e4b155e8e55f /lib
parent5c8d6da392323b37fd85a398b2a493034635c65e (diff)
downloadsmokeping-fc9d545ce142680a5fb1fedfd0286c0acd0e1ebe.tar.gz
smokeping-fc9d545ce142680a5fb1fedfd0286c0acd0e1ebe.tar.xz
add the hash to the hostname
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 98ad8d1..63d2905 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -645,11 +645,13 @@ sub target_menu($$$$;$){
$host = $tree->{$key}{host};
$menuextra = $tree->{$key}{menuextra};
next if $tree->{$key}{hide} and $tree->{$key}{hide} eq 'yes';
- };
+ }
+
# no menuextra for multihost
if (not $host or $host =~ m|^/|){
$menuextra = undef;
}
+
my $class = 'menuitem';
if ($key eq $current ){
if ( @$open ) {
@@ -659,7 +661,7 @@ sub target_menu($$$$;$){
}
};
if ($menuextra){
- $menuextra =~ s/{HOST}/$host/g;
+ $menuextra =~ s/{HOST}/#$host/g;
$menuextra =~ s/{CLASS}/$class/g;
$menuextra = '&nbsp;'.$menuextra;
} else {