]> ruin.nu Git - ndwebbie.git/blob - root/src/rankings/galaxies.tt2
Converted rankings
[ndwebbie.git] / root / src / rankings / galaxies.tt2
1 [% META title = 'Galaxy Rankings' %]
2 <p><a href="[% c.uri_for('galaxies', order, offset - 100) %]">Previous 100</a>
3         <a href="[% c.uri_for('galaxies', order, offset + 100) %]">Next 100</a>
4 </p>
5 <table class="stats">
6         <tr align="center"><th colspan="4">Rank</th>
7         </tr>
8         <tr>
9         <th><a href="[% c.uri_for('galaxies', 'sizerank', offset) %]">Size</a></th>
10         <th><a href="[% c.uri_for('galaxies', 'scorerank', offset) %]">Score</a></th>
11         <th><a href="[% c.uri_for('galaxies', 'valuerank', offset) %]">Value</a></th>
12         <th><a href="[% c.uri_for('galaxies', 'xprank', offset) %]">XP</a></th>
13         <th>Coords</th>
14         <th><a href="[% c.uri_for('galaxies', 'planets', offset) %]">Planets</a></th>
15         <th><a href="[% c.uri_for('galaxies', 'sizerank', offset) %]">Size</a></th>
16         <th><a href="[% c.uri_for('galaxies', 'scorerank', offset) %]">Score</a></th>
17         <th><a href="[% c.uri_for('galaxies', 'valuerank', offset) %]">Value</a></th>
18         <th><a href="[% c.uri_for('galaxies', 'xprank', offset) %]">XP</a></th>
19         </tr>
20         [% FOR g IN galaxies %]
21         <tr align="right" class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
22                 [% g.sizerankimg = (g.sizerank_gain_day == 0 ? 'stay' : (g.sizerank_gain_day < 0 ? 'up' : 'down')) %]
23                 <td title="[% g.sizerank_gain_day %] Today | [% g.sizerank_gain %] Tick">[% g.sizerank %] <img src="/static/images/[% g.sizerankimg %].png" alt="[% g.sizerankimg %]"> </td>
24                 [% g.scorerankimg = (g.scorerank_gain_day == 0 ? 'stay' : (g.scorerank_gain_day < 0 ? 'up' : 'down')) %]
25                 <td title="[% g.scorerank_gain_day %] Today | [% g.scorerank_gain %] Tick">[% g.scorerank %] <img src="/static/images/[% g.scorerankimg %].png" alt="[% g.scorerankimg %]"> </td>
26                 [% g.valuerankimg = (g.valuerank_gain_day == 0 ? 'stay' : (g.valuerank_gain_day < 0 ? 'up' : 'down')) %]
27                 <td title="[% g.valuerank_gain_day %] Today | [% g.valuerank_gain %] Tick">[% g.valuerank %] <img src="/static/images/[% g.valuerankimg %].png" alt="[% g.valuerankimg %]"> </td>
28                 [% g.xprankimg = (g.xprank_gain_day == 0 ? 'stay' : (g.xprank_gain_day < 0 ? 'up' : 'down')) %]
29                 <td title="[% g.xprank_gain_day %] Today | [% g.xprank_gain %] Tick">[% g.xprank %] <img src="/static/images/[% g.xprankimg %].png" alt="[% g.xprankimg %]"> </td>
30                 <td><a href="[% c.uri_for('/stats','galaxy',g.x,g.y) %]">[% g.x %]:[% g.y %]</a></td>
31                 [% g.planetsimg = (g.planets_gain_day == 0 ? 'stay' : (g.planets_gain_day > 0 ? 'up' : 'down')) %]
32                 <td title="[% g.planets_gain_day %] Today | [% g.planets_gain %] Tick">[% comma(g.planets) %] <img src="/static/images/[% g.planetsimg %].png" alt="[% g.planetsimg %]"> </td>
33                 [% g.sizeimg = (g.size_gain_day == 0 ? 'stay' : (g.size_gain_day > 0 ? 'up' : 'down')) %]
34                 <td title="[% g.size_gain_day %] Today | [% g.size_gain %] Tick">[% comma(g.size) %] <img src="/static/images/[% g.sizeimg %].png" alt="[% g.sizeimg %]"> </td>
35                 [% g.scoreimg = (g.score_gain_day == 0 ? 'stay' : (g.score_gain_day > 0 ? 'up' : 'down')) %]
36                 <td title="[% comma(g.score_gain_day) %] Today | [% comma(g.score_gain) %] Tick">[% comma(g.score) %] <img src="/static/images/[% g.scoreimg %].png" alt="[% g.scoreimg %]"> </td>
37                 [% g.valueimg = (g.value_gain_day == 0 ? 'stay' : (g.value_gain_day > 0 ? 'up' : 'down')) %]
38                 <td title="[% comma(g.value_gain_day) %] Today | [% comma(g.value_gain) %] Tick">[% comma(g.value) %] <img src="/static/images/[% g.valueimg %].png" alt="[% g.valueimg %]"> </td>
39                 [% g.xpimg = (g.xp_gain_day == 0 ? 'stay' : (g.xp_gain_day > 0 ? 'up' : 'down')) %]
40                 <td title="[% comma(g.xp_gain_day) %] Today | [% comma(g.xp_gain) %] Tick">[% comma(g.xp) %] <img src="/static/images/[% g.xpimg %].png" alt="[% g.xpimg %]"> </td>
41         </tr>
42 [% END %]
43 </table>
44 <p><a href="[% c.uri_for('galaxies', order, offset - 100) %]">Previous 100</a>
45         <a href="[% c.uri_for('galaxies', order, offset + 100) %]">Next 100</a>
46 </p>