From: Ian Jackson Date: Sat, 17 Oct 2009 16:39:46 +0000 (+0100) Subject: routesearch: proper titles and pretty up the results X-Git-Tag: 5.0^2~23 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=86042accde3ae9cb5bbafa172c23b59ce0480fd3 routesearch: proper titles and pretty up the results --- diff --git a/yarrg/TODO b/yarrg/TODO index f8988df..baba7a0 100644 --- a/yarrg/TODO +++ b/yarrg/TODO @@ -1,8 +1,5 @@ query_routesearch: - ap=A, ap=P turn into proper headings - notes about leagues - links to per-route pages nice routesearch diff --git a/yarrg/web/query_routesearch b/yarrg/web/query_routesearch index dc8c230..e5e7c6b 100644 --- a/yarrg/web/query_routesearch +++ b/yarrg/web/query_routesearch @@ -249,7 +249,11 @@ seconds of CPU time so more processing resources should be available soon. % foreach my $ap (qw(A P)) { -

ap=<% $ap %>

+% if ($ap eq 'A') { +

Best routes for total profit

+% } else { +

Best routes for profit per league

+% } @@ -289,6 +293,16 @@ seconds of CPU time so more processing resources should be available soon. % } # $isles
% } # $ap + +

+ +

Notes

+ +Per league values count each island visited as one +(additional) league; the `Dist.' column is however the actual distance +to be sailed. All profit figures are somewhat approximate; get a +complete trading plan for a route for accurate information. + <%perl>