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

Windows Updates status

{{ title }}

{% set cols = ['kbids','title','classification','severity','uuid','changetime','downloaded'] %} {% set cols_header = [_('KB'),_('Title'),_('Classification'),_('Severity'),_('UUID'),_('Date'),_('Downloaded')] %} {% for c in cols_header %} {% endfor %} {% for p in data %} {% for c in cols %} {% endfor %} {% endfor %}
{{c or "###"}}
{%if c == 'kbids' %} {{link('https://support.microsoft.com/kb/'+p[c][0],'KB'+p[c][0] )}} {%else%} {{p[c] or ""}} {%endif%}
{% endblock %}