mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
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:
parent
7a32b8f638
commit
40e23f209a
@ -7,18 +7,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% 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 configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
@ -33,10 +21,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if custom_services %}
|
{% if custom_services %}
|
||||||
<div class="list-group custom-services">
|
<div class="list-group list-group-two-column custom-services">
|
||||||
{% for service in custom_services %}
|
{% for service in custom_services %}
|
||||||
<div class="list-group-item clearfix">
|
<div class="list-group-item">
|
||||||
<span class="service">
|
<span class="service primary">
|
||||||
<span title="Connects {{ service.url }} to {{ service.backend_host }}:{{ service.backend_port }}">
|
<span title="Connects {{ service.url }} to {{ service.backend_host }}:{{ service.backend_port }}">
|
||||||
{% if service.url|slice:":4" == "http" %}
|
{% if service.url|slice:":4" == "http" %}
|
||||||
<a href="{{ service.url }}">{{ service.url }}</a>
|
<a href="{{ service.url }}">{{ service.url }}</a>
|
||||||
@ -49,7 +37,7 @@
|
|||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<form class="form pull-right" method="post"
|
<form class="form secondary" method="post"
|
||||||
action="{% url 'pagekite:delete-custom-service' %}">
|
action="{% url 'pagekite:delete-custom-service' %}">
|
||||||
<div style='display:none'>
|
<div style='display:none'>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user