]> mj.ucw.cz Git - pciids.git/commitdiff
Add item link below items
authorMichal Vaner <vorner@ucw.cz>
Sun, 31 Aug 2008 18:22:56 +0000 (20:22 +0200)
committerMichal Vaner <vorner@ucw.cz>
Sun, 31 Aug 2008 18:22:56 +0000 (20:22 +0200)
If we have discuss under discussion, this one is here to be fair to
items.

PciIds/Html/List.pm

index a6ba4aab3379748aa51267fb94825379309c2a9a..abaabb50ac5f9dda6b3fa822647fd6aa4c6495bb 100644 (file)
@@ -80,6 +80,7 @@ sub list( $$$$ ) {
                $args->{'restrict'} = $address->defaultRestrict() unless( defined( $args->{'restrict'} ) );
                $tables->nodes( $address->get(), $args );
                genTableTail();
+               print "<p><a href='".buildExcept( 'action', $args )."?action=newitem'>Add item</a>\n";
        }
        genHtmlTail();
        return OK;