add Total ratio per map and Total total ratio

This commit is contained in:
BackIsBachus
2018-08-31 23:15:30 +02:00
parent a1d5ba9eb8
commit e728f0d195
5 changed files with 85 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
<colgroup span="3"></colgroup>
<thead>
<tr>
<td rowpsan="2"></td>
<td rowpsan="2" class="totalRatio">{% for rec in record %}{{displayTotal(rec)|raw}}{% endfor %}</td>
<th colspan="3" scope="colgroup">Eternal Battleground</th>
<th colspan="3" scope="colgroup">Red Borderland</th>
<th colspan="3" scope="colgroup">Blue Borderland</th>
@@ -32,6 +32,23 @@
</tr>
</thead>
<tbody>
{% for rec in record %}
<tr>
<th scope="col" scope="row">TOTAL until {{rec.date|date("l H:i")}}</th>
<th scope="col" class="red">{{displayRatio(rec.eb_r_k, rec.eb_r_d)|raw}}</th>
<th scope="col" class="blue">{{displayRatio(rec.eb_b_k, rec.eb_b_d)|raw}}</th>
<th scope="col" class="green">{{displayRatio(rec.eb_g_k, rec.eb_g_d)|raw}}</th>
<th scope="col" class="red">{{displayRatio(rec.rh_r_k, rec.rh_r_d)|raw}}</th>
<th scope="col" class="blue">{{displayRatio(rec.rh_b_k, rec.rh_b_d)|raw}}</th>
<th scope="col" class="green">{{displayRatio(rec.rh_g_k, rec.rh_g_d)|raw}}</th>
<th scope="col" class="red">{{displayRatio(rec.bh_r_k, rec.bh_r_d)|raw}}</th>
<th scope="col" class="blue">{{displayRatio(rec.bh_b_k, rec.bh_b_d)|raw}}</th>
<th scope="col" class="green">{{displayRatio(rec.bh_g_k, rec.bh_g_d)|raw}}</th>
<th scope="col" class="red">{{displayRatio(rec.gh_r_k, rec.gh_r_d)|raw}}</th>
<th scope="col" class="blue">{{displayRatio(rec.gh_b_k, rec.gh_b_d)|raw}}</th>
<th scope="col" class="green">{{displayRatio(rec.gh_g_k, rec.gh_g_d)|raw}}</th>
</tr>
{% endfor %}
{% for diff in diffs %}
<tr>
<th scope="row">{{diff.start|date("l H:i")}}</th>