]> ruin.nu Git - ndwebbie.git/blob - root/src/raids/index.tt2
Add opening tick to raids
[ndwebbie.git] / root / src / raids / index.tt2
1 [% META title = 'List raids' %]
2 [% IF launched %]
3         <p>Total launched fleets: [% launched %]</p>
4 [% END %]
5 <h3> Open raids </h3>
6 [% FOR r IN raids %]
7         <p><a href="[% c.uri_for('view',r.id) %]">Raid [% r.id %]</a>
8         Landing tick: [% r.tick %]
9         [% IF c.check_user_roles('raids_edit') %]
10                 <a href="[% c.uri_for('edit',r.id) %]">Edit</a>
11                 <a href="[% c.uri_for('close',r.id) %]">Close raid.</a>
12                 [% UNLESS r.releasedcoords %]
13                 <a href="[% c.uri_for('showcoords',r.id) %]">Show coords.</a>
14                 [% END %]
15         [% END %]
16         [% IF c.check_user_roles('raids_info') %]
17                 Waves: [% r.waves %]
18                 Claims: [% r.claims %]
19                 Launched: [% r.launched %]
20         [% END %]
21         </p>
22 [% END %]
23
24 [% IF c.check_user_roles('raids_info') %]
25 <h3> Closed raids </h3>
26         [% FOR r IN closedraids %]
27         <p>
28                 [% IF c.check_user_roles('raids_edit') %]
29                 <a href="[% c.uri_for('edit',r.id) %]">Edit Raid [% r.id %]</a>
30                         [% IF r.open %]
31                 <a href="[% c.uri_for('close',r.id) %]">Close raid.</a>
32                         [% ELSE %]
33                 <a href="[% c.uri_for('open',r.id) %]">Open raid.</a>
34                         [% END %]
35                         [% UNLESS r.releasedcoords %]
36                 <a href="[% c.uri_for('showcoords',r.id) %]">Show coords.</a>
37                         [% END %]
38                 [% END %]
39                 Landing tick: [% r.tick %]
40                 Waves: [% r.waves %]
41                 [% IF r.open_tick %]
42                 Opening tick: [% r.open_tick %]
43                 [% END %]
44                 Claims: [% r.claims %]
45                 Launched: [% r.launched %]
46         </p>
47         [% END %]
48
49 <h3> Removed raids </h3>
50         [% FOR r IN removedraids %]
51         <p>
52                 [% IF c.check_user_roles('raids_edit') %]
53                 <a href="[% c.uri_for('edit',r.id) %]">Edit Raid [% r.id %]</a>
54                 <a href="[% c.uri_for('open',r.id) %]">Open raid.</a>
55                 [% END %]
56                 Landing tick: [% r.tick %]
57                 Waves: [% r.waves %]
58                 Claims: [% r.claims %]
59                 Launched: [% r.launched %]
60         </p>
61         [% END %]
62 [% END %]