chiark / gitweb /
routesearch: fix up web performance parameterisation
[ypp-sc-tools.db-live.git] / yarrg / web / lookup
index 7b3100ee17b28b541416d63f2fe4aed1506d9207..9f74f3369bb8e7bcf33601c73c8eca3831997114 100755 (executable)
@@ -57,6 +57,8 @@ my %styles;
                Before => 'Query: ',
                Values => [     [ 'route', 'Trades for route' ],
                                [ 'commod', 'Prices for commodity' ],
+                               [ 'offers', 'Offers at location' ],
+                               [ 'routesearch', 'Find profitable route' ],
                                [ 'age', 'Data age' ] ]
        }, {    Name => 'BuySell',
                Before => '',
@@ -118,7 +120,7 @@ $ours
 % }
 </%method>
 
-<html><head><title><% ucfirst $ahtml{Query} %> - YARRG</title>
+<html lang="en"><head><title><% ucfirst $ahtml{Query} %> - YARRG</title>
 <style type="text/css">
 body {
   color: #000000;
@@ -141,11 +143,11 @@ tr.datarow1 { background: #ffffff; }
 <a href="<% $m->current_comp()->name() |u %>">YARRG</a> -
  Yet Another Revenue Research Gatherer
 |
-<a href="devel">development</a>
-|
 <a href="intro">introduction</a>
 |
 <a href="docs">documentation</a>
+|
+<a href="devel">development</a>
 <p>
 <%perl>
 
@@ -157,8 +159,8 @@ foreach my $var (@vars) {
 
 foreach my $var (keys %ARGS) {
        next unless $var =~
-               m/^(?: (?:route|commod|capacity)string |
-                       lossperleague |
+               m/^(?: (?:route|commod|capacity|capital|island)string |
+                       lossperleague | distance |
                        commodid |
                        islandid \d |
                        archipelago \d |