From 7e4af695cec37507ebd394fdd2760a5a35c2a5ad Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 12 Nov 2016 08:11:29 +0530 Subject: [PATCH] letsencrypt: I18n and minor fixes - Fix indentation from a recent change. - Internationalize 'no domains configured' message. - Expand the message as per orignal pull request. --- .../letsencrypt/templates/letsencrypt.html | 129 +++++++++--------- 1 file changed, 66 insertions(+), 63 deletions(-) diff --git a/plinth/modules/letsencrypt/templates/letsencrypt.html b/plinth/modules/letsencrypt/templates/letsencrypt.html index 32567c4aa..5bc9c225e 100644 --- a/plinth/modules/letsencrypt/templates/letsencrypt.html +++ b/plinth/modules/letsencrypt/templates/letsencrypt.html @@ -35,73 +35,76 @@ {% block configuration %} {% if status.domains %} -
-
- - +
+
+
+ + + + + + + + + + {% for domain, domain_status in status.domains.items %} - - - - + + + + - - - {% for domain, domain_status in status.domains.items %} - - - - - - - {% endfor %} - -
{% trans "Domain" %}{% trans "Certificate Status" %}{% trans "Website Security" %}{% trans "Actions" %}
{% trans "Domain" %}{% trans "Certificate Status" %}{% trans "Website Security" %}{% trans "Actions" %}{{ domain }} + {% if domain_status.certificate_available %} + + {% blocktrans trimmed with expiry_date=domain_status.expiry_date %} + Expires on {{ expiry_date }} + {% endblocktrans %} + + {% else %} + + {% trans "No certificate" %} + + {% endif %} + + {% if domain_status.web_enabled %} + {% trans "Enabled" %} + {% else %} + {% trans "Disabled" %} + {% endif %} + + {% if domain_status.certificate_available %} +
+ {% csrf_token %} + +
+
+ {% csrf_token %} + +
+ {% else %} +
+ {% csrf_token %} + +
+ {% endif %} +
{{ domain }} - {% if domain_status.certificate_available %} - - {% blocktrans trimmed with expiry_date=domain_status.expiry_date %} - Expires on {{ expiry_date }} - {% endblocktrans %} - - {% else %} - - {% trans "No certificate" %} - - {% endif %} - - {% if domain_status.web_enabled %} - {% trans "Enabled" %} - {% else %} - {% trans "Disabled" %} - {% endif %} - - {% if domain_status.certificate_available %} -
- {% csrf_token %} - -
-
- {% csrf_token %} - -
- {% else %} -
- {% csrf_token %} - -
- {% endif %} -
-
+ {% endfor %} + +
+ - {% include "diagnostics_button.html" with module="letsencrypt" %} + {% include "diagnostics_button.html" with module="letsencrypt" %} {% else %} - No domains have been configured.... + {% blocktrans trimmed %} + No domains have been configured. Configure domains to be able to + obtain certificates for them. + {% endblocktrans %} {% endif %} {% endblock %}