chiark / gitweb /
Right-justify data ages in tables
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 21 Sep 2009 01:04:15 +0000 (02:04 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 21 Sep 2009 01:04:15 +0000 (02:04 +0100)
yarrg/web/query_age
yarrg/web/query_offers

index a02187eae01d1b85988382f3e82bc538c6ba010f..d9b234dd559e074353641f7c1ccd5fae7f9b4916 100644 (file)
@@ -80,7 +80,7 @@ $sth->execute();
 <tr id=<% $rowid %> class="<% 'datarow'.($rowix & 1) %>"
    > <td><% $row->{'archipelago'} |h
   %> <td><% $row->{'islandname'} |h
-  %> <td id="<% $cellid %>"><% prettyprint_age($age) %> </tr>
+  %> <td id="<% $cellid %>" align=right><% prettyprint_age($age) %> </tr>
 %      $rowix++;
 % }
 </table>
index 4c9c71ec2a0de4284b4929ba5fdc2fff0e7a1f47..dbff9fa50a16cbb6be1e9f012c213c827d4b61c8 100644 (file)
@@ -187,7 +187,7 @@ foreach my $bs (split /_/, $qa->{BuySell}) {
 %                      $ts_sortkeys{$ci}{$rowid}= $val;
 <td <% $ci >= 3 ? 'align=right' : '' %> ><% $val |h %>
 %              }
-<td id="<% $tscellid %>" ><% prettyprint_age($age) %>
+<td id="<% $tscellid %>" align=right><% prettyprint_age($age) %>
 </tr>
 %              $rowix++;
 %      }