euscanwww: Display unstable versions in package table list
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
		@@ -2,6 +2,7 @@
 | 
			
		||||
{% load sub %}
 | 
			
		||||
{% load div %}
 | 
			
		||||
{% load mul %}
 | 
			
		||||
{% load euscan_tags %}
 | 
			
		||||
 | 
			
		||||
{% load url from future %}
 | 
			
		||||
 | 
			
		||||
@@ -25,7 +26,15 @@
 | 
			
		||||
      </a>
 | 
			
		||||
      {% package_bar package %}
 | 
			
		||||
    </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_upstream.version }}</td>
 | 
			
		||||
    {% package_cols package %}
 | 
			
		||||
 
 | 
			
		||||
@@ -62,3 +62,8 @@ def overlays_table(overlays):
 | 
			
		||||
@register.filter
 | 
			
		||||
def is_stable(version_type):
 | 
			
		||||
    return helpers.is_version_type_stable(version_type)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@register.filter
 | 
			
		||||
def version_type(version):
 | 
			
		||||
    return helpers.get_version_type(version)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user