{% extends "layout.html" %} {% block content %} {% macro link(href,desc='') -%}{% if desc == '' %}{{href}}{%else%}{{desc}}{%endif%}{%- endmacro%}

{{ _("Installed packages") }}

{% set cols = [('install_status',_('Status')),('package',_('Package')),('install_par',_('Installed by')),('install_date',_('Installed on')),('repo_version',_('Version repo')),('install_output',_('Traces'))] %} {% for c in cols %} {% endfor %} {% for p in packages %} {%set package_version= p.asrequirement() %} {%if p.get('install_status')=='OK'%} {%if not p.repo_version %} {%elif p.version < p.repo_version %} {%elif p.version == p.repo_version %} {%else%} {%endif%} {%elif p.install_status =='ERROR'%} {%else%} {%endif%} {% for c in cols %} {%if c[0] == 'package' %} {% endfor %} {% endfor %}
{{c[1]}}{{ _("Action") }}

{{p[c[0]]}} {{p.version}}

{{p.description or ""}}

{%elif c[0]=='install_date' %}
{{format_isodate(p[c[0]])}} {%elif c[0]=='install_output' %}
{{p[c[0]].replace('\n','
')|safe}}
{%else%}
{{p[c[0]] or '-'}} {%endif%} {{ _("Remove") }}
{% endblock %}