| 1 | {% extends 'base.html' %} |
| 2 | {% comment %} |
| 3 | # SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | {% endcomment %} |
| 5 | |
| 6 | {% load i18n %} |
| 7 | |
| 8 | {% block content %} |
| 9 | |
| 10 | <h2>{% trans "Diagnostic Results" %}</h2> |
| 11 | |
| 12 | <section> |
| 13 | <div class="d-flex align-items-center justify-content-between"> |
| 14 | <h3>{% blocktrans %}App: {{ app_name }}{% endblocktrans %}</h3> |
| 15 | |
| 16 | {% if show_repair %} |
| 17 | <form class="form form-diagnostics-repair-button" method="post" |
| 18 | action="{% url 'diagnostics:repair' app_id=app_id %}"> |
| 19 | {% csrf_token %} |
| 20 | <input type="submit" class="btn btn-default" |
| 21 | name="repair" value="{% trans "Try to repair" %}"/> |
| 22 | </form> |
| 23 | {% endif %} |
| 24 | </div> |
| 25 | |
| 26 | {% if results %} |
| 27 | {% include "diagnostics_results.html" with results=results %} |
| 28 | {% else %} |
| 29 | <p>{% trans "This app does not support diagnostics" %}</p> |
| 30 | {% endif %} |
| 31 | </section> |
| 32 | |
| 33 | {% endblock %} |