while ($coords =~ m/(\d+:\d+:\d+)/g){
push @coords,$1;
}
- my $planets = $dbh->prepare(q{SELECT id,coords(x,y,z), alliance
+ my $planets = $dbh->prepare(q{SELECT id,coords(x,y,z), alliance, nick
FROM current_planet_stats p
WHERE coords(x,y,z) = ANY($1)
ORDER BY alliance, p.x, p.y, p.z
[% IF coordslist %]
<table class="stats">
- <tr><th>Coords</th><th>Alliance</th></tr>
+ <tr><th>Coords</th><th>Alliance</th><th>Nick</th></tr>
[% FOR p IN coordslist %]
<tr>
<td><a href="[% c.uri_for('planet',p.id) %]">[% p.coords %]</a></td>
<td>[% p.alliance %]</td>
+ <td>[% p.nick %]</td>
</tr>
[% END %]
</table>