chiark / gitweb /
If routetrade query is arbitrage search only, mention this fact
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 21 Oct 2009 23:05:18 +0000 (00:05 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 21 Oct 2009 23:05:18 +0000 (00:05 +0100)
yarrg/TODO
yarrg/web/docs
yarrg/web/routetrade

index 101af03bd00313c27402dee10e56df66f4fcbd5b..8e85c933e1d1bd44204fb3df18771c9916d5c153 100644 (file)
@@ -22,10 +22,6 @@ support Opal and Jade (currently there are some unicode problems)
 WEBSITE
 -------
 
-trades for route with an archipelago should produce
-  a message saying `searched for arbitrage trades only in
-  Ruby' or some such.
-
 allow unticking based on minimum margin or minimum profit
 
 initial/final stocks feature
index c211683717acf735bf05e23e34ba4892a2f16605..9feaa6b651d02f6d60aa068ee3e004eb19f5cd81 100755 (executable)
@@ -89,7 +89,7 @@ potentially profitable trades.  If the route is suitable for the trade
 route optimiser, it will generate a complete voyage plan, telling you
 which goods to buy and sell where at which stalls and prices.
 
-<p>
+<p><a name="arbitrage"></a>
 
 If you specify only one island or one archipelago, the site shows only
 arbitrage trades.  If you want single-hop trades within an
index 68c727cdbd1aec41407534e2c1047e5b1d95b14b..68f9d2703bd4c97ab8d4bd115a01be6ffae1bd9f 100644 (file)
@@ -261,6 +261,15 @@ foreach my $v (qw(MaxMass MaxVolume)) {
 <& dumptable:end, qa => $qa &>
 % }
 
+% if (@islandids==1) {
+%      if (defined $islandids[0]) {
+Searched for arbitrage trades only.
+%      } else {
+Searched for arbitrage trades only, in <% $archipelagoes[0] |h %>
+<a href="docs#arbitrage">[?]</a>.
+%      }
+% }
+
 <%perl>
 
 my @sail_total;