From c2412621b3dd965ce69ead666c2db43d3c2420f7 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Wed, 20 Nov 2019 05:02:48 +0530 Subject: [PATCH] pagekite: Show existing services only if there are any Reduces visual noise on the page. Some formatting changes Signed-off-by: Joseph Nuthalapati --- .../templates/pagekite_configure.html | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) 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 %}