]> ruin.nu Git - ndwebbie.git/blob - root/src/raids/index.tt2
Converted raids page
[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                 <a href="[% c.uri_for('open',r.id) %]">Open raid.</a>
31                         [% UNLESS r.releasedcoords %]
32                 <a href="[% c.uri_for('showcoords',r.id) %]">Show coords.</a>
33                         [% END %]
34                 [% END %]
35                 Landing tick: [% r.tick %]
36                 Waves: [% r.waves %]
37                 Claims: [% r.claims %]
38                 Launched: [% r.launched %]
39         </p>
40         [% END %]
41
42 <h3> Removed raids </h3>
43         [% FOR r IN removedraids %]
44         <p>
45                 [% IF c.check_user_roles('raids_edit') %]
46                 <a href="[% c.uri_for('edit',r.id) %]">Edit Raid [% r.id %]</a>
47                 <a href="[% c.uri_for('open',r.id) %]">Open raid.</a>
48                 [% END %]
49                 Landing tick: [% r.tick %]
50                 Waves: [% r.waves %]
51                 Claims: [% r.claims %]
52                 Launched: [% r.launched %]
53         </p>
54         [% END %]
55 [% END %]