]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/covop/index.tt2
Updated covop page to show 5 man bank hack + accurate values
[ndwebbie.git] / root / src / covop / index.tt2
index 3fbf25add98c40f150b50c5c827265fe11919e8b..89f2871472f81d80ca35e842eca19b6d1540a792 100644 (file)
@@ -1,24 +1,37 @@
+[%- BLOCK style -%]
+       [%- IF not tick -%]
+ class="old"
+       [%- ELSIF TICK - tick > 24 -%]
+ class="old"
+       [%- ELSIF TICK - tick > 12 -%]
+ class="semiold"
+       [%- ELSIF TICK - tick < 6 -%]
+ class="new"
+       [%- END -%]
+[%- END -%]
+
 [% META title = 'Covert operations' %]
 <table>
        <tr>
                <th>Coords</th><th>Tick</th><th>Metal</th><th>Crystal</th><th>Eonium</th>
                <th>Gov</th><th>Alert</th><th>Tick</th><th>Dists</th>
-               <th>Max (15 agents)</th><th>Last covop (tick)</th>
+               <th>Max (5 agents)</th><th>(15 agents)</th><th>Last covop (tick)</th>
        </tr>
 
 [% debug(targets.size) %]
 [% FOR t IN targets %]
        <tr align="center" class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
        <td><a href="[% c.uri_for('/stats/planet',t.id) %]">[% t.coords %]</a></td>
-       <td[% IF TICK - t.pstick > 6 %] class="OLD"[%END%]>[% t.pstick %]</td>
+       <td[% PROCESS style tick=t.pstick%]>[% t.pstick %]</td>
        <td>[% t.metal %]</td>
        <td>[% t.crystal %]</td>
        <td>[% t.eonium %]</td>
        <td>[% t.gov %]</td>
        <td>[% t.minalert %] - [% t.maxalert %]</td>
-       <td[% IF TICK - t.dstick > 6 %] class="OLD"[%END%]>[% t.dstick %]</td>
+       <td[% PROCESS style tick=t.dstick%]>[% t.dstick %]</td>
        <td>[% t.distorters %]</td>
-       <td>[% t.maxreshack %]</td>
+       <td>[% t.max_bank_hack %]</td>
+       <td>[% t.hack15 %]</td>
        <td>[% t.lastcovop %]</td>
        <td><a href="[% c.uri_for('marktarget', t.id) %]">Did CovOp this tick</a></td>
        </tr>