2012-07-17 13:18:44 +02:00
|
|
|
{% load euscan_tags %}
|
2011-04-25 22:27:32 +02:00
|
|
|
{% load mul %}
|
|
|
|
{% load sub %}
|
|
|
|
{% load div %}
|
|
|
|
|
|
|
|
<td>{{ infos.n_packaged }}</td>
|
2012-03-02 18:01:46 +01:00
|
|
|
|
2011-04-25 22:27:32 +02:00
|
|
|
{% if infos.n_overlay == 0 or infos.n_overlay <= infos.n_packaged %}
|
|
|
|
<td>
|
2012-05-06 20:27:14 +02:00
|
|
|
{% elif infos.n_overlay < infos.n_packaged %}
|
2011-04-25 22:27:32 +02:00
|
|
|
<td class="bad">
|
|
|
|
{% else %}
|
|
|
|
<td class="ugly">
|
2012-05-06 20:27:14 +02:00
|
|
|
{% endif %}
|
|
|
|
{{ infos.n_overlay }}
|
2011-04-25 22:27:32 +02:00
|
|
|
</td>
|
2012-03-02 18:01:46 +01:00
|
|
|
|
2011-04-25 22:27:32 +02:00
|
|
|
{% if infos.n_versions == infos.n_packaged|add:infos.n_overlay %}
|
|
|
|
<td>
|
2012-05-06 20:27:14 +02:00
|
|
|
{% elif infos.n_versions < infos.n_packaged|add:infos.n_overlay|mul:2 %}
|
2011-04-25 22:27:32 +02:00
|
|
|
<td class="bad">
|
|
|
|
{% else %}
|
|
|
|
<td class="ugly">
|
2012-05-06 20:27:14 +02:00
|
|
|
{% endif %}
|
2011-04-25 22:27:32 +02:00
|
|
|
{{ infos.n_versions|sub:infos.n_packaged|sub:infos.n_overlay }}
|
|
|
|
</td>
|
2012-03-02 18:01:46 +01:00
|
|
|
|
|
|
|
<td>
|
|
|
|
{{ infos.n_packaged|add:infos.n_overlay|div:infos.n_versions|mul:100|floatformat:"0" }}
|
|
|
|
</td>
|