diff --git a/plinth/modules/openvpn/templates/openvpn.html b/plinth/modules/openvpn/templates/openvpn.html index 71609f4af..13f9d8777 100644 --- a/plinth/modules/openvpn/templates/openvpn.html +++ b/plinth/modules/openvpn/templates/openvpn.html @@ -1,4 +1,4 @@ -{% extends "simple_app.html" %} +{% extends "app.html" %} {% comment %} # # This file is part of FreedomBox. @@ -33,9 +33,54 @@ {% endblock %} -{% block configuration %} +{% block status %} - {% include "clients.html" with clients=clients enabled=is_enabled %} + {% if not status.is_setup and not status.setup_running %} +
+ {% blocktrans trimmed %} + OpenVPN has not yet been setup. Performing a secure setup + takes a very long time. Depending on how fast your + {{ box_name }} is, it may even take hours. If the setup + is interrupted, you may start it again. + {% endblocktrans %} +
+ + + {% endif %} + + {% if not status.is_setup and status.setup_running %} ++ + {% trans "OpenVPN setup is running" %} +
+ ++ {% blocktrans trimmed %} + To perform a secure setup, this process takes a very long + time. Depending on how fast your {{ box_name }} is, it may + even take hours. If the setup is interrupted, you may start + it again. + {% endblocktrans %} +
+ {% endif %} + + {% if status.is_setup %} + {{ block.super }} + {% endif %} + +{% endblock %} + +{% block configuration %} {% if status.is_setup %} @@ -68,68 +113,8 @@ {% endif %} -- {% blocktrans trimmed %} - OpenVPN has not yet been setup. Performing a secure setup - takes a very long time. Depending on how fast your - {{ box_name }} is, it may even take hours. If the setup - is interrupted, you may start it again. - {% endblocktrans %} -
- - - {% endif %} - - {% if not status.is_setup and status.setup_running %} -- - {% trans "OpenVPN setup is running" %} -
- -- {% blocktrans trimmed %} - To perform a secure setup, this process takes a very long - time. Depending on how fast your {{ box_name }} is, it may - even take hours. If the setup is interrupted, you may start - it again. - {% endblocktrans %} -
- {% endif %} - {% if status.is_setup %} -- {% if status.is_running %} - - {% trans "OpenVPN server is running" %} - {% else %} - - {% trans "OpenVPN server is not running" %} - {% endif %} -
- - {% include "diagnostics_button.html" with module="openvpn" enabled=status.enabled %} - - {% include "port-forwarding-info.html" with service_name=title %} - -