]> mj.ucw.cz Git - pciids.git/commitdiff
Print path to a line
authorMichal Vaner <vorner@ucw.cz>
Sun, 31 Aug 2008 16:58:23 +0000 (18:58 +0200)
committerMichal Vaner <vorner@ucw.cz>
Sun, 31 Aug 2008 16:58:23 +0000 (18:58 +0200)
PciIds/Html/List.pm
PciIds/Html/Util.pm

index f4fbdb9dfdd5a16dcd481414e2c9ff7f79e88524..c4d4d4580ee8c201730ce4bcd1c437c7e1661271 100644 (file)
@@ -27,9 +27,9 @@ sub list( $$$$ ) {
        print "<div class='top'>\n";
        print '<h1>'.encode( $id ).'</h1>';
        genMenu( $req, $address, $args, $auth, [ [ 'Help', 'help', 'list' ], $address->helpName() ? [ 'ID syntax', 'help', $address->helpName() ] : () ] );
-       genPath( $req, $address, 0 );
        print "<div class='clear'></div>\n";
        print "</div\n>";
+       genPath( $req, $address, 0 );
        print htmlDiv( 'name', '<p>'.encode( $name ) ) if defined( $name );
        print htmlDiv( 'note', '<p>'.encode( $note ) ) if( defined( $note ) );
        my $diss = 0;
index 073fa01101c21583f6d116fcf3fc5c5684014165..5c3b2a4ecd123bafc708e60ac0495274f7a1f112 100644 (file)
@@ -144,12 +144,12 @@ sub genPath( $$$ ) {
        } else {
                $path = [];
        }
-       print "<div class='navigation-menu'><ul>\n";
-       foreach my $addr ( @{$path} ) {
-               print "  <li><a href='http://".$req->hostname()."/read/".$addr->get()."/'>".encode( $addr->pretty() )."</a>\n";
+       print "<div class='path'>\n";
+       print "<p><a href='http://".$req->hostname()."/index.html'>Main page</a>";
+       foreach my $addr ( reverse @{$path} ) {
+               print "&nbsp;-&gt;&nbsp;<a href='http://".$req->hostname()."/read/".$addr->get()."'>".encode( $addr->pretty() )."</a>";
        }
-       print "<li><a href='http://".$req->hostname()."/index.html'>Main page</a>\n";
-       print "</ul></div>\n";
+       print "</div>\n";
 }
 
 sub genLocMenu( $$$ ) {