From 312ad2800d904dbd36bf5990d9502a5b08954f93 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 12 Mar 2020 16:15:37 -0700 Subject: [PATCH] pagekite: Fix styling issues for custom services section - Place the add button in a paragraph to remove unnecessary styling. - De-emphasize the add button by making it default style instead of primary. - Re-add a missing class on the custom services list to apply the intended style properly. - Drop horizontal rule. - Remove the unnecessary title "Existing custom services". Emphasize the custom services section by making it

instead of

. Also for consistency across the interface. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- .../templates/pagekite_configure.html | 95 +++++++++---------- 1 file changed, 43 insertions(+), 52 deletions(-) diff --git a/plinth/modules/pagekite/templates/pagekite_configure.html b/plinth/modules/pagekite/templates/pagekite_configure.html index 706348a1c..ad686a95c 100644 --- a/plinth/modules/pagekite/templates/pagekite_configure.html +++ b/plinth/modules/pagekite/templates/pagekite_configure.html @@ -9,68 +9,59 @@ {% block page_head %} - {% endblock %} {% block configuration %} {{ block.super }} -
+

{% trans "Custom Services" %}

-

{% trans "Custom Services" %}

- - - - {% trans 'Add Custom Service' %} - +

+ + + {% trans 'Add Custom Service' %} + +

{% if custom_services %} -
-
{% trans "Existing custom services" %}
- -
- {% for service in custom_services %} -
- - - {% if service.url|slice:":4" == "http" %} - {{ service.url }} - {% else %} - {{ service.url }} - {% endif %} -
- {% blocktrans trimmed with backend_host=service.backend_host backend_port=service.backend_port %} - connected to {{ backend_host }}:{{ backend_port }} - {% endblocktrans %} -
+
+ {% for service in custom_services %} +
+ + + {% if service.url|slice:":4" == "http" %} + {{ service.url }} + {% else %} + {{ service.url }} + {% endif %} +
+ {% blocktrans trimmed with backend_host=service.backend_host backend_port=service.backend_port %} + connected to {{ backend_host }}:{{ backend_port }} + {% endblocktrans %}
-
-
- {% csrf_token %} - {{ service.delete_form.as_p }} -
- -
-
- {% endfor %} -
+
+
+
+ {% csrf_token %} + {{ service.delete_form.as_p }} +
+ +
+
+ {% endfor %}
{% endif %}