[% END %]
<div class="clear"></div>
-[% IF c.user.planet %]
+[% IF p %]
<table class="stats">
<tr align="center"><th colspan="4">Rank</th>
</tr>
<td align="center">[% p.ruler %] <b>OF</b> [% p.planet %]</td>
<td align="center">[% p.race %]</td>
[% p.sizeimg = (p.size_gain_day == 0 ? 'stay' : (p.size_gain_day > 0 ? 'up' : 'down')) %]
- <td title="[% p.size_gain_day %] Today | [% p.size_gain %] Tick">[% comma(p.size) %] <img src="/static/images/[% p.sizeimg %].png" alt="[% p.sizeimg %]"> </td>
+ <td title="[% p.size_gain_day %] Today | [% p.size_gain %] Tick">[% p.size | commify %] <img src="/static/images/[% p.sizeimg %].png" alt="[% p.sizeimg %]"> </td>
[% p.scoreimg = (p.score_gain_day == 0 ? 'stay' : (p.score_gain_day > 0 ? 'up' : 'down')) %]
- <td title="[% comma(p.score_gain_day) %] Today | [% comma(p.score_gain) %] Tick">[% comma(p.score) %] <img src="/static/images/[% p.scoreimg %].png" alt="[% p.scoreimg %]"> </td>
+ <td title="[% p.score_gain_day | commify %] Today | [% p.score_gain | commify %] Tick">[% p.score | commify %] <img src="/static/images/[% p.scoreimg %].png" alt="[% p.scoreimg %]"> </td>
[% p.valueimg = (p.value_gain_day == 0 ? 'stay' : (p.value_gain_day > 0 ? 'up' : 'down')) %]
- <td title="[% comma(p.value_gain_day) %] Today | [% comma(p.value_gain) %] Tick">[% comma(p.value) %] <img src="/static/images/[% p.valueimg %].png" alt="[% p.valueimg %]"> </td>
+ <td title="[% p.value_gain_day | commify %] Today | [% p.value_gain | commify %] Tick">[% p.value | commify %] <img src="/static/images/[% p.valueimg %].png" alt="[% p.valueimg %]"> </td>
[% p.xpimg = (p.xp_gain_day == 0 ? 'stay' : (p.xp_gain_day > 0 ? 'up' : 'down')) %]
- <td title="[% comma(p.xp_gain_day) %] Today | [% comma(p.xp_gain) %] Tick">[% comma(p.xp) %] <img src="/static/images/[% p.xpimg %].png" alt="[% p.xpimg %]"> </td>
+ <td title="[% p.xp_gain_day | commify %] Today | [% p.xp_gain | commify %] Tick">[% p.xp | commify %] <img src="/static/images/[% p.xpimg %].png" alt="[% p.xpimg %]"> </td>
</tr>
</table>
[% END %]
<fieldset class="forum-post"> <legend>Account details</legend>
<ul>
<li> ND rank (by score): [% u.rank %] </li>
+ <li> Defprio: [% u.defprio %] </li>
<li> Defense points: [% u.defense_points %] </li>
<li> Attack points: [% u.attack_points %] </li>
<li> Scan points: [% u.scan_points %] </li>
<tr><td></td><th>Target</th><th>Mission</th><th>Amount</th><th>Landing Tick</th><th>Back home</th><th>change?</th></tr>
[% FOR f IN fleets %]
<tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
- <td><input type="button" onclick="$('#fleet[% f.id %]').toggle()" value="⇓" title="Show fleets"></td>
+ <td><input type="button" onclick="$('#fleet[% f.fid %]').toggle()" value="⇓" title="Show fleets"></td>
<td>[% IF f.target %]<a href="[% c.uri_for('/stats/planet',f.target) %]">[% f.coords %]</a>[% END %]</td>
<td>[% f.mission %]</td>
<td>[% f.amount %]</td><td>[% f.tick %]</td>
- <td>[% IF f.back %]<input style="width:5em" type="text" name="back:[% f.id %]" value="[% f.back %]">[% END %]</td>
- <td>[% IF f.back %]<input type="checkbox" name="change:[% f.id %]">[% END %]</td>
+ <td>[% IF f.back %]<input style="width:5em" type="text" name="back:[% f.fid %]" value="[% f.back %]">[% END %]</td>
+ <td>[% IF f.back %]<input type="checkbox" name="change:[% f.fid %]">[% END %]</td>
</tr>
- <tr id="fleet[% f.id %]" class="hidden">
+ <tr id="fleet[% f.fid %]" class="hidden">
<td>
<td colspan="5"><table>
[% FOR s IN f.ships %]
<fieldset class="forum-post"> <legend>SMS</legend>
<p>Number:
<input type="text" name="sms" value="[% u.sms %]">
+ Info to DCs: <input type="text" name="smsnote" value="[% u.sms_note | html %]">
+ </p>
+ <p>
+ Wake me up if needed:
+ <input type="checkbox" name="callme" value="TRUE"
+ [% IF u.call_if_needed %]checked[% END %]>
<input type="submit" value="Submit">
</p>
</fieldset>