pagekite: Use common styling for custom services

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-12-17 16:05:12 -08:00 committed by Veiko Aasa
parent 7a32b8f638
commit 40e23f209a
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -7,18 +7,6 @@
{% load i18n %}
{% load static %}
{% block page_head %}
<style type="text/css">
div.custom-services span.service {
display: inline-block;
padding-top: 0.375rem;
}
form.pull-right button {
margin: 0.625rem 0.3125rem;
}
</style>
{% endblock %}
{% block configuration %}
{{ block.super }}
@ -33,10 +21,10 @@
</div>
{% if custom_services %}
<div class="list-group custom-services">
<div class="list-group list-group-two-column custom-services">
{% for service in custom_services %}
<div class="list-group-item clearfix">
<span class="service">
<div class="list-group-item">
<span class="service primary">
<span title="Connects {{ service.url }} to {{ service.backend_host }}:{{ service.backend_port }}">
{% if service.url|slice:":4" == "http" %}
<a href="{{ service.url }}">{{ service.url }}</a>
@ -49,7 +37,7 @@
{% endblocktrans %}
</span>
</span>
<form class="form pull-right" method="post"
<form class="form secondary" method="post"
action="{% url 'pagekite:delete-custom-service' %}">
<div style='display:none'>
{% csrf_token %}