euscanwww: add freshness and last versions
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
{% load div %}
|
||||
|
||||
<td>{{ infos.n_packaged }}</td>
|
||||
|
||||
{% if infos.n_overlay == 0 or infos.n_overlay <= infos.n_packaged %}
|
||||
<td>
|
||||
{% else %}{% if infos.n_overlay < infos.n_packaged %}
|
||||
@ -13,6 +14,7 @@
|
||||
{% endif %}{% endif %}
|
||||
{{ infos.n_overlay }}
|
||||
</td>
|
||||
|
||||
{% if infos.n_versions == infos.n_packaged|add:infos.n_overlay %}
|
||||
<td>
|
||||
{% else %}{% if infos.n_versions < infos.n_packaged|add:infos.n_overlay|mul:2 %}
|
||||
@ -22,3 +24,7 @@
|
||||
{% endif %}{% 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>
|
||||
|
@ -1,11 +1,18 @@
|
||||
{% load packages %}
|
||||
{% load sub %}
|
||||
{% load div %}
|
||||
{% load mul %}
|
||||
|
||||
<table id="table" class="display">
|
||||
<thead>
|
||||
<th>Package</th>
|
||||
<th>Gentoo</th>
|
||||
<th>Overlay</th>
|
||||
<th>Upstream</th>
|
||||
<th>Gentoo</th>
|
||||
<th>Overlays</th>
|
||||
<th>Unpackaged</th>
|
||||
<th>Freshness</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for package in packages %}
|
||||
@ -16,6 +23,9 @@
|
||||
</a>
|
||||
{% package_bar package %}
|
||||
</td>
|
||||
<td>{{ package.last_version_gentoo.version }}</td>
|
||||
<td>{{ package.last_version_overlay.version }}</td>
|
||||
<td>{{ package.last_version_upstream.version }}</td>
|
||||
{% package_cols package %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@ -15,6 +15,7 @@
|
||||
<th>Gentoo</th>
|
||||
<th>Overlays</th>
|
||||
<th>Unpackaged</th>
|
||||
<th>Freshness</th>
|
||||
{% if request.GET.extras %}
|
||||
<th>Graphs</th>
|
||||
{% endif %}
|
||||
|
@ -14,6 +14,7 @@
|
||||
<th>Gentoo</th>
|
||||
<th>Overlays</th>
|
||||
<th>Unpackaged</th>
|
||||
<th>Freshness</th>
|
||||
{% if request.GET.extras %}
|
||||
<th>Graphs</th>
|
||||
{% endif %}
|
||||
|
@ -14,6 +14,7 @@
|
||||
<th>Gentoo</th>
|
||||
<th>Overlays</th>
|
||||
<th>Unpackaged</th>
|
||||
<th>Freshness</th>
|
||||
{% if request.GET.extras %}
|
||||
<th>Graphs</th>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user