1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-11 15:00:39 +00:00
Files
meta-arm/scripts/machine-summary-updates.html.jinja
Ross Burton b1d667c396 scripts: add machine summary report tool
machine-summary.py is a tool to generate a report of what recipes and
versions are used for what machines, and what the latest upstream release
is.

Change-Id: Iecf21a14057df0fd1cb05be9b54c621dfbaddd94
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-08-12 09:49:19 -04:00

48 lines
1.5 KiB
Django/Jinja

<!DOCTYPE html>
<html>
<head>
<title>Pending Machine Upgrades Report</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
</head>
<body>
<section class="section">
<div class="content">
<h1 class="title">Pending Machine Upgrades Report</h1>
<p>Generated at {{ timestamp }}.</p>
</div>
<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>{{ machine }}</th>
{% for recipe in recipes|sort %}
{% if recipe in data %}
{% set details = data[recipe] %}
{% set is_old = details.version is old(details.upstream) %}
<td class="{% if is_old %}has-text-weight-bold{% endif %}">
{{ details.recipe if details.recipe != recipe}}
{{ details.version }}
{{ "(patched)" if details.patched }}
</td>
{% else %}
<td>-</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</section>
</body>
</html>