mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
letsencrypt: Split CSS styling into a separate file
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
9c2d936b33
commit
ccefd98135
11
plinth/modules/letsencrypt/static/letsencrypt.css
Normal file
11
plinth/modules/letsencrypt/static/letsencrypt.css
Normal file
@ -0,0 +1,11 @@
|
||||
/*
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
.table .form .btn {
|
||||
width: 6.125rem;
|
||||
}
|
||||
|
||||
.operations form {
|
||||
display: inline;
|
||||
}
|
||||
@ -5,17 +5,11 @@
|
||||
|
||||
{% load bootstrap %}
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% block page_head %}
|
||||
<style type="text/css">
|
||||
.table .form .btn {
|
||||
width: 6.125rem;
|
||||
}
|
||||
|
||||
.form-inline {
|
||||
display: inline;
|
||||
}
|
||||
</style>
|
||||
<link type="text/css" rel="stylesheet"
|
||||
href="{% static 'letsencrypt/letsencrypt.css' %}"/>
|
||||
{% endblock %}
|
||||
|
||||
{% block configuration %}
|
||||
@ -77,22 +71,22 @@
|
||||
<span class="badge badge-warning">{% trans "Disabled" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<td class="operations">
|
||||
{% if domain_status.certificate_available %}
|
||||
<form class="form form-inline" method="post"
|
||||
<form class="form" method="post"
|
||||
action="{% url 'letsencrypt:re-obtain' domain %}">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-sm btn-default" type="submit">
|
||||
{% trans "Re-obtain" %}</button>
|
||||
</form>
|
||||
<form class="form form-inline" method="post"
|
||||
<form class="form" method="post"
|
||||
action="{% url 'letsencrypt:delete' domain %}">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-sm btn-default" type="submit">
|
||||
{% trans "Delete" %}</button>
|
||||
</form>
|
||||
{% if "revoked" not in domain_status.validity %}
|
||||
<form class="form form-inline" method="post"
|
||||
<form class="form" method="post"
|
||||
action="{% url 'letsencrypt:revoke' domain %}">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-sm btn-default" type="submit">
|
||||
@ -100,7 +94,7 @@
|
||||
</form>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<form class="form form-inline" method="post"
|
||||
<form class="form" method="post"
|
||||
action="{% url 'letsencrypt:obtain' domain %}">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-sm btn-primary" type="submit">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user