blob: 44537581b38e1763d8d3791b8d13515f2fdc5ff2 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001{% extends "report-base.html.jinja" %}
2{% block title %}Recipe Report{% endblock %}
3
4{% block content %}
5 <table class="table is-striped">
6 <thead>
7 <tr>
8 <th>Machine</th>
9 {% for recipe in recipes|sort %}
10 <th>{{ recipe }} ({{releases[recipe]|default("?")}})</th>
11 {% endfor %}
12 </tr>
13 </thead>
14 <tbody>
15 {% for machine, data in data|dictsort %}
16 <tr>
17 <th><a href="{{machine}}.html">{{ machine }}</a></th>
18 {% for recipe in recipes|sort %}
19 {% if recipe in data %}
20 {% set details = data[recipe] %}
21 <td style="text-align: center">
22 <a href="{{machine}}.html#recipe-{{details.recipe}}">
23 {{ details.recipe if details.recipe != recipe}}
24 {{ details.version }}
25 </a>
26 {% if details.patches or details.needs_update %}
27 <br>
28 {% if details.patches %}
29 <span class="tag {{ "is-info" if details.patches_safe else "is-danger" }}">
30 {% trans count=details.patches|length %}
31 {{ count }} Patch
32 {% pluralize %}
33 {{ count }} Patches
34 {% endtrans %}
35 </span>
36 {% endif %}
37 {% if details.needs_update %}
38 <span class="tag is-danger">Upgrade</span>
39 {% endif %}
40 {% endif %}
41 </td>
42 {% else %}
43 <td>-</td>
44 {% endif %}
45 {% endfor %}
46 </tr>
47 {% endfor %}
48 </tbody>
49 </table>
50{% endblock %}