{% extends "report-base.html.jinja" %} {% block title %}Recipe Report for {{ machine }}{% endblock %} {# Write a tag element using the Upstream-Status to determine the class. #} {% macro make_patch_tag(status) -%} {% set status = status.split()[0] %} {% if status in ("Unknown", "Pending") %} {% set class = "is-danger" %} {% elif status in ("Backport", "Accepted", "Inappropriate", "Denied") %} {% set class = "is-success" %} {% elif status in ("Submitted",) %} {% set class = "is-info" %} {% else %} {% set class = "is-info" %} {% endif %} {{ status }} {%- endmacro %} {% block content %} {% for name, data in data|dictsort if data.needs_update or data.patched %}

{{ data.recipe }} {{ data.fullversion }} {% if name != data.recipe %} (provides {{ name }}) {% endif %} {% if data.needs_update %}Upgrade Needed{% endif %} #

{% if data.needs_update %}

Recipe is version {{ data.fullversion }}, latest upstream release is {{ data.upstream }}.

{% endif%} {% if data.patched %} {% for pinfo in data.patches %} {% endfor %}
Patch Layer Status
{% if pinfo.url %}{% endif %} {{ pinfo.name }} {% if pinfo.url %}{% endif %} {{ pinfo.layer }} {{ make_patch_tag(pinfo.status)}}
{% endif %} {% endfor %} {% endblock %}