diff --git a/plinth/modules/diagnostics/templates/diagnostics_button.html b/plinth/modules/diagnostics/templates/diagnostics_button.html index 6126a8743..4f463c51c 100644 --- a/plinth/modules/diagnostics/templates/diagnostics_button.html +++ b/plinth/modules/diagnostics/templates/diagnostics_button.html @@ -23,6 +23,11 @@ action="{% url 'diagnostics:module' module %}"> {% csrf_token %} - + {% if enabled %} + + {% else %} + + {% endif %} diff --git a/plinth/modules/letsencrypt/templates/letsencrypt.html b/plinth/modules/letsencrypt/templates/letsencrypt.html index 5bc9c225e..e258ca2c3 100644 --- a/plinth/modules/letsencrypt/templates/letsencrypt.html +++ b/plinth/modules/letsencrypt/templates/letsencrypt.html @@ -100,7 +100,7 @@ - {% include "diagnostics_button.html" with module="letsencrypt" %} + {% include "diagnostics_button.html" with module="letsencrypt" enabled=True %} {% else %} {% blocktrans trimmed %} No domains have been configured. Configure domains to be able to diff --git a/plinth/modules/networks/templates/connections_list.html b/plinth/modules/networks/templates/connections_list.html index 506c354ac..862db5b29 100644 --- a/plinth/modules/networks/templates/connections_list.html +++ b/plinth/modules/networks/templates/connections_list.html @@ -108,7 +108,7 @@ {% include "connections_diagram.html" %} - {% include "diagnostics_button.html" with module="networks" %} + {% include "diagnostics_button.html" with module="networks" enabled=True %} diff --git a/plinth/modules/openvpn/templates/openvpn.html b/plinth/modules/openvpn/templates/openvpn.html index 3bbdf74ef..ac65c4ad9 100644 --- a/plinth/modules/openvpn/templates/openvpn.html +++ b/plinth/modules/openvpn/templates/openvpn.html @@ -111,7 +111,7 @@ {% endif %}
- {% include "diagnostics_button.html" with module="openvpn" %} + {% include "diagnostics_button.html" with module="openvpn" enabled=status.is_running %}