diff --git a/plinth/modules/pagekite/templates/pagekite_configure.html b/plinth/modules/pagekite/templates/pagekite_configure.html
index d9be91fef..9a8b4de51 100644
--- a/plinth/modules/pagekite/templates/pagekite_configure.html
+++ b/plinth/modules/pagekite/templates/pagekite_configure.html
@@ -40,23 +40,20 @@
{% endblock %}
{% block configuration %}
-{{ block.super }}
+ {{ block.super }}
-
{% trans "Custom Services" %}
+ {% trans "Custom Services" %}
-
-
- {% trans 'Add Custom Service' %}
-
+
+
+ {% trans 'Add Custom Service' %}
+
+ {% if custom_services %}
{% trans "Existing custom services" %}
- {% if not custom_services %}
-
{% trans "You don't have any Custom Services enabled" %}
- {% endif %}
-
{% for service in custom_services %}
{% create_pagekite_service_url service kite_name as service_url %}
@@ -84,11 +81,12 @@
title="{% trans "Delete this service" %}">
-
+
{% endfor %}
+ {% endif %}
{% endblock %}