mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-11 15:00:39 +00:00
Instead of simply adding a tag saying "Patched", include the patch count and make a judgement call on whether the patches are "safe" or not. For example, patches which are entirely backports or inappropriate are "safe", pending and denied patches are not. Signed-off-by: Ross Burton <ross.burton@arm.com>
51 lines
1.5 KiB
Django/Jinja
51 lines
1.5 KiB
Django/Jinja
{% extends "report-base.html.jinja" %}
|
|
{% block title %}Recipe Report{% endblock %}
|
|
|
|
{% block content %}
|
|
<table class="table is-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Machine</th>
|
|
{% for recipe in recipes|sort %}
|
|
<th>{{ recipe }} ({{releases[recipe]|default("?")}})</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for machine, data in data|dictsort %}
|
|
<tr>
|
|
<th><a href="{{machine}}.html">{{ machine }}</a></th>
|
|
{% for recipe in recipes|sort %}
|
|
{% if recipe in data %}
|
|
{% set details = data[recipe] %}
|
|
<td style="text-align: center">
|
|
<a href="{{machine}}.html#recipe-{{details.recipe}}">
|
|
{{ details.recipe if details.recipe != recipe}}
|
|
{{ details.version }}
|
|
</a>
|
|
{% if details.patches or details.needs_update %}
|
|
<br>
|
|
{% if details.patches %}
|
|
<span class="tag {{ "is-info" if details.patches_safe else "is-danger" }}">
|
|
{% trans count=details.patches|length %}
|
|
{{ count }} Patch
|
|
{% pluralize %}
|
|
{{ count }} Patches
|
|
{% endtrans %}
|
|
</span>
|
|
{% endif %}
|
|
{% if details.needs_update %}
|
|
<span class="tag is-danger">Upgrade</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
</td>
|
|
{% else %}
|
|
<td>-</td>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|