use just four targets: pids, server, couch and client
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Sep 2009 21:11:23 +0000 (21:11 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Sep 2009 21:11:23 +0000 (21:11 +0000)
which allows us to nicely separate menu into partsi
which open in new tabs (just 4 of them)

lib/PXElator/httpd.pm

index 085e575..a342e83 100644 (file)
@@ -71,13 +71,16 @@ sub menu {
        $couch_url =~ s{:\d+.+}{:5984/_utils/};
 qq{
 <div style="font-size: 80%; color: #888">
-<a href=/ target=/>home</a>
-<a href=/server target=server>server</a>
-<a href=/brctl target=brctl>brctl</a>
-<a href=/ip target=ip>ip</a>
-<a href=/nmap target=nmap>nmap</a>
-<a href=/client target=client>client</a>
-<a href=$couch_url target=couchdb>couchdb</a>
+<a target=pids href=/ >home</a>
+|
+<a target=server href=/server >server</a>
+<a target=server href=/brctl >brctl</a>
+<a target=server href=/ip >ip</a>
+|
+<a target=couch href=$couch_url >couchdb</a>
+|
+<a target=client href=/nmap >nmap</a>
+<a target=client href=/client >client</a>
 </div>
 
 }}
@@ -363,7 +366,7 @@ warn "XXX pids = ", dump( $daemons::pids );
                                                my $ip_text = qq|<tt>$ip</tt>|;
                                                $ip_text = qq|<tt><b>$ip</b></tt>| if ip::in_dhcp_range($ip);
                                                (
-                                                       qq|<a $style name=$ip target=$ip href=/client/$ip>$ip_text</a>|
+                                                       qq|<a $style name=$ip target=client href=/client/$ip>$ip_text</a>|
                                                        , format::mac( $mac => 'html' )
                                                        , $arp->{$mac}
                                                        , delete $conf->{hostname}