1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-07-16 15:57:19 +00:00

scripts/machine-summary: write per-machine reports with more details

Rename the updates.html format to just 'report'.

This report has the existing overview as the index.html, and then
per-machine files are written with the patch breakdown.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2022-01-19 21:20:49 +00:00
committed by Jon Mason
parent b1b0f37da7
commit c4b34740cf
5 changed files with 160 additions and 48 deletions
+44
View File
@@ -0,0 +1,44 @@
{% 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">Patched</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 %}