]> ruin.nu Git - ndwebbie.git/blob - root/src/intel/planet.tt2
Support for planet tags
[ndwebbie.git] / root / src / intel / planet.tt2
1 [% META title = 'Intel' %]
2
3 <div class="leftinfo">
4 <form action="[% c.uri_for('planet',p.id) %]" method="post">
5         <p>Show last <input type="text" name="ticks" value="[% showticks %]"> ticks <input type="submit" value="Show"></p>
6 </form>
7 <form action="[% c.uri_for('postplanetupdate',p.id) %]" method="post">
8         <table>
9                 <tr>
10                         <th></th>
11                         <th>Value</th>
12                         <th>Change?</th>
13                 </tr>
14                 <tr><td>Nick</td>
15                         <td><input type="text" name="nick" value="[% p.nick %]"></td>
16                         <td><input type="checkbox" name="cnick"></td>
17                 </tr>
18                 <tr><td>Channel</td>
19                         <td><input type="text" name="channel" value="[% p.channel %]"></td>
20                         <td><input type="checkbox" name="cchannel"></td>
21                 </tr>
22                 <tr><td>Government</td>
23                         <td><select name="gov">
24 [% FOR gov IN govs %]
25                                 <option value="[% gov %]" [% IF gov == p.gov %]selected[% END %]> [% gov %]</option>
26 [% END %]
27                                 </select></td>
28                         <td><input type="checkbox" name="cgov"></td>
29                 </tr>
30                 <tr><td>Planet status</td>
31                         <td><select name="status">
32 [% FOR ps IN planetstatus %]
33                                 <option value="[% ps %]" [% IF ps == p.planet_status %]selected[% END %]> [% ps %]</option>
34 [% END %]
35                                 </select></td>
36                         <td><input type="checkbox" name="cstatus"></td>
37                 </tr>
38                 <tr><td>Alliance</td>
39                         <td><select name="alliance">
40 [% FOR a IN alliances %]
41                                 <option value="[% a.alliance %]" [% IF a.aid == p.aid %]selected[% END %]> [% a.alliance %]</option>
42 [% END %]
43                                 </select></td>
44                         <td><input type="checkbox" name="calliance"></td>
45                 </tr>
46         </table>
47         <p><input type="submit" value="Change">
48         </p>
49 </form>
50
51 [% IF tags.size > 0 %]
52 <table class="stats">
53         <tr>
54         <th>Tag</th><th>Added by</th><th>Last added</th>
55         </tr>
56         [% FOR t IN tags %]
57         <tr>
58                 <td>[% t.tag %]</td><td>[% t.nicks %]</td><td>[% t.time %]</td>
59         </tr>
60         [% END %]
61 </table>
62 [% END %]
63
64 [% IF channelusers.size > 0 %]
65 <table class="stats">
66         <tr>
67         <th>Coords</th><th>Alliance</th><th>Nick</th><th>Channel</th>
68         </tr>
69         [% FOR cu IN channelusers %]
70         <tr>
71                 <td><a href="[% c.uri_for('planet',cu.id) %]">[% cu.coords %]</a></td>
72                 <td>[% cu.alliance %]</td><td>[% cu.nick %]</td><td>[% cu.channel %]</td>
73         </tr>
74         [% END %]
75 </table>
76 [% END %]
77 <table class="stats">
78         <tr>
79                 <th>Alliance</th><th>Sender</th>
80                 <th>Mission</th><th>Landing tick</th><th>ETA</th><th>Amount</th>
81                 <th>Ingal</th><th>Reported by</th>
82         </tr>
83 [% FOR i IN incoming %]
84         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
85         <td>[% i.salliance %]</td>
86         <td><a href="[% c.uri_for('planet',i.sender) %]">[% i.scoords %]</a></td>
87         <td class="[% i.ingal ? 'ingal' : i.mission %]">[% i.mission %]</td>
88         <td align="center">[% i.landingtick %]</td>
89         <td align="center">[% i.eta %]</td>
90         <td>[% i.amount %]</td>
91         <td>[% i.ingal %]</td>
92         <td>[% i.username %]</td>
93         </tr>
94 [% END %]
95 </table>
96
97 <table class="stats">
98         <tr>
99                 <th>Mission</th><th>Landing tick</th><th>ETA</th><th>Amount</th>
100                 <th>Target</th><th>Alliance</th>
101                 <th>Ingal</th><th>Reported by</th>
102         </tr>
103 [% FOR i IN outgoing %]
104         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
105         <td class="[% i.ingal ? 'ingal' : i.mission %]">[% i.mission %]</td>
106         <td align="center">[% i.landingtick %]</td>
107         <td align="center">[% i.eta %]</td>
108         <td>[% i.amount %]</td>
109         <td><a href="[% c.uri_for('planet',i.target) %]">[% i.tcoords %]</a></td>
110         <td>[% i.talliance %]</td>
111         <td>[% i.ingal %]</td>
112         <td>[% i.username %]</td>
113         </tr>
114 [% END %]
115 </table>
116 </div>
117
118 <div class="leftinfo">
119 [% FOR post IN posts %]
120 <fieldset class="forum-post">
121 <legend class="unread:[% post.unread %]"><b>[% post.username %]</b> : [% post.time %]</legend>
122         [% post.message %]
123 </fieldset>
124 [% END %]
125
126 <form action="[% c.uri_for('postplanetcomment', p.id) %]" method="post"><fieldset class="forum-post"> <legend>New Reply</legend>
127         <textarea rows="10" cols="60" name="message"></textarea>
128         <input type="submit" value="Submit">
129 </fieldset></form>
130 </div>