From b87388ae3c6b4fec160688e51394cfd9ad2c25ce Mon Sep 17 00:00:00 2001
From: James Valleroy
Date: Tue, 17 Oct 2017 06:03:23 -0400
Subject: [PATCH] letsencrypt: Handle case where current domain is empty
Signed-off-by: James Valleroy
---
.../letsencrypt/templates/letsencrypt.html | 215 +++++++++---------
1 file changed, 107 insertions(+), 108 deletions(-)
diff --git a/plinth/modules/letsencrypt/templates/letsencrypt.html b/plinth/modules/letsencrypt/templates/letsencrypt.html
index 536eba7f5..05d5c5d79 100644
--- a/plinth/modules/letsencrypt/templates/letsencrypt.html
+++ b/plinth/modules/letsencrypt/templates/letsencrypt.html
@@ -149,123 +149,122 @@
{% endblocktrans %}
-
+ {% else %}
+ {% blocktrans trimmed %}
+ No current domain is configured.
+ First configure a domain to enable management of its certificates.
+ {% endblocktrans %}
+ {% endif %}
+
{% else %}
{% blocktrans trimmed %}
No domains have been configured. Configure domains to be able to