euscanwww: Display unstable versions in package table list
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
b052f2e8b8
commit
748fa12462
@ -2,6 +2,7 @@
|
|||||||
{% load sub %}
|
{% load sub %}
|
||||||
{% load div %}
|
{% load div %}
|
||||||
{% load mul %}
|
{% load mul %}
|
||||||
|
{% load euscan_tags %}
|
||||||
|
|
||||||
{% load url from future %}
|
{% load url from future %}
|
||||||
|
|
||||||
@ -25,7 +26,15 @@
|
|||||||
</a>
|
</a>
|
||||||
{% package_bar package %}
|
{% package_bar package %}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ package.last_version_gentoo.version }}</td>
|
<td>
|
||||||
|
{% with vtype=package.last_version_gentoo.version|version_type %}
|
||||||
|
{% if not vtype|is_stable %}
|
||||||
|
<img src="{{ STATIC_URL }}img/unstable-icon.png" alt="unstable" title="{{ vtype }}" />
|
||||||
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
|
{{ package.last_version_gentoo.version }}
|
||||||
|
</td>
|
||||||
<td>{{ package.last_version_overlay.version }}</td>
|
<td>{{ package.last_version_overlay.version }}</td>
|
||||||
<td>{{ package.last_version_upstream.version }}</td>
|
<td>{{ package.last_version_upstream.version }}</td>
|
||||||
{% package_cols package %}
|
{% package_cols package %}
|
||||||
|
@ -62,3 +62,8 @@ def overlays_table(overlays):
|
|||||||
@register.filter
|
@register.filter
|
||||||
def is_stable(version_type):
|
def is_stable(version_type):
|
||||||
return helpers.is_version_type_stable(version_type)
|
return helpers.is_version_type_stable(version_type)
|
||||||
|
|
||||||
|
|
||||||
|
@register.filter
|
||||||
|
def version_type(version):
|
||||||
|
return helpers.get_version_type(version)
|
||||||
|
Loading…
Reference in New Issue
Block a user