FreedomBox/plinth/modules/diagnostics/templates/diagnostics_button.html
Sunil Mohan Adapa eb567e0f41
diagnostics: Prevent showing running status on diagnostics menu item
Tests:

- Click on diagnostics menu item in any app. Notice that running status does not
show up.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2020-08-22 10:52:32 +05:30

19 lines
514 B
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load i18n %}
<form class="form form-diagnostics-button" method="post"
action="{% url 'diagnostics:app' app_id %}">
{% csrf_token %}
{% if enabled %}
<input type="submit" class="btn btn-default no-running-status"
value="{% trans "Run Diagnostics" %}"/>
{% else %}
<input type="submit" class="btn btn-default"
value="{% trans "Run Diagnostics" %}" disabled="disabled"/>
{% endif %}
</form>