report-index.html.jinja 1.5 KB

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