]> mj.ucw.cz Git - pciids.git/commitdiff
Move help to /mods/
authorMichal 'vorner' Vaner <vorner@ucw.cz>
Sat, 3 Jul 2010 09:00:55 +0000 (11:00 +0200)
committerMichal 'vorner' Vaner <vorner@ucw.cz>
Sat, 3 Jul 2010 09:00:55 +0000 (11:00 +0200)
So all the almost same versions of the same help pages aren't scanned.

PciIds/Html/Help.pm
PciIds/Html/Util.pm
index.html

index de6e5aebdfb0f04df39b52155592fd294b07c4ef..add3f01c79b573c424f4827b9c3aba6c5f62c7cc 100644 (file)
@@ -41,11 +41,11 @@ sub getHelp( $$ ) {
        print "<div class='bluesquare'><h1>$head</h1><p class='home'>The PCI ID Repository</div>\n";
        print "<div class='clear'></div></div>\n";
        genPath( $req, $addr, 1 );
-       my $url = setAddrPrefix( $req->uri(), 'read' ).buildExcept( 'help', $args ).'?help=';
+       my $url = setAddrPrefix( $req->uri(), 'mods' ).buildExcept( 'help', $args ).'?help=';
        delete $args->{'help'};
        my %repls = ( 'HELP_URL' => $url, 'AC_URL' => setAddrPrefix( $req->uri(), 'mods' ).buildExcept( 'action', $args ).'?action=' );
        $repls{'AC_URL'} =~ s#mods/\?#mods/PC/?#;
-       $repls{'HELP_URL'} =~ s#read/\?#read/PC/?#;
+       $repls{'HELP_URL'} =~ s#(mods|read)/\?#$1/PC/?#;
        while( defined( my $line = <HELP> ) ) {
                $line =~ s/\$(\w+_URL)\$/$repls{$1}/g;
                print $line;
index 615bac53875460bb232816720ea914d83dec1380..18f7381ad849cc5d4478b8985fd0b129d094481e 100644 (file)
@@ -99,7 +99,7 @@ sub genCustomMenu( $$$$ ) {
                        PciIds::Html::Jump::jumpWindow( $req, $args );
                } else {
                        my $prefix = '/mods';
-                       $prefix = '/read' if( !defined( $action ) or ( $action eq 'list' ) or ( $action eq '' ) or ( $action eq 'help' ) );
+                       $prefix = '/read' if( !defined( $action ) or ( $action eq 'list' ) or ( $action eq '' ) );
                        my $suffix = '';
                        $suffix = '?help='.$param if( $action eq 'help' );
                        item( $prefix.$url.$action.$suffix, $label );
index a82fb899dd8b91ffa7d830cac1ddffde71aa171f..e82cd11f73018b66e83ff1d2a61d22c311e4b853 100644 (file)
@@ -16,7 +16,7 @@ various programs (e.g., <a href="http://mj.ucw.cz/pciutils.html">The PCI Utiliti
 to display full human-readable names instead of cryptic numeric codes.
 
 <p class='announce'>Welcome to the new web interface of the PCI ID database.
-Many a thing has changed, so please read the <a href="/read/?action=help?help=index">help</a>
+Many a thing has changed, so please read the <a href="/mods/?action=help?help=index">help</a>
 even if you were familiar with the old website.
 
 <h2>Browse</h2>
@@ -31,7 +31,7 @@ entries or to update the existing ones:
 
 <p>Or you can go directly to your <a href="/mods/?action=profile">profile</a> or <a href="/mods/?action=notifications">notification list</a>.
 
-<p>You may want to read <a href="/read/?action=help?help=index">help</a> before you start using the
+<p>You may want to read <a href="/mods/?action=help?help=index">help</a> before you start using the
 web interface.
 
 <h2>Download</h2>
@@ -69,9 +69,9 @@ reason for the change.
 
 <p>Updates can be submitted either via the web interface, or as patches to the <code>pci.ids</code>
 file sent by e-mail to our mail robot at <a href="mailto:pci-ids@ucw.cz">pci-ids@ucw.cz</a>
-(see the <a href="/read/?action=help?help=mailsubmit">mail submit help</a>).
+(see the <a href="/mods/?action=help?help=mailsubmit">mail submit help</a>).
 
-<p><em>In all cases, please read the <a href="/read/?action=help?help=newitem">submission guidelines</a>
+<p><em>In all cases, please read the <a href="/mods/?action=help?help=newitem">submission guidelines</a>
 first.</em>
 
 <h2>Feedback</h2>