Files
bin
euscanwww
djeuscan
api
management
migrations
templates
euscan
_datatable.html
_package_bar.html
_package_cols.html
_packages.html
about.html
api.html
categories.html
category.html
herd.html
herds.html
index.html
maintainer.html
maintainers.html
overlay.html
overlays.html
package.html
statistics.html
world.html
world_scan.html
_base.html
templatetags
tests
__init__.py
admin.py
charts.py
feeds.py
forms.py
helpers.py
managers.py
models.py
urls.py
views.py
euscanwww
htdocs
scripts
var
.gitignore
INSTALL
__init__.py
manage.py
runtests.py
man
pym
.gitignore
AUTHORS
COPYING
Changelog
MANIFEST.in
README.rst
THANKS
TODO
setup.py
euscan-ng/euscanwww/djeuscan/templates/euscan/_package_cols.html
2012-05-06 20:27:14 +02:00

31 lines
684 B
HTML

{% load packages %}
{% load mul %}
{% load sub %}
{% load div %}
<td>{{ infos.n_packaged }}</td>
{% if infos.n_overlay == 0 or infos.n_overlay <= infos.n_packaged %}
<td>
{% elif infos.n_overlay < infos.n_packaged %}
<td class="bad">
{% else %}
<td class="ugly">
{% endif %}
{{ infos.n_overlay }}
</td>
{% if infos.n_versions == infos.n_packaged|add:infos.n_overlay %}
<td>
{% elif infos.n_versions < infos.n_packaged|add:infos.n_overlay|mul:2 %}
<td class="bad">
{% else %}
<td class="ugly">
{% endif %}
{{ infos.n_versions|sub:infos.n_packaged|sub:infos.n_overlay }}
</td>
<td>
{{ infos.n_packaged|add:infos.n_overlay|div:infos.n_versions|mul:100|floatformat:"0" }}
</td>