Merge pull request 'Standardize panel layouts and improve live service views' (#167) from fix/consistent-panel-page-layout into main
Reviewed-on: #167
This commit was merged in pull request #167.
This commit is contained in:
commit
db049d2b48
102 files changed
+1248
-566
No files matched your search
@@ -130,6 +130,11 @@ python tools/web_update_manifest.py dist/coulobre_panel-0.10.2rc1-py3-none-any.w
|
|||||||
- Reuse existing templates and styles for controls, focus states, and
|
- Reuse existing templates and styles for controls, focus states, and
|
||||||
status labels. Keep form inputs labelled and validation errors close to
|
status labels. Keep form inputs labelled and validation errors close to
|
||||||
the field that needs attention.
|
the field that needs attention.
|
||||||
|
- Use the shared workspace template for signed-in pages. Place the page
|
||||||
|
heading first, followed by local tabs and any account, domain, or list
|
||||||
|
filters. Start the main content below the divider. Keep status updates
|
||||||
|
separate from forms the operator or customer may be editing.
|
||||||
|
[Workspace template](src/coulobre/hosting/templates/hosting/workspace_page.html)
|
||||||
|
|
||||||
## Checks
|
## Checks
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ def panel_access(request):
|
|||||||
(
|
(
|
||||||
label
|
label
|
||||||
for label, links in groups
|
for label, links in groups
|
||||||
if any(url == active_link for url, _ in links)
|
if any(url == active_link for url, _, _ in links)
|
||||||
),
|
),
|
||||||
"",
|
"",
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,18 +1,28 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.contrib import messages
|
||||||
from django.contrib.auth.mixins import PermissionRequiredMixin
|
from django.contrib.auth.mixins import PermissionRequiredMixin
|
||||||
|
from django.core.exceptions import PermissionDenied
|
||||||
|
from django.http import HttpResponseBadRequest
|
||||||
|
from django.shortcuts import redirect
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.utils.decorators import method_decorator
|
from django.utils.decorators import method_decorator
|
||||||
from django.views.decorators.cache import never_cache
|
from django.views.decorators.cache import never_cache
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
|
||||||
|
from coulobre.operator_node import SERVICES as CONTROL_UNITS
|
||||||
|
from coulobre.operator_node import SOCKET, OperatorRequest
|
||||||
from coulobre.service_health import HEALTH_DETAILS, SERVICES, HealthResult
|
from coulobre.service_health import HEALTH_DETAILS, SERVICES, HealthResult
|
||||||
|
|
||||||
from .access import OperatorOnlyMixin
|
from .access import OperatorOnlyMixin
|
||||||
from .models import ServiceHealth
|
from .models import OperatorOperation, ServiceHealth
|
||||||
|
from .operator_tools import queue_operator_request
|
||||||
|
|
||||||
STALE_AFTER = timedelta(minutes=5)
|
STALE_AFTER = timedelta(minutes=5)
|
||||||
|
SERVICE_ACTIONS = ("reload", "restart")
|
||||||
|
CONTROL_TARGETS = {unit: target for target, unit in CONTROL_UNITS.items()}
|
||||||
STATUS = {
|
STATUS = {
|
||||||
HealthResult.ACTIVE: ("Active", "ready"),
|
HealthResult.ACTIVE: ("Active", "ready"),
|
||||||
HealthResult.INACTIVE: ("Unavailable", "suspended"),
|
HealthResult.INACTIVE: ("Unavailable", "suspended"),
|
||||||
@@ -29,8 +39,37 @@ class ServiceHealthView(
|
|||||||
permission_required = "hosting.view_servicehealth"
|
permission_required = "hosting.view_servicehealth"
|
||||||
template_name = "hosting/service_health.html"
|
template_name = "hosting/service_health.html"
|
||||||
|
|
||||||
|
def can_control(self):
|
||||||
|
user = self.request.user
|
||||||
|
return user.is_superuser and user.is_verified()
|
||||||
|
|
||||||
|
def post(self, request, *args, **kwargs):
|
||||||
|
if not self.can_control():
|
||||||
|
raise PermissionDenied
|
||||||
|
action = request.POST.get("action", "")
|
||||||
|
target = request.POST.get("target", "")
|
||||||
|
if action not in SERVICE_ACTIONS or target not in {
|
||||||
|
CONTROL_TARGETS.get(SERVICES[service][1])
|
||||||
|
for node in settings.SERVICE_HEALTH_TARGETS
|
||||||
|
if node.transport == "local"
|
||||||
|
for service in node.services
|
||||||
|
}:
|
||||||
|
return HttpResponseBadRequest("Choose a controlled local service.")
|
||||||
|
if not Path(SOCKET).is_socket():
|
||||||
|
messages.error(
|
||||||
|
request, "The local operator worker is unavailable."
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
queue_operator_request(
|
||||||
|
request.user, OperatorRequest(action, target)
|
||||||
|
)
|
||||||
|
messages.success(request, "Service operation queued.")
|
||||||
|
return redirect("panel:service_health")
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
targets = settings.SERVICE_HEALTH_TARGETS
|
targets = settings.SERVICE_HEALTH_TARGETS
|
||||||
|
can_control = self.can_control()
|
||||||
|
controls_available = can_control and Path(SOCKET).is_socket()
|
||||||
readings = {
|
readings = {
|
||||||
(reading.node, reading.service): reading
|
(reading.node, reading.service): reading
|
||||||
for reading in ServiceHealth.objects.filter(
|
for reading in ServiceHealth.objects.filter(
|
||||||
@@ -48,17 +87,30 @@ class ServiceHealthView(
|
|||||||
readings.get((target.node, service)),
|
readings.get((target.node, service)),
|
||||||
cutoff,
|
cutoff,
|
||||||
)
|
)
|
||||||
|
| {
|
||||||
|
"control_target": CONTROL_TARGETS.get(
|
||||||
|
SERVICES[service][1]
|
||||||
|
)
|
||||||
|
}
|
||||||
for service in target.services
|
for service in target.services
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
for target in targets
|
for target in targets
|
||||||
],
|
],
|
||||||
|
controls_available=controls_available,
|
||||||
|
show_operation_history=can_control,
|
||||||
|
jobs=OperatorOperation.objects.filter(
|
||||||
|
action__in=SERVICE_ACTIONS,
|
||||||
|
).order_by("-pk")[:20]
|
||||||
|
if can_control
|
||||||
|
else (),
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def service_row(service, reading, cutoff):
|
def service_row(service, reading, cutoff):
|
||||||
row = {
|
row = {
|
||||||
|
"key": service,
|
||||||
"name": SERVICES[service][0],
|
"name": SERVICES[service][0],
|
||||||
"status": "Unknown",
|
"status": "Unknown",
|
||||||
"style": "pending",
|
"style": "pending",
|
||||||
|
|||||||
@@ -3,69 +3,61 @@ from pathlib import Path
|
|||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.db import transaction
|
from django.db import DatabaseError, connection, transaction
|
||||||
from django.shortcuts import redirect
|
from django.shortcuts import redirect
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
from django.utils.decorators import method_decorator
|
||||||
|
from django.views.decorators.cache import never_cache
|
||||||
from django.views.generic import FormView, TemplateView
|
from django.views.generic import FormView, TemplateView
|
||||||
|
|
||||||
from coulobre.operator_node import SERVICES, SOCKET, OperatorRequest
|
from coulobre.operator_node import (
|
||||||
|
DATABASE_COUNTERS_QUERY,
|
||||||
|
DATABASE_VERSION_QUERY,
|
||||||
|
SOCKET,
|
||||||
|
OperatorRequest,
|
||||||
|
database_report_from_rows,
|
||||||
|
)
|
||||||
|
|
||||||
from .account_administration import OperatorAuthorization
|
from .account_administration import OperatorAuthorization
|
||||||
from .models import OperatorOperation
|
from .models import OperatorOperation
|
||||||
from .tasks import run_operator_operation
|
from .tasks import run_operator_operation
|
||||||
from .update_views import inspect_linked_nodes
|
from .update_views import inspect_linked_nodes
|
||||||
|
|
||||||
TOOL_ACTIONS = {
|
|
||||||
"packages": (
|
|
||||||
"Server package updates",
|
|
||||||
("package-preview", "package-upgrade"),
|
|
||||||
),
|
|
||||||
"services": ("System services", ("reload", "restart")),
|
|
||||||
"database": ("Database monitor", ("database-report",)),
|
|
||||||
}
|
|
||||||
ACTION_LABELS = {
|
ACTION_LABELS = {
|
||||||
"package-preview": "Review available updates",
|
"package-preview": "Review available updates",
|
||||||
"package-upgrade": "Apply reviewed updates",
|
"package-upgrade": "Apply reviewed updates",
|
||||||
"reload": "Reload",
|
|
||||||
"restart": "Restart",
|
|
||||||
"database-report": "Collect MariaDB status",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class OperatorToolForm(forms.Form):
|
def queue_operator_request(user, spec, *, source=None):
|
||||||
action = forms.ChoiceField()
|
job = OperatorOperation.objects.create(
|
||||||
preview_id = forms.IntegerField(required=False, widget=forms.HiddenInput)
|
actor=user,
|
||||||
target = forms.ChoiceField(
|
action=spec.action,
|
||||||
required=False,
|
target=spec.target,
|
||||||
choices=[
|
plan=spec.plan,
|
||||||
("", "Select a service"),
|
source=source,
|
||||||
*[(key, label) for key, label in SERVICES.items()],
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
transaction.on_commit(lambda: run_operator_operation.delay(job.pk))
|
||||||
|
|
||||||
|
|
||||||
|
class ServerUpdateForm(forms.Form):
|
||||||
|
action = forms.ChoiceField(choices=ACTION_LABELS.items())
|
||||||
|
preview_id = forms.IntegerField(required=False, widget=forms.HiddenInput)
|
||||||
confirm = forms.BooleanField(
|
confirm = forms.BooleanField(
|
||||||
required=False, label="I reviewed the change and want to apply it"
|
required=False, label="I reviewed the change and want to apply it"
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, *args, actions, preview, **kwargs):
|
def __init__(self, *args, preview, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.preview = preview
|
self.preview = preview
|
||||||
self.initial["preview_id"] = preview.pk if preview else None
|
self.initial["preview_id"] = preview.pk if preview else None
|
||||||
self.fields["action"].choices = [
|
|
||||||
(action, ACTION_LABELS[action]) for action in actions
|
|
||||||
]
|
|
||||||
if "reload" not in actions:
|
|
||||||
self.fields.pop("target")
|
|
||||||
if actions == ("database-report",):
|
|
||||||
self.fields.pop("confirm")
|
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
data = super().clean()
|
data = super().clean()
|
||||||
if self.errors:
|
if self.errors:
|
||||||
return data
|
return data
|
||||||
action = data["action"]
|
action = data["action"]
|
||||||
if action in {"reload", "restart", "package-upgrade"} and not data.get(
|
if action == "package-upgrade" and not data.get("confirm"):
|
||||||
"confirm"
|
|
||||||
):
|
|
||||||
self.add_error(
|
self.add_error(
|
||||||
"confirm", "Confirm this change before applying it."
|
"confirm", "Confirm this change before applying it."
|
||||||
)
|
)
|
||||||
@@ -80,16 +72,15 @@ class OperatorToolForm(forms.Form):
|
|||||||
)
|
)
|
||||||
plan = self.preview.result.get("fingerprint", "")
|
plan = self.preview.result.get("fingerprint", "")
|
||||||
try:
|
try:
|
||||||
self.spec = OperatorRequest(action, data.get("target", ""), plan)
|
self.spec = OperatorRequest(action, plan=plan)
|
||||||
except ValueError as error:
|
except ValueError as error:
|
||||||
raise forms.ValidationError(str(error)) from error
|
raise forms.ValidationError(str(error)) from error
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
class OperatorToolsView(OperatorAuthorization, FormView):
|
class ServerUpdatesView(OperatorAuthorization, FormView):
|
||||||
form_class = OperatorToolForm
|
form_class = ServerUpdateForm
|
||||||
template_name = "hosting/operator_tools.html"
|
template_name = "hosting/server_updates.html"
|
||||||
page = "services"
|
|
||||||
|
|
||||||
def preview(self):
|
def preview(self):
|
||||||
return (
|
return (
|
||||||
@@ -104,20 +95,14 @@ class OperatorToolsView(OperatorAuthorization, FormView):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_form_kwargs(self):
|
def get_form_kwargs(self):
|
||||||
return super().get_form_kwargs() | {
|
return super().get_form_kwargs() | {"preview": self.preview()}
|
||||||
"actions": TOOL_ACTIONS[self.page][1],
|
|
||||||
"preview": self.preview() if self.page == "packages" else None,
|
|
||||||
}
|
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
title, actions = TOOL_ACTIONS[self.page]
|
|
||||||
return super().get_context_data(
|
return super().get_context_data(
|
||||||
title=title,
|
|
||||||
page=self.page,
|
|
||||||
available=Path(SOCKET).is_socket(),
|
available=Path(SOCKET).is_socket(),
|
||||||
jobs=OperatorOperation.objects.filter(action__in=actions).order_by(
|
jobs=OperatorOperation.objects.filter(
|
||||||
"-pk"
|
action__in=ACTION_LABELS
|
||||||
)[:20],
|
).order_by("-pk")[:20],
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -145,18 +130,40 @@ class OperatorToolsView(OperatorAuthorization, FormView):
|
|||||||
"package update.",
|
"package update.",
|
||||||
)
|
)
|
||||||
return self.form_invalid(form)
|
return self.form_invalid(form)
|
||||||
job = OperatorOperation.objects.create(
|
queue_operator_request(
|
||||||
actor=self.request.user,
|
self.request.user,
|
||||||
action=spec.action,
|
spec,
|
||||||
target=spec.target,
|
|
||||||
plan=spec.plan,
|
|
||||||
source=form.preview if spec.action == "package-upgrade" else None,
|
source=form.preview if spec.action == "package-upgrade" else None,
|
||||||
)
|
)
|
||||||
transaction.on_commit(lambda: run_operator_operation.delay(job.pk))
|
|
||||||
messages.success(self.request, "Host operation queued.")
|
messages.success(self.request, "Host operation queued.")
|
||||||
return redirect(self.request.path)
|
return redirect(self.request.path)
|
||||||
|
|
||||||
|
|
||||||
|
def current_database_report():
|
||||||
|
if connection.vendor != "mysql":
|
||||||
|
return None
|
||||||
|
try:
|
||||||
|
with connection.cursor() as cursor:
|
||||||
|
cursor.execute(DATABASE_VERSION_QUERY)
|
||||||
|
version = cursor.fetchone()
|
||||||
|
cursor.execute(DATABASE_COUNTERS_QUERY)
|
||||||
|
return database_report_from_rows([version, *cursor.fetchall()])
|
||||||
|
except (DatabaseError, ValueError):
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
@method_decorator(never_cache, name="dispatch")
|
||||||
|
class DatabaseMonitorView(OperatorAuthorization, TemplateView):
|
||||||
|
template_name = "hosting/database_monitor.html"
|
||||||
|
|
||||||
|
def get_context_data(self, **kwargs):
|
||||||
|
return super().get_context_data(
|
||||||
|
report=current_database_report(),
|
||||||
|
observed_at=timezone.now(),
|
||||||
|
**kwargs,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ConnectedNodesView(OperatorAuthorization, TemplateView):
|
class ConnectedNodesView(OperatorAuthorization, TemplateView):
|
||||||
template_name = "hosting/connected_nodes.html"
|
template_name = "hosting/connected_nodes.html"
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ updatePanelAppearance();
|
|||||||
systemAppearance.addEventListener("change", updatePanelAppearance);
|
systemAppearance.addEventListener("change", updatePanelAppearance);
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
updatePanelAppearance();
|
updatePanelAppearance();
|
||||||
document.querySelector("[data-theme-toggle]").addEventListener("click", () => {
|
document.querySelector("[data-theme-toggle]")?.addEventListener("click", () => {
|
||||||
panelAppearance = document.documentElement.dataset.appearance === "dark" ? "light" : "dark";
|
panelAppearance = document.documentElement.dataset.appearance === "dark" ? "light" : "dark";
|
||||||
try {
|
try {
|
||||||
localStorage.setItem(appearancePreference, panelAppearance);
|
localStorage.setItem(appearancePreference, panelAppearance);
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
const liveRegions = [...document.querySelectorAll("[data-live-status]")];
|
||||||
|
let statusRefreshTimer;
|
||||||
|
let statusRefreshStopped = false;
|
||||||
|
|
||||||
|
function scheduleStatusRefresh() {
|
||||||
|
clearTimeout(statusRefreshTimer);
|
||||||
|
if (!document.hidden && !statusRefreshStopped) {
|
||||||
|
statusRefreshTimer = setTimeout(refreshStatus, 15_000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function refreshStatus() {
|
||||||
|
try {
|
||||||
|
const response = await fetch(location.href, {
|
||||||
|
headers: {"X-Coulobre-Status": "1"},
|
||||||
|
cache: "no-store",
|
||||||
|
signal: AbortSignal.timeout(8_000),
|
||||||
|
});
|
||||||
|
if (response.redirected || [401, 403].includes(response.status)) {
|
||||||
|
statusRefreshStopped = true;
|
||||||
|
}
|
||||||
|
if (statusRefreshStopped || !response.ok || document.hidden) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const page = new DOMParser().parseFromString(await response.text(), "text/html");
|
||||||
|
const refreshed = new Map(
|
||||||
|
[...page.querySelectorAll("[data-live-status]")]
|
||||||
|
.map(region => [region.dataset.liveStatus, region])
|
||||||
|
);
|
||||||
|
for (const region of liveRegions) {
|
||||||
|
const next = refreshed.get(region.dataset.liveStatus);
|
||||||
|
if (!next || region.contains(document.activeElement) ||
|
||||||
|
region.querySelector("details[open], form input:checked") ||
|
||||||
|
region.innerHTML === next.innerHTML) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const scrollPositions = [...region.querySelectorAll(".table-scroll")]
|
||||||
|
.map(table => table.scrollLeft);
|
||||||
|
region.replaceChildren(...next.childNodes);
|
||||||
|
region.querySelectorAll(".table-scroll").forEach((table, index) => {
|
||||||
|
table.scrollLeft = scrollPositions[index] || 0;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
// The current readings remain visible if a refresh fails.
|
||||||
|
} finally {
|
||||||
|
scheduleStatusRefresh();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (liveRegions.length) {
|
||||||
|
document.addEventListener("visibilitychange", scheduleStatusRefresh);
|
||||||
|
scheduleStatusRefresh();
|
||||||
|
}
|
||||||
@@ -312,49 +312,191 @@ button, input, select, textarea {
|
|||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-icon-mail {
|
||||||
|
background:
|
||||||
|
linear-gradient(35deg, transparent 47%, currentColor 50%, transparent 54%) left top / 50% 68% no-repeat,
|
||||||
|
linear-gradient(-35deg, transparent 47%, currentColor 50%, transparent 54%) right top / 50% 68% no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-network {
|
||||||
|
height: 1rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
background:
|
||||||
|
linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
|
||||||
|
linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-lock {
|
||||||
|
position: relative;
|
||||||
|
height: 0.66rem;
|
||||||
|
margin-top: 0.35rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-lock::before {
|
||||||
|
position: absolute;
|
||||||
|
inset: auto 19% 100%;
|
||||||
|
height: 0.36rem;
|
||||||
|
border: 1px solid currentColor;
|
||||||
|
border-radius: 0.6rem 0.6rem 0 0;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-database {
|
||||||
|
height: 1rem;
|
||||||
|
border-radius: 50% / 22%;
|
||||||
|
background:
|
||||||
|
linear-gradient(currentColor, currentColor) center 35% / 100% 1px no-repeat,
|
||||||
|
linear-gradient(currentColor, currentColor) center 70% / 100% 1px no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-folder {
|
||||||
|
position: relative;
|
||||||
|
height: 0.68rem;
|
||||||
|
margin-top: 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-folder::before {
|
||||||
|
position: absolute;
|
||||||
|
inset: auto auto 100% -1px;
|
||||||
|
width: 0.45rem;
|
||||||
|
height: 0.24rem;
|
||||||
|
border: 1px solid currentColor;
|
||||||
|
border-radius: 2px 2px 0 0;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-settings {
|
||||||
|
border: 1px dashed currentColor;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, transparent 21%, currentColor 23% 34%, transparent 36%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-appearance {
|
||||||
|
border-radius: 50%;
|
||||||
|
background: linear-gradient(90deg, currentColor 50%, transparent 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-archive {
|
||||||
|
background:
|
||||||
|
linear-gradient(currentColor, currentColor) center 28% / 100% 1px no-repeat,
|
||||||
|
linear-gradient(currentColor, currentColor) center 63% / 38% 1px no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-clock {
|
||||||
|
height: 1rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
background:
|
||||||
|
linear-gradient(currentColor, currentColor) center 27% / 1px 30% no-repeat,
|
||||||
|
linear-gradient(currentColor, currentColor) 71% center / 30% 1px no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-transfer {
|
||||||
|
border-width: 0 0 1px;
|
||||||
|
border-radius: 0;
|
||||||
|
background: linear-gradient(currentColor, currentColor) left 35% / 88% 1px no-repeat;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-icon-transfer::before {
|
||||||
|
position: absolute;
|
||||||
|
right: 0.1rem;
|
||||||
|
top: 0.04rem;
|
||||||
|
width: 0.4rem;
|
||||||
|
height: 0.4rem;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
border-top: 1px solid currentColor;
|
||||||
|
border-right: 1px solid currentColor;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar-account {
|
.sidebar-account {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.3rem;
|
gap: 0.55rem;
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
padding: 0.85rem 0.55rem 0;
|
padding-top: 0.85rem;
|
||||||
border-top: 1px solid var(--sidebar-divider);
|
border-top: 1px solid var(--sidebar-divider);
|
||||||
font-size: 0.88rem;
|
font-size: 0.88rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.operator {
|
.sidebar-account-controls {
|
||||||
overflow-wrap: anywhere;
|
display: flex;
|
||||||
font-weight: 650;
|
align-items: center;
|
||||||
|
gap: 0.35rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-account a {
|
.sidebar-identity {
|
||||||
color: inherit;
|
display: flex;
|
||||||
text-underline-offset: 0.2em;
|
flex: 1;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.4rem;
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 2.2rem;
|
||||||
|
border-radius: 6px;
|
||||||
|
color: var(--sidebar-text);
|
||||||
|
font-weight: 650;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.sidebar-identity:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-avatar {
|
||||||
|
display: grid;
|
||||||
|
width: 1.9rem;
|
||||||
|
height: 1.9rem;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
place-items: center;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: var(--brand-bg);
|
||||||
|
color: var(--brand-ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-account-name {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-role-switch {
|
.panel-role-switch {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.3rem;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
margin: 0.6rem 0;
|
gap: 0.35rem;
|
||||||
font-size: 0.82rem;
|
font-size: 0.82rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-role-switch select {
|
.panel-role-switch select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 2.2rem;
|
||||||
background: var(--sidebar-active);
|
background: var(--sidebar-active);
|
||||||
color: var(--sidebar-text);
|
color: var(--sidebar-text);
|
||||||
border: 1px solid var(--sidebar-control-line);
|
border: 1px solid var(--sidebar-control-line);
|
||||||
border-radius: 0.35rem;
|
border-radius: 6px;
|
||||||
padding: 0.35rem;
|
padding: 0.35rem 0.45rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-account button {
|
.sidebar-action {
|
||||||
padding: 0;
|
min-height: 2.2rem;
|
||||||
border: 0;
|
padding: 0.3rem 0.45rem;
|
||||||
|
border: 1px solid var(--sidebar-divider);
|
||||||
|
border-radius: 6px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--sidebar-account);
|
color: var(--sidebar-account);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: underline;
|
font-size: 0.82rem;
|
||||||
text-underline-offset: 0.2em;
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-action:hover {
|
||||||
|
border-color: var(--sidebar-control-line);
|
||||||
|
background: var(--sidebar-active);
|
||||||
|
color: var(--sidebar-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.appearance-control {
|
||||||
|
min-width: 2.2rem;
|
||||||
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
@@ -411,10 +553,16 @@ h2 {
|
|||||||
box-shadow: 0 3px 9px var(--surface-shadow);
|
box-shadow: 0 3px 9px var(--surface-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.main > section.surface + section.surface {
|
.main > .surface + .surface {
|
||||||
margin-top: var(--section-gap);
|
margin-top: var(--section-gap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.live-sections {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: var(--section-gap);
|
||||||
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
min-height: 2.55rem;
|
min-height: 2.55rem;
|
||||||
@@ -576,6 +724,26 @@ h2 {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.workspace-heading {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: 1rem;
|
||||||
|
border-bottom: 1px solid var(--line);
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
padding-bottom: 0.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace-heading > .page-heading,
|
||||||
|
.workspace-heading > .account-navigation,
|
||||||
|
.workspace-heading > .workspace-context {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace-heading > .account-navigation {
|
||||||
|
border: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
border-top: 1px solid var(--line);
|
border-top: 1px solid var(--line);
|
||||||
@@ -605,7 +773,7 @@ input::placeholder {
|
|||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar input {
|
.toolbar input, .workspace-context input[type="search"] {
|
||||||
width: min(100%, 20rem);
|
width: min(100%, 20rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -973,9 +1141,9 @@ dd {
|
|||||||
position: static;
|
position: static;
|
||||||
display: grid;
|
display: grid;
|
||||||
height: auto;
|
height: auto;
|
||||||
grid-template-columns: minmax(0, 1fr) auto auto;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
gap: 0.65rem 0.3rem;
|
gap: 0.65rem;
|
||||||
padding: 0.65rem 3.55rem 0.65rem 0.75rem;
|
padding: 0.65rem 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
@@ -1002,38 +1170,23 @@ dd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-toggle {
|
.menu-toggle {
|
||||||
grid-column: 3;
|
grid-column: 2;
|
||||||
grid-row: 1;
|
grid-row: 1;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-account {
|
|
||||||
grid-column: 2;
|
|
||||||
grid-row: 1;
|
|
||||||
max-width: 8.5rem;
|
|
||||||
justify-items: end;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0 0.35rem;
|
|
||||||
border-top: 0;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 375px) {
|
|
||||||
.sidebar {
|
|
||||||
grid-template-columns: minmax(0, 1fr) auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-toggle {
|
|
||||||
grid-column: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-account {
|
.sidebar-account {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
grid-row: 3;
|
grid-row: 3;
|
||||||
display: flex;
|
margin: 0;
|
||||||
max-width: none;
|
padding-top: 0.6rem;
|
||||||
justify-content: space-between;
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 520px) and (max-width: 780px) {
|
||||||
|
.sidebar-account {
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
|
||||||
|
gap: 0.65rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1042,7 +1195,7 @@ dd {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar input {
|
.toolbar input, .workspace-context input[type="search"] {
|
||||||
width: auto;
|
width: auto;
|
||||||
flex: 1 1 45%;
|
flex: 1 1 45%;
|
||||||
}
|
}
|
||||||
@@ -1196,12 +1349,3 @@ dd {
|
|||||||
.workspace-list li + li {
|
.workspace-list li + li {
|
||||||
margin-top: 0.4rem;
|
margin-top: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-account .appearance-control {
|
|
||||||
display: block;
|
|
||||||
margin: 0.35rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-account .appearance-control[hidden] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Backup archives · Coulobre Panel{% endblock %}
|
{% block title %}Backup archives · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}#backups-heading">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Backup archives</h1>
|
<h1>Backup archives</h1>
|
||||||
@@ -13,6 +12,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}#backups-heading">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-label="Backup archive history">
|
<section class="surface" aria-label="Backup archive history">
|
||||||
{% if manage_backup_retention %}
|
{% if manage_backup_retention %}
|
||||||
<header class="section-heading">
|
<header class="section-heading">
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Backup schedule · Coulobre Panel{% endblock %}
|
{% block title %}Backup schedule · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Backup schedule</h1>
|
<h1>Backup schedule</h1>
|
||||||
<p class="heading-meta domain">{{ account.primary_domain }}</p>
|
<p class="heading-meta domain">{{ account.primary_domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,17 +1,28 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}{{ account.name }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ account.name }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ account.name }}{% endblock %}
|
||||||
<a class="back-link" href="{% url 'panel:accounts' %}">← Hosting accounts</a>
|
{% block page_metadata %}
|
||||||
<header class="page-heading">
|
|
||||||
<div>
|
|
||||||
<h1>{{ account.name }}</h1>
|
|
||||||
<div class="account-heading-meta">
|
<div class="account-heading-meta">
|
||||||
<span class="domain">{{ account.primary_domain }}</span>
|
<span class="domain">{{ account.primary_domain }}</span>
|
||||||
{% include "hosting/account_status.html" %}
|
{% include "hosting/account_status.html" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endblock %}
|
||||||
</header>
|
{% block page_actions %}
|
||||||
|
<a class="quiet-link" href="{% url 'panel:accounts' %}">← Hosting accounts</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_tabs %}
|
||||||
|
<nav class="account-navigation" aria-label="On this account" data-account-tabs>
|
||||||
|
<a href="#overview" aria-current="location">Overview</a>
|
||||||
|
{% if show_website or independent_websites or add_independent_website %}<a href="#websites">Websites</a>{% endif %}
|
||||||
|
{% if is_tenant or perms.hosting.view_hostingdnszone %}<a href="#domains-dns">Domains and DNS</a>{% endif %}
|
||||||
|
{% if is_tenant or perms.hosting.view_hostingmailbox %}<a href="#email">Email</a>{% endif %}
|
||||||
|
{% if is_tenant or perms.hosting.view_hostingdatabase %}<a href="#databases">Databases</a>{% endif %}
|
||||||
|
{% if show_account_backups or export_backup_manifest %}<a href="#backups">Backups</a>{% endif %}
|
||||||
|
{% if can_change_hosting_services or service_change or can_retire_account or is_operator and perms.hosting.change_hostingaccount %}<a href="#account-management">Account management</a>{% endif %}
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<dl class="details surface">
|
<dl class="details surface">
|
||||||
{% if is_tenant or perms.hosting.view_hostingplan %}
|
{% if is_tenant or perms.hosting.view_hostingplan %}
|
||||||
<div><dt>Hosting plan</dt><dd>{% if account.hosting_plan %}{{ account.hosting_plan.name }}{% else %}Unassigned{% endif %}
|
<div><dt>Hosting plan</dt><dd>{% if account.hosting_plan %}{{ account.hosting_plan.name }}{% else %}Unassigned{% endif %}
|
||||||
@@ -43,15 +54,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<div><dt>Added</dt><dd>{{ account.created_at|date:"j M Y, H:i" }} UTC</dd></div>
|
<div><dt>Added</dt><dd>{{ account.created_at|date:"j M Y, H:i" }} UTC</dd></div>
|
||||||
</dl>
|
</dl>
|
||||||
<nav class="account-navigation" aria-label="On this account" data-account-tabs>
|
|
||||||
<a href="#overview" aria-current="location">Overview</a>
|
|
||||||
{% if show_website or independent_websites or add_independent_website %}<a href="#websites">Websites</a>{% endif %}
|
|
||||||
{% if is_tenant or perms.hosting.view_hostingdnszone %}<a href="#domains-dns">Domains and DNS</a>{% endif %}
|
|
||||||
{% if is_tenant or perms.hosting.view_hostingmailbox %}<a href="#email">Email</a>{% endif %}
|
|
||||||
{% if is_tenant or perms.hosting.view_hostingdatabase %}<a href="#databases">Databases</a>{% endif %}
|
|
||||||
{% if show_account_backups or export_backup_manifest %}<a href="#backups">Backups</a>{% endif %}
|
|
||||||
{% if can_change_hosting_services or service_change or can_retire_account or is_operator and perms.hosting.change_hostingaccount %}<a href="#account-management">Account management</a>{% endif %}
|
|
||||||
</nav>
|
|
||||||
<section class="surface account-overview account-content" id="overview" data-account-section tabindex="-1" aria-label="Account overview">
|
<section class="surface account-overview account-content" id="overview" data-account-section tabindex="-1" aria-label="Account overview">
|
||||||
{% if offer_account_setup %}
|
{% if offer_account_setup %}
|
||||||
<div class="section-heading">
|
<div class="section-heading">
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ page_title }}{% endblock %}
|
||||||
<a class="back-link" href="{% if account %}{{ account.get_absolute_url }}{% else %}{% url 'panel:accounts' %}{% endif %}">← {% if account %}{{ account.name }}{% else %}Hosting accounts{% endif %}</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>{{ page_title }}</h1></header>
|
<a class="quiet-link" href="{% if account %}{{ account.get_absolute_url }}{% else %}{% url 'panel:accounts' %}{% endif %}">← {% if account %}{{ account.name }}{% else %}Hosting accounts{% endif %}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{% if is_customer %}My hosting{% else %}Hosting accounts{% endif %} · Coulobre Panel{% endblock %}
|
{% block title %}{% if is_customer %}My hosting{% else %}Hosting accounts{% endif %} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if is_customer %}My hosting{% elif is_reseller %}Customer hosting{% else %}Hosting accounts{% endif %}</h1>
|
<h1>{% if is_customer %}My hosting{% elif is_reseller %}Customer hosting{% else %}Hosting accounts{% endif %}</h1>
|
||||||
@@ -12,6 +12,21 @@
|
|||||||
<a class="button primary" href="{% url 'panel:account_create' %}">Add hosting account</a>
|
<a class="button primary" href="{% url 'panel:account_create' %}">Add hosting account</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<div class="workspace-context form-actions account-toolbar">
|
||||||
|
<form class="form-actions" method="get" action="{% url 'panel:accounts' %}" role="search">
|
||||||
|
<label class="visually-hidden" for="account-search">Search by name or domain</label>
|
||||||
|
<input type="search" id="account-search" name="q" placeholder="Name or domain" value="{{ search }}">
|
||||||
|
<button class="button secondary" type="submit">Search</button>
|
||||||
|
{% if search %}<a class="quiet-link" href="{% url 'panel:accounts' %}">Clear</a>{% endif %}
|
||||||
|
</form>
|
||||||
|
{% if is_operator and perms.hosting.retire_hosting_account %}
|
||||||
|
<a class="quiet-link" href="{% url 'panel:retirements' %}">Retired accounts</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% if health_summary %}
|
{% if health_summary %}
|
||||||
<section class="surface section-heading" aria-label="Server status">
|
<section class="surface section-heading" aria-label="Server status">
|
||||||
<p>{% if not health_summary.configured %}Service checks need setup.{% elif health_summary.needs_attention %}{{ health_summary.needs_attention }} of {{ health_summary.configured }} service checks need attention.{% else %}All {{ health_summary.configured }} service checks are healthy.{% endif %}</p>
|
<p>{% if not health_summary.configured %}Service checks need setup.{% elif health_summary.needs_attention %}{{ health_summary.needs_attention }} of {{ health_summary.configured }} service checks need attention.{% else %}All {{ health_summary.configured }} service checks are healthy.{% endif %}</p>
|
||||||
@@ -24,17 +39,6 @@
|
|||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<section class="surface" aria-label="Hosting account list">
|
<section class="surface" aria-label="Hosting account list">
|
||||||
<div class="toolbar account-toolbar">
|
|
||||||
<form class="form-actions" method="get" action="{% url 'panel:accounts' %}" role="search">
|
|
||||||
<label class="visually-hidden" for="account-search">Search by name or domain</label>
|
|
||||||
<input type="search" id="account-search" name="q" placeholder="Name or domain" value="{{ search }}">
|
|
||||||
<button class="button secondary" type="submit">Search</button>
|
|
||||||
{% if search %}<a class="quiet-link" href="{% url 'panel:accounts' %}">Clear</a>{% endif %}
|
|
||||||
</form>
|
|
||||||
{% if is_operator and perms.hosting.retire_hosting_account %}
|
|
||||||
<a class="quiet-link" href="{% url 'panel:retirements' %}">Retired accounts</a>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% if accounts %}
|
{% if accounts %}
|
||||||
<div class="table-scroll">
|
<div class="table-scroll">
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Account retirement · Coulobre Panel{% endblock %}
|
{% block title %}Account retirement · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{% if retirement %}{% url 'panel:retirements' %}{% else %}{{ account.get_absolute_url }}{% endif %}">← {% if retirement %}Retired accounts{% else %}{{ account.name }}{% endif %}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if retirement %}Account retirement{% else %}Retire hosting account{% endif %}</h1>
|
<h1>{% if retirement %}Account retirement{% else %}Retire hosting account{% endif %}</h1>
|
||||||
<p class="heading-meta">{{ account.name }} · {{ inventory.site.domain }}</p>
|
<p class="heading-meta">{{ account.name }} · {{ inventory.site.domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{% if retirement %}{% url 'panel:retirements' %}{% else %}{{ account.get_absolute_url }}{% endif %}">← {% if retirement %}Retired accounts{% else %}{{ account.name }}{% endif %}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-labelledby="retirement-inventory-heading">
|
<section class="surface" aria-labelledby="retirement-inventory-heading">
|
||||||
<header class="section-heading"><h2 id="retirement-inventory-heading">Managed resources</h2></header>
|
<header class="section-heading"><h2 id="retirement-inventory-heading">Managed resources</h2></header>
|
||||||
<dl class="details">
|
<dl class="details">
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}My account · Coulobre Panel{% endblock %}
|
{% block title %}My account · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}My account{% endblock %}
|
||||||
<header class="page-heading"><h1>My account</h1></header>
|
{% block page_content %}
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
<section class="surface" aria-labelledby="account-sign-in">
|
<section class="surface" aria-labelledby="account-sign-in">
|
||||||
<header class="section-heading"><h2 id="account-sign-in">Sign-in and security</h2></header>
|
<header class="section-heading"><h2 id="account-sign-in">Sign-in and security</h2></header>
|
||||||
<dl class="section-text">
|
<dl class="section-text">
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ heading }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ heading }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ heading }}{% endblock %}
|
||||||
<a class="back-link" href="{% url 'panel:account_security' %}">← My account</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>{{ heading }}</h1></header>
|
<a class="quiet-link" href="{% url 'panel:account_security' %}">← My account</a>
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if instructions %}<p>{{ instructions }}</p>{% endif %}
|
{% if instructions %}<p>{{ instructions }}</p>{% endif %}
|
||||||
{% include "hosting/authenticator_setup.html" %}
|
{% include "hosting/authenticator_setup.html" %}
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Complete hosting setup · Coulobre Panel{% endblock %}
|
{% block title %}Complete hosting setup · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading"><div><h1>Complete hosting setup</h1><p class="domain">{{ account.primary_domain }}</p></div></header>
|
<header class="page-heading"><div><h1>Complete hosting setup</h1><p class="domain">{{ account.primary_domain }}</p></div></header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}All users · Coulobre Panel{% endblock %}
|
{% block title %}All users · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}All users{% endblock %}
|
||||||
<header class="page-heading"><h1>All users</h1></header>
|
{% block page_context %}
|
||||||
<section class="surface">
|
<form method="get" class="workspace-context form-actions" role="search">
|
||||||
<form method="get" class="toolbar">
|
<label class="visually-hidden" for="username-search">Search by username</label>
|
||||||
<label for="username-search">Username</label><input type="search" id="username-search" name="q" value="{{ request.GET.q }}">
|
<input type="search" id="username-search" name="q" placeholder="Username" value="{{ request.GET.q }}">
|
||||||
<button class="button secondary" type="submit">Search</button>
|
<button class="button secondary" type="submit">Search</button>
|
||||||
|
{% if request.GET.q %}<a class="quiet-link" href="{% url 'panel:all_users' %}">Clear</a>{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<section class="surface">
|
||||||
<div class="table-scroll">
|
<div class="table-scroll">
|
||||||
<table>
|
<table>
|
||||||
<thead><tr><th scope="col">User</th><th scope="col">Workspace</th><th scope="col">Manager</th><th scope="col">Hosting accounts</th><th scope="col">Disk</th><th scope="col">Monthly traffic</th><th scope="col">Domains</th><th scope="col">Databases</th><th scope="col">Mailboxes</th><th scope="col">Added</th></tr></thead>
|
<thead><tr><th scope="col">User</th><th scope="col">Workspace</th><th scope="col">Manager</th><th scope="col">Hosting accounts</th><th scope="col">Disk</th><th scope="col">Monthly traffic</th><th scope="col">Domains</th><th scope="col">Databases</th><th scope="col">Mailboxes</th><th scope="col">Added</th></tr></thead>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Assign panel role · Coulobre Panel{% endblock %}
|
{% block title %}Assign panel role · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Assign a role to an existing login{% endblock %}
|
||||||
<header class="page-heading"><h1>Assign a role to an existing login</h1></header>
|
{% block page_content %}
|
||||||
<div class="surface editor-surface">
|
<div class="surface editor-surface">
|
||||||
<form class="editor" method="post">
|
<form class="editor" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ back_url }}">← Backup archives</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<p class="heading-meta">{{ account.primary_domain }}{% if archive %} · Backup requested {{ archive.requested_at|date:"j M Y, H:i" }} UTC{% endif %}</p>
|
<p class="heading-meta">{{ account.primary_domain }}{% if archive %} · Backup requested {{ archive.requested_at|date:"j M Y, H:i" }} UTC{% endif %}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ back_url }}">← Backup archives</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{% extends "hosting/workspace_page.html" %}
|
||||||
|
{% block page_title %}Backup & Restore{% endblock %}
|
||||||
|
{% block page_tabs %}
|
||||||
|
<nav class="account-navigation" aria-label="Backup workflows">
|
||||||
|
<a href="{% url 'panel:operator_backups' %}"{% if request.resolver_match.url_name == 'operator_backups' %} aria-current="page"{% endif %}>Hosting accounts</a>
|
||||||
|
<a href="{% url 'panel:system_backup' %}"{% if request.resolver_match.url_name == 'system_backup' %} aria-current="page"{% endif %}>System Backup</a>
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
@@ -27,44 +27,42 @@
|
|||||||
{% include "hosting/workspace_navigation.html" %}
|
{% include "hosting/workspace_navigation.html" %}
|
||||||
</nav>
|
</nav>
|
||||||
<div class="sidebar-account">
|
<div class="sidebar-account">
|
||||||
|
<div class="sidebar-account-controls">
|
||||||
{% if request.impersonation %}
|
{% if request.impersonation %}
|
||||||
<span class="operator">{{ request.user.get_username }}</span>
|
<span class="sidebar-identity">
|
||||||
|
<span class="sidebar-avatar" aria-hidden="true">{{ request.user.get_username|first|upper }}</span>
|
||||||
|
<span class="sidebar-account-name">{{ request.user.get_username }}</span>
|
||||||
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if request.panel_role_options|length > 1 %}
|
<a class="sidebar-identity" href="{% url 'panel:account_security' %}" aria-label="My account for {{ request.user.get_username }}" title="My account">
|
||||||
|
<span class="sidebar-avatar" aria-hidden="true">{{ request.user.get_username|first|upper }}</span>
|
||||||
|
<span class="sidebar-account-name">{{ request.user.get_username }}</span>
|
||||||
|
</a>
|
||||||
|
<button class="sidebar-action appearance-control" type="button" aria-label="Change appearance" data-theme-toggle hidden>
|
||||||
|
<span aria-hidden="true" data-theme-icon>☾</span>
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
|
<form class="sidebar-sign-out" method="post" action="{% url 'panel:logout' %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button class="sidebar-action" type="submit">Sign out</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{% if not request.impersonation and request.panel_role_options|length > 1 %}
|
||||||
<form method="post" class="panel-role-switch" action="{% url 'panel:switch_panel_role' %}">
|
<form method="post" class="panel-role-switch" action="{% url 'panel:switch_panel_role' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<label for="panel-role">Panel role</label>
|
<label class="visually-hidden" for="panel-role">Panel role</label>
|
||||||
<select name="role" id="panel-role">
|
<select name="role" id="panel-role">
|
||||||
{% for value, label in request.panel_role_options %}
|
{% for value, label in request.panel_role_options %}
|
||||||
<option value="{{ value }}"{% if request.active_panel_role == value %} selected{% endif %}>{{ label }}</option>
|
<option value="{{ value }}"{% if request.active_panel_role == value %} selected{% endif %}>{{ label }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<button type="submit">Switch role</button>
|
<button class="sidebar-action" type="submit" aria-label="Switch role">Switch</button>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<button class="appearance-control" type="button" data-theme-toggle hidden>
|
|
||||||
<span aria-hidden="true" data-theme-icon>☾</span> <span>Appearance</span>
|
|
||||||
</button>
|
|
||||||
<a class="operator" href="{% url 'panel:account_security' %}" aria-label="My account for {{ request.user.get_username }}">{{ request.user.get_username }}</a>
|
|
||||||
{% endif %}
|
|
||||||
<form method="post" action="{% url 'panel:logout' %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
<button type="submit">Sign out</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
<main class="main" id="main-content" tabindex="-1">
|
<main class="main" id="main-content" tabindex="-1">
|
||||||
{% if workspace_accounts %}
|
{% block account_selector %}{% include "hosting/workspace_account_selector.html" %}{% endblock %}
|
||||||
<form class="workspace-context form-actions" method="get" action="{% url 'panel:customer_workspace' 'overview' %}">
|
|
||||||
<label for="workspace-account">Hosting account</label>
|
|
||||||
<select id="workspace-account" name="account">
|
|
||||||
{% for account in workspace_accounts %}
|
|
||||||
<option value="{{ account.pk }}"{% if account.pk == workspace_selected %} selected{% endif %}>{{ account.primary_domain }}</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
<button class="button secondary" type="submit">Open</button>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
{% if request.impersonation %}
|
{% if request.impersonation %}
|
||||||
<section class="notice customer-preview" aria-label="Customer view">
|
<section class="notice customer-preview" aria-label="Customer view">
|
||||||
<div>
|
<div>
|
||||||
@@ -86,6 +84,7 @@
|
|||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
<script src="{% static 'hosting/panel-navigation.js' %}" defer></script>
|
<script src="{% static 'hosting/panel-navigation.js' %}" defer></script>
|
||||||
|
{% block extra_scripts %}{% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% block public_content %}{% endblock %}
|
{% block public_content %}{% endblock %}
|
||||||
<button class="theme-toggle button secondary" type="button" data-theme-toggle hidden>
|
<button class="theme-toggle button secondary" type="button" data-theme-toggle hidden>
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Restore {{ restore_kind }} · Coulobre Panel{% endblock %}
|
{% block title %}Restore {{ restore_kind }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}#backups-heading">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Restore {{ restore_kind }}</h1>
|
<h1>Restore {{ restore_kind }}</h1>
|
||||||
<p class="heading-meta">{{ account.primary_domain }} · Backup requested {{ backup.requested_at|date:"j M Y, H:i" }} UTC</p>
|
<p class="heading-meta">{{ account.primary_domain }} · Backup requested {{ backup.requested_at|date:"j M Y, H:i" }} UTC</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}#backups-heading">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if restore_kind == "database" %}
|
{% if restore_kind == "database" %}
|
||||||
<p>Choose an empty managed database. Keep the application disconnected until the restore completes.</p>
|
<p>Choose an empty managed database. Keep the application disconnected until the restore completes.</p>
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Connected nodes · Coulobre Panel{% endblock %}
|
{% block title %}Connected Nodes · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Connected Nodes{% endblock %}
|
||||||
<header class="page-heading"><h1>Connected nodes</h1><a class="button secondary" href="{% url 'panel:service_health' %}">Service health</a></header>
|
{% block page_actions %}
|
||||||
|
<a class="button secondary" href="{% url 'panel:service_health' %}">Service health</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% if topology.problem %}<p class="notice">{{ topology.problem }}</p>{% endif %}
|
{% if topology.problem %}<p class="notice">{{ topology.problem }}</p>{% endif %}
|
||||||
<section class="surface" aria-label="Mail and DNS receivers">
|
<section class="surface" aria-label="Mail and DNS receivers">
|
||||||
<div class="table-scroll"><table>
|
<div class="table-scroll"><table>
|
||||||
|
|||||||
@@ -1,22 +1,15 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Backup & Restore · Coulobre Panel <section class="surface" aria-labelledby="restore-history">
|
{% block title %}Backup & Restore · Coulobre Panel{% endblock %}
|
||||||
<header class="section-heading"><h2 id="restore-history">Recent restores</h2></header>
|
{% block page_title %}Backup & Restore{% endblock %}
|
||||||
<ul class="workspace-list">
|
{% block page_metadata %}<p class="heading-meta">{{ account.primary_domain }}</p>{% endblock %}
|
||||||
{% for restore in restores %}<li>{{ restore.requested_at|date:"j M Y H:i" }} · {{ restore.kind|default:"Website"|capfirst }} · {{ restore.state|capfirst }}</li>
|
{% block page_content %}
|
||||||
{% empty %}<li>No restores yet.</li>{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
||||||
{% block content %}
|
|
||||||
<header class="page-heading"><div><h1>Backup & Restore</h1><p>{{ account.primary_domain }}</p></div></header>
|
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
{% if may_create %}
|
{% if may_create %}
|
||||||
<section class="surface editor-surface" aria-labelledby="backup-create">
|
<section class="surface editor-surface" aria-labelledby="backup-create">
|
||||||
<h2 id="backup-create">Create a backup</h2><p>Download the latest completed customer backup over SFTP at <code>/backups/latest.zip</code>.</p>
|
<h2 id="backup-create">Create a backup</h2><p>Download the latest completed customer backup over SFTP at <code>/backups/latest.zip</code>.</p>
|
||||||
<form class="editor" method="post">{% csrf_token %}{{ form.as_div }}<button class="button primary" type="submit">Create backup</button></form>
|
<form class="editor" method="post">{% csrf_token %}{{ form.as_div }}<button class="button primary" type="submit">Create backup</button></form>
|
||||||
</section>
|
</section>
|
||||||
{% else %}<p class="notice">Customer backups require an active website, SFTP and the local backup service.</p>{% endif %}
|
{% else %}<p class="notice">Customer backups require an active website, SFTP and the local backup service.</p>{% endif %}
|
||||||
<section class="surface" aria-labelledby="backup-history">
|
<section class="surface" aria-labelledby="backup-history" data-live-status="customer-backups">
|
||||||
<header class="section-heading"><h2 id="backup-history">Recent backups</h2></header>
|
<header class="section-heading"><h2 id="backup-history">Recent backups</h2></header>
|
||||||
<ul class="workspace-list">
|
<ul class="workspace-list">
|
||||||
{% for backup, kinds in backups %}<li>{{ backup.requested_at|date:"j M Y H:i" }} · {{ backup.state|capfirst }}
|
{% for backup, kinds in backups %}<li>{{ backup.requested_at|date:"j M Y H:i" }} · {{ backup.state|capfirst }}
|
||||||
@@ -25,7 +18,7 @@
|
|||||||
{% empty %}<li>No backups yet.</li>{% endfor %}
|
{% empty %}<li>No backups yet.</li>{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<section class="surface" aria-labelledby="restore-history">
|
<section class="surface" aria-labelledby="restore-history" data-live-status="customer-restores">
|
||||||
<header class="section-heading"><h2 id="restore-history">Recent restores</h2></header>
|
<header class="section-heading"><h2 id="restore-history">Recent restores</h2></header>
|
||||||
<ul class="workspace-list">
|
<ul class="workspace-list">
|
||||||
{% for restore in restores %}<li>{{ restore.requested_at|date:"j M Y H:i" }} · {{ restore.kind|default:"Website"|capfirst }} · {{ restore.state|capfirst }}</li>
|
{% for restore in restores %}<li>{{ restore.requested_at|date:"j M Y H:i" }} · {{ restore.kind|default:"Website"|capfirst }} · {{ restore.state|capfirst }}</li>
|
||||||
|
|||||||
@@ -1,21 +1,23 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}SSL Certificates · Coulobre Panel{% endblock %}
|
{% block title %}SSL Certificates · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}SSL Certificates{% endblock %}
|
||||||
<header class="page-heading"><div><h1>SSL Certificates</h1><p class="heading-meta">{{ account.primary_domain }}</p></div></header>
|
{% block page_metadata %}<p class="heading-meta">{{ account.primary_domain }}</p>{% endblock %}
|
||||||
|
{% block page_tabs %}
|
||||||
{% if sites %}
|
{% if sites %}
|
||||||
<section class="surface">
|
|
||||||
<form method="get" class="toolbar form-actions">
|
|
||||||
<label for="certificate-domain">Website</label>
|
|
||||||
<select id="certificate-domain" name="domain">{% for choice in sites %}<option value="{{ choice }}"{% if choice == domain %} selected{% endif %}>{{ choice }}</option>{% endfor %}</select>
|
|
||||||
<input type="hidden" name="tab" value="{{ tab }}">
|
|
||||||
<button type="submit" class="button secondary">Select website</button>
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
<nav class="account-navigation" aria-label="Certificates">
|
<nav class="account-navigation" aria-label="Certificates">
|
||||||
<a href="?domain={{ domain }}&tab=manage"{% if tab == 'manage' %} aria-current="page"{% endif %}>Manage certificates</a>
|
<a href="?domain={{ domain }}&tab=manage"{% if tab == 'manage' %} aria-current="page"{% endif %}>Manage certificates</a>
|
||||||
<a href="?domain={{ domain }}&tab=acme"{% if tab == 'acme' %} aria-current="page"{% endif %}>ACME settings</a>
|
<a href="?domain={{ domain }}&tab=acme"{% if tab == 'acme' %} aria-current="page"{% endif %}>ACME settings</a>
|
||||||
<a href="?domain={{ domain }}&tab=history"{% if tab == 'history' %} aria-current="page"{% endif %}>Provisioning history</a>
|
<a href="?domain={{ domain }}&tab=history"{% if tab == 'history' %} aria-current="page"{% endif %}>Provisioning history</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
{% if sites %}
|
||||||
|
{% include "hosting/workspace_domain_selector.html" with field_id="certificate-domain" label="Website" button_label="Select website" domains=sites domain=domain active_tab=tab only %}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
{% if sites %}
|
||||||
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
||||||
{% if tab == 'manage' %}
|
{% if tab == 'manage' %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Databases · Coulobre Panel{% endblock %}
|
{% block title %}Databases · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div><h1>Databases</h1><p class="heading-meta">{{ account.primary_domain }}</p></div>
|
<div><h1>Databases</h1><p class="heading-meta">{{ account.primary_domain }}</p></div>
|
||||||
<a class="button primary" href="{% url 'panel:database_create' account.pk %}">Add database</a>
|
<a class="button primary" href="{% url 'panel:database_create' account.pk %}">Add database</a>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface"><div class="table-scroll"><table>
|
<section class="surface"><div class="table-scroll"><table>
|
||||||
<thead><tr><th scope="col">Database</th><th scope="col">State</th><th scope="col">Primary login</th><th scope="col">Additional logins</th></tr></thead>
|
<thead><tr><th scope="col">Database</th><th scope="col">State</th><th scope="col">Primary login</th><th scope="col">Additional logins</th></tr></thead>
|
||||||
<tbody>{% for db in databases %}
|
<tbody>{% for db in databases %}
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title|default:"Add customer" }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title|default:"Add customer" }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ title|default:"Add customer" }}{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
{% if account %}
|
{% if account %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="back-link" href="{% url 'panel:customers' %}">← Customers</a>
|
<a class="quiet-link" href="{% url 'panel:customers' %}">← Customers</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<header class="page-heading"><h1>{{ title|default:"Add customer" }}</h1></header>
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{% if is_reseller %}My users{% else %}Customers{% endif %} · Coulobre Panel{% endblock %}
|
{% block title %}{% if is_reseller %}My users{% else %}Customers{% endif %} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if is_reseller %}My users{% else %}Customers{% endif %}</h1>
|
<h1>{% if is_reseller %}My users{% else %}Customers{% endif %}</h1>
|
||||||
@@ -15,13 +15,17 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
<section class="surface" aria-label="Customer list">
|
{% endblock %}
|
||||||
<form class="toolbar" method="get" action="{% url 'panel:customers' %}" role="search">
|
{% block page_context %}
|
||||||
|
<form class="workspace-context form-actions" method="get" action="{% url 'panel:customers' %}" role="search">
|
||||||
<label class="visually-hidden" for="customer-search">Search customers by username</label>
|
<label class="visually-hidden" for="customer-search">Search customers by username</label>
|
||||||
<input type="search" id="customer-search" name="q" placeholder="Username" value="{{ search }}">
|
<input type="search" id="customer-search" name="q" placeholder="Username" value="{{ search }}">
|
||||||
<button class="button secondary" type="submit">Search</button>
|
<button class="button secondary" type="submit">Search</button>
|
||||||
{% if search %}<a class="quiet-link" href="{% url 'panel:customers' %}">Clear</a>{% endif %}
|
{% if search %}<a class="quiet-link" href="{% url 'panel:customers' %}">Clear</a>{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<section class="surface" aria-label="Customer list">
|
||||||
{% if customers %}
|
{% if customers %}
|
||||||
<div class="table-scroll">
|
<div class="table-scroll">
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Customer view · Coulobre Panel{% endblock %}
|
{% block title %}Customer view · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
{% if request.impersonation %}
|
{% if request.impersonation %}
|
||||||
@@ -12,6 +12,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% if not request.impersonation and perms.hosting.view_customer %}
|
{% if not request.impersonation and perms.hosting.view_customer %}
|
||||||
<a class="button secondary" href="{% url 'panel:customers' %}">Back to customers</a>
|
<a class="button secondary" href="{% url 'panel:customers' %}">Back to customers</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -1,20 +1,22 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Redirects · Coulobre Panel{% endblock %}
|
{% block title %}Redirects · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Redirects{% endblock %}
|
||||||
<header class="page-heading"><div><h1>Redirects</h1><p class="heading-meta">{{ account.primary_domain }}</p></div></header>
|
{% block page_metadata %}<p class="heading-meta">{{ account.primary_domain }}</p>{% endblock %}
|
||||||
|
{% block page_tabs %}
|
||||||
{% if sites %}
|
{% if sites %}
|
||||||
<section class="surface">
|
|
||||||
<form method="get" class="toolbar form-actions">
|
|
||||||
<label for="redirect-domain">Website or alias</label>
|
|
||||||
<select id="redirect-domain" name="domain">{% for candidate in sites %}<option value="{{ candidate }}"{% if candidate == domain %} selected{% endif %}>{{ candidate }}</option>{% endfor %}</select>
|
|
||||||
<input type="hidden" name="tab" value="{{ kind }}">
|
|
||||||
<button type="submit" class="button secondary">Select hostname</button>
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
<nav class="account-navigation" aria-label="Redirects">
|
<nav class="account-navigation" aria-label="Redirects">
|
||||||
<a href="?tab=domain&domain={{ domain }}"{% if kind == 'domain' %} aria-current="page"{% endif %}>Domain redirects</a>
|
<a href="?tab=domain&domain={{ domain }}"{% if kind == 'domain' %} aria-current="page"{% endif %}>Domain redirects</a>
|
||||||
<a href="?tab=site&domain={{ domain }}"{% if kind == 'site' %} aria-current="page"{% endif %}>Site redirects</a>
|
<a href="?tab=site&domain={{ domain }}"{% if kind == 'site' %} aria-current="page"{% endif %}>Site redirects</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
{% if sites %}
|
||||||
|
{% include "hosting/workspace_domain_selector.html" with field_id="redirect-domain" label="Website or alias" button_label="Select hostname" domains=sites domain=domain active_tab=kind only %}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
{% if sites %}
|
||||||
{% if job and not job.finished_at %}<p class="notice">{{ job.state|capfirst }} · <a href="?tab={{ kind }}&domain={{ domain }}">Refresh status</a></p>{% endif %}
|
{% if job and not job.finished_at %}<p class="notice">{{ job.state|capfirst }} · <a href="?tab={{ kind }}&domain={{ domain }}">Refresh status</a></p>{% endif %}
|
||||||
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
||||||
{% if job.problem %}<p class="notice" role="alert">{{ job.problem }}</p>{% endif %}
|
{% if job.problem %}<p class="notice" role="alert">{{ job.problem }}</p>{% endif %}
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Restore {{ kind }} · Coulobre Panel{% endblock %}
|
{% block title %}Restore {{ kind }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{% url 'panel:customer_backups' account.pk %}">← Backup & Restore</a>
|
|
||||||
<header class="page-heading"><div><h1>Restore {{ kind }}</h1><p>{{ account.primary_domain }} · Backup from {{ backup.requested_at|date:"j M Y H:i" }} UTC</p></div></header>
|
<header class="page-heading"><div><h1>Restore {{ kind }}</h1><p>{{ account.primary_domain }} · Backup from {{ backup.requested_at|date:"j M Y H:i" }} UTC</p></div></header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{% url 'panel:customer_backups' account.pk %}">← Backup & Restore</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if kind == 'website' %}<p>An entire website needs an empty document root. A single file needs an existing parent directory.</p>
|
{% if kind == 'website' %}<p>An entire website needs an empty document root. A single file needs an existing parent directory.</p>
|
||||||
{% elif kind == 'database' %}<p>Choose an empty database and keep its applications disconnected during the restore.</p>
|
{% elif kind == 'database' %}<p>Choose an empty database and keep its applications disconnected during the restore.</p>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{% if auto_provision %}Add{% else %}Request{% endif %} MariaDB database · Coulobre Panel{% endblock %}
|
{% block title %}{% if auto_provision %}Add{% else %}Request{% endif %} MariaDB database · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{% if auto_provision %}Add{% else %}Request{% endif %} MariaDB database{% endblock %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>{% if auto_provision %}Add{% else %}Request{% endif %} MariaDB database</h1></header>
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% include "hosting/customer_action_fields.html" %}
|
{% include "hosting/customer_action_fields.html" %}
|
||||||
|
|||||||
@@ -1,18 +1,11 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Database logins · Coulobre Panel <section class="surface editor-surface">
|
{% block title %}Database logins · Coulobre Panel{% endblock %}
|
||||||
<h2>SQL export</h2>
|
{% block page_title %}Database logins{% endblock %}
|
||||||
{% if export_job %}<p>{{ export_job.state|capfirst }} · {{ export_job.requested_at|date:"j M Y H:i" }} UTC</p>{% endif %}
|
{% block page_metadata %}<p class="heading-meta">{{ database.spec.name }}</p>{% endblock %}
|
||||||
{% if export_job.state == 'configured' %}<p>Download over SFTP at <code>/backups/database-{{ database.suffix }}.sql.gz</code>.</p>{% endif %}
|
{% block page_context %}
|
||||||
{% if export_job.problem %}<p>{{ export_job.problem }}</p>{% endif %}
|
<a class="quiet-link" href="{% url 'panel:customer_databases' database.account_id %}">← Databases</a>
|
||||||
{% if can_export %}<form method="post" action="{% url 'panel:database_export' database.pk %}">{% csrf_token %}
|
|
||||||
<button type="submit" class="button secondary"{% if export_job and not export_job.finished_at %} disabled{% endif %}>Export SQL</button>
|
|
||||||
</form>{% else %}<p>SQL exports require the account's SFTP and backup services.</p>{% endif %}
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block page_content %}
|
||||||
<a class="back-link" href="{% url 'panel:customer_databases' database.account_id %}">← Databases</a>
|
|
||||||
<header class="page-heading"><div><h1>Database logins</h1><p class="heading-meta">{{ database.spec.name }}</p></div></header>
|
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
||||||
<section class="surface"><div class="table-scroll"><table>
|
<section class="surface"><div class="table-scroll"><table>
|
||||||
<thead><tr><th scope="col">Login</th><th scope="col">Access</th><th scope="col">State</th><th scope="col">Actions</th></tr></thead>
|
<thead><tr><th scope="col">Login</th><th scope="col">Access</th><th scope="col">State</th><th scope="col">Actions</th></tr></thead>
|
||||||
@@ -31,7 +24,7 @@
|
|||||||
<h2>Add database login</h2>
|
<h2>Add database login</h2>
|
||||||
<form method="post" class="editor">{% csrf_token %}{{ form.as_div }}<button class="button primary" name="action" value="add" type="submit">Add login</button></form>
|
<form method="post" class="editor">{% csrf_token %}{{ form.as_div }}<button class="button primary" name="action" value="add" type="submit">Add login</button></form>
|
||||||
</section>
|
</section>
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface" data-live-status="sql-export">
|
||||||
<h2>SQL export</h2>
|
<h2>SQL export</h2>
|
||||||
{% if export_job %}<p>{{ export_job.state|capfirst }} · {{ export_job.requested_at|date:"j M Y H:i" }} UTC</p>{% endif %}
|
{% if export_job %}<p>{{ export_job.state|capfirst }} · {{ export_job.requested_at|date:"j M Y H:i" }} UTC</p>{% endif %}
|
||||||
{% if export_job.state == 'configured' %}<p>Download over SFTP at <code>/backups/database-{{ database.suffix }}.sql.gz</code>.</p>{% endif %}
|
{% if export_job.state == 'configured' %}<p>Download over SFTP at <code>/backups/database-{{ database.suffix }}.sql.gz</code>.</p>{% endif %}
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{% extends "hosting/workspace_page.html" %}
|
||||||
|
{% block title %}Database monitor · Coulobre Panel{% endblock %}
|
||||||
|
{% block page_title %}Database monitor{% endblock %}
|
||||||
|
{% block page_actions %}
|
||||||
|
<a class="button secondary" href="{% url 'panel:database_monitor' %}">Refresh status</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<section class="surface" aria-labelledby="database-status" data-live-status="database">
|
||||||
|
<header class="section-heading">
|
||||||
|
<h2 id="database-status">MariaDB status</h2>
|
||||||
|
{% if report %}<time class="muted" datetime="{{ observed_at|date:'c' }}">{{ observed_at|date:"j M Y, H:i:s" }} UTC</time>{% endif %}
|
||||||
|
</header>
|
||||||
|
{% if report %}
|
||||||
|
<dl class="details">
|
||||||
|
<div><dt>Status</dt><dd><span class="status ready">Active</span></dd></div>
|
||||||
|
<div><dt>Version</dt><dd>{{ report.database_version }}</dd></div>
|
||||||
|
<div><dt>Current connections</dt><dd>{{ report.counters.Threads_connected|default:"Unavailable" }}</dd></div>
|
||||||
|
<div><dt>Slow queries</dt><dd>{{ report.counters.Slow_queries|default:"Unavailable" }}</dd></div>
|
||||||
|
<div><dt>Uptime (seconds)</dt><dd>{{ report.counters.Uptime|default:"Unavailable" }}</dd></div>
|
||||||
|
<div><dt>Slow query logging</dt><dd>{{ report.slow_logging|yesno:"Enabled,Disabled" }}</dd></div>
|
||||||
|
</dl>
|
||||||
|
{% else %}
|
||||||
|
<p class="empty">MariaDB measurements are unavailable on this installation.</p>
|
||||||
|
{% endif %}
|
||||||
|
</section>
|
||||||
|
{% endblock %}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}DirectAdmin import · Coulobre Panel{% endblock %}
|
{% block title %}DirectAdmin import · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}DirectAdmin import{% endblock %}
|
||||||
<header class="page-heading"><h1>DirectAdmin import</h1></header>
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<p>Use a DirectAdmin account archive. Inspect it and review the planned account, website, database, mail and DNS changes before importing.</p>
|
<p>Use a DirectAdmin account archive. Inspect it and review the planned account, website, database, mail and DNS changes before importing.</p>
|
||||||
<a class="button secondary" href="https://code.hosting.hippogrief.nl/hippogrief/coulobre/src/branch/main/docs/development.md#inspect-a-directadmin-backup">Open the import guide</a>
|
<a class="button secondary" href="https://code.hosting.hippogrief.nl/hippogrief/coulobre/src/branch/main/docs/development.md#inspect-a-directadmin-backup">Open the import guide</a>
|
||||||
|
|||||||
@@ -1,15 +1,7 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/dns_settings_page.html" %}
|
||||||
{% block title %}DNS zone template · Coulobre Panel{% endblock %}
|
{% block page_content %}
|
||||||
{% block content %}
|
|
||||||
<nav class="account-navigation" aria-label="DNS settings">
|
|
||||||
<a href="{% url 'panel:dns_defaults' %}" aria-current="page">Zone template</a>
|
|
||||||
<a href="{% url 'panel:dns_topology' %}">Local and remote</a>
|
|
||||||
</nav>
|
|
||||||
<header class="page-heading">
|
|
||||||
<div><h1>DNS zone template</h1><p class="heading-meta">These settings apply when you create a managed DNS zone.</p></div>
|
|
||||||
</header>
|
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
|
<p>These settings apply when you create a managed DNS zone.</p>
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_div }}
|
{{ form.as_div }}
|
||||||
|
|||||||
@@ -1,23 +1,26 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}DNS replication · {{ zone.domain }}{% endblock %}
|
{% block title %}DNS replication · {{ zone.domain }}{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}DNS replication{% endblock %}
|
||||||
|
{% block page_metadata %}<p class="heading-meta">{{ zone.domain }}</p>{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ zone.account.get_absolute_url }}">← {{ zone.account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface">
|
<section class="surface">
|
||||||
<h1>DNS replication for {{ zone.domain }}</h1>
|
|
||||||
<p><a href="{{ zone.account.get_absolute_url }}">Back to hosting account</a></p>
|
|
||||||
{% if synchronized %}
|
{% if synchronized %}
|
||||||
<p>Both nameservers publish the same SOA serial.</p>
|
<p class="section-text">Both nameservers publish the same SOA serial.</p>
|
||||||
{% elif unreachable %}
|
{% elif unreachable %}
|
||||||
<p>One or both nameservers did not return an authoritative SOA record.</p>
|
<p class="section-text">One or both nameservers did not return an authoritative SOA record.</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>The nameservers currently publish different SOA serials.</p>
|
<p class="section-text">The nameservers currently publish different SOA serials.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<table>
|
<div class="table-scroll"><table>
|
||||||
<thead><tr><th scope="col">Nameserver</th><th scope="col">Address</th><th scope="col">SOA serial</th></tr></thead>
|
<thead><tr><th scope="col">Nameserver</th><th scope="col">Address</th><th scope="col">SOA serial</th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for role, address, serial in nodes %}
|
{% for role, address, serial in nodes %}
|
||||||
<tr><td>{{ role }}</td><td>{{ address }}</td><td>{{ serial|default_if_none:"Unavailable" }}</td></tr>
|
<tr><td>{{ role }}</td><td>{{ address }}</td><td>{{ serial|default_if_none:"Unavailable" }}</td></tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table></div>
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{% extends "hosting/workspace_page.html" %}
|
||||||
|
{% block title %}DNS Settings · Coulobre Panel{% endblock %}
|
||||||
|
{% block page_title %}DNS Settings{% endblock %}
|
||||||
|
{% block page_tabs %}
|
||||||
|
<nav class="account-navigation" aria-label="DNS settings">
|
||||||
|
<a href="{% url 'panel:dns_defaults' %}"{% if request.resolver_match.url_name == 'dns_defaults' %} aria-current="page"{% endif %}>Zone template</a>
|
||||||
|
<a href="{% url 'panel:dns_topology' %}"{% if request.resolver_match.url_name == 'dns_topology' %} aria-current="page"{% endif %}>Local and remote</a>
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
@@ -1,11 +1,5 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/dns_settings_page.html" %}
|
||||||
{% block title %}DNS Settings · Coulobre Panel{% endblock %}
|
{% block page_content %}
|
||||||
{% block content %}
|
|
||||||
<header class="page-heading"><h1>DNS Settings</h1></header>
|
|
||||||
<nav class="account-navigation" aria-label="DNS settings">
|
|
||||||
<a href="{% url 'panel:dns_defaults' %}">Zone template</a>
|
|
||||||
<a href="{% url 'panel:dns_topology' %}" aria-current="page">Local and remote</a>
|
|
||||||
</nav>
|
|
||||||
<section class="surface"><header class="section-heading"><h2>Service routing</h2><a href="{% url 'panel:connected_nodes' %}">Connected nodes</a></header>
|
<section class="surface"><header class="section-heading"><h2>Service routing</h2><a href="{% url 'panel:connected_nodes' %}">Connected nodes</a></header>
|
||||||
<ul class="workspace-list">
|
<ul class="workspace-list">
|
||||||
{% for node in topology.nodes %}<li>{{ node.role|upper }} · {{ node.host }} · {{ node.state|default:"Unavailable"|capfirst }}</li>{% endfor %}
|
{% for node in topology.nodes %}<li>{{ node.role|upper }} · {{ node.host }} · {{ node.state|default:"Unavailable"|capfirst }}</li>{% endfor %}
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{{ page_title }}</h1>
|
<h1>{{ page_title }}</h1>
|
||||||
<p class="heading-meta domain">{{ domain }}</p>
|
<p class="heading-meta domain">{{ domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface section-text dns-surface">
|
<section class="surface section-text dns-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,20 +1,14 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ title }}{% endblock %}
|
||||||
<header class="page-heading">
|
{% block page_metadata %}<p class="heading-meta">{{ account.primary_domain }}</p>{% endblock %}
|
||||||
<div><h1>{{ title }}</h1><p class="heading-meta">{{ account.primary_domain }}</p></div>
|
{% block page_actions %}
|
||||||
{% if page == 'domains' and can_add_site %}<a class="button primary" href="{% url 'panel:independent_website_create' account.pk %}">Add domain</a>{% endif %}
|
{% if page == 'domains' and can_add_site %}<a class="button primary" href="{% url 'panel:independent_website_create' account.pk %}">Add domain</a>{% endif %}
|
||||||
</header>
|
{% endblock %}
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
{% block page_context %}
|
||||||
<section class="surface">
|
{% include "hosting/workspace_domain_selector.html" with field_id="domain" domains=domains domain=domain only %}
|
||||||
<form method="get" class="toolbar form-actions">
|
{% endblock %}
|
||||||
<label for="domain">Domain</label>
|
{% block page_content %}
|
||||||
<select id="domain" name="domain">
|
|
||||||
{% for choice in domains %}<option value="{{ choice }}"{% if choice == domain %} selected{% endif %}>{{ choice }}</option>{% endfor %}
|
|
||||||
</select>
|
|
||||||
<button class="button secondary" type="submit">Select domain</button>
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
{% if page == 'domains' %}
|
{% if page == 'domains' %}
|
||||||
<section class="surface editor-surface" aria-label="Domain services">
|
<section class="surface editor-surface" aria-label="Domain services">
|
||||||
<form method="post" class="editor">{% csrf_token %}{{ form.as_div }}<button class="button primary" type="submit">Save service preferences</button></form>
|
<form method="post" class="editor">{% csrf_token %}{{ form.as_div }}<button class="button primary" type="submit">Save service preferences</button></form>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}Save your recovery codes · Coulobre Panel{% endblock %}
|
{% block title %}Save your recovery codes · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Save your recovery codes{% endblock %}
|
||||||
<header class="page-heading"><h1>Save your recovery codes</h1></header>
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<p>Keep these codes somewhere safe. Each code lets you sign in once if you lose access to your second factor.</p>
|
<p>Keep these codes somewhere safe. Each code lets you sign in once if you lose access to your second factor.</p>
|
||||||
<textarea class="recovery-codes" id="recovery-codes" rows="10" readonly spellcheck="false" aria-label="Recovery codes" data-secret>{{ recovery_codes }}</textarea>
|
<textarea class="recovery-codes" id="recovery-codes" rows="10" readonly spellcheck="false" aria-label="Recovery codes" data-secret>{{ recovery_codes }}</textarea>
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Configure features · Coulobre Panel{% endblock %}
|
{% block title %}{% if settings_tabs %}Operator Settings{% else %}Configure features{% endif %} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{% if settings_tabs %}Operator Settings{% else %}Configure features{% endif %}{% endblock %}
|
||||||
<a class="back-link" href="{% url 'panel:installation' %}">← About Coulobre</a>
|
{% block page_tabs %}
|
||||||
<header class="page-heading"><h1>{% if settings_tabs %}Operator Settings{% else %}Configure features{% endif %}</h1></header>
|
|
||||||
{% if settings_tabs %}
|
{% if settings_tabs %}
|
||||||
<nav class="account-navigation" aria-label="Operator settings">
|
<nav class="account-navigation" aria-label="Operator settings">
|
||||||
{% for key, label in settings_tabs %}<a href="{% url 'panel:operator_settings' key %}"{% if selected_section == key %} aria-current="page"{% endif %}>{{ label }}</a>{% endfor %}
|
{% for key, label in settings_tabs %}<a href="{% url 'panel:operator_settings' key %}"{% if selected_section == key %} aria-current="page"{% endif %}>{{ label }}</a>{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% if selected_section == 'general' %}
|
{% if selected_section == 'general' %}
|
||||||
<section class="surface section-heading">
|
<section class="surface section-heading">
|
||||||
<h2>Installation</h2>
|
<h2>Installation</h2>
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}SFTP Users · Coulobre Panel{% endblock %}
|
{% block title %}SFTP Users · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading"><div><h1>SFTP Users</h1><p class="heading-meta">{{ account.primary_domain }}</p></div></header>
|
<header class="page-heading"><div><h1>SFTP Users</h1><p class="heading-meta">{{ account.primary_domain }}</p></div></header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
{% if problem %}<p class="notice" role="alert">{{ problem }}</p>{% endif %}
|
||||||
<section class="surface">
|
<section class="surface">
|
||||||
<header class="section-heading"><div><h2>Primary hosting login</h2><p>Access to the hosting account, including files in <code>/backups</code>.</p></div>
|
<header class="section-heading"><div><h2>Primary hosting login</h2><p>Access to the hosting account, including files in <code>/backups</code>.</p></div>
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ page_title }}{% endblock %}
|
||||||
<a class="back-link" href="{% url 'panel:hosting_plans' %}">← Hosting plans</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>{{ page_title }}</h1></header>
|
<a class="quiet-link" href="{% url 'panel:hosting_plans' %}">← Hosting plans</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Hosting plans · Coulobre Panel{% endblock %}
|
{% block title %}Hosting plans · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<h1>Hosting plans</h1>
|
<h1>Hosting plans</h1>
|
||||||
{% if perms.hosting.add_hostingplan %}
|
{% if perms.hosting.add_hostingplan %}
|
||||||
<a class="button primary" href="{% url 'panel:hosting_plan_create' %}">Add hosting plan</a>
|
<a class="button primary" href="{% url 'panel:hosting_plan_create' %}">Add hosting plan</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-label="Hosting plans">
|
<section class="surface" aria-label="Hosting plans">
|
||||||
{% if hosting_plans %}
|
{% if hosting_plans %}
|
||||||
<div class="table-scroll">
|
<div class="table-scroll">
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}HTTP Settings · Coulobre Panel{% endblock %}
|
{% block title %}HTTP Settings · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}HTTP Settings{% endblock %}
|
||||||
<header class="page-heading"><h1>HTTP Settings</h1></header>
|
{% block page_tabs %}
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
<nav class="account-navigation" aria-label="HTTP settings">
|
<nav class="account-navigation" aria-label="HTTP settings">
|
||||||
<a href="{% url 'panel:http_defaults' 'apache' %}"{% if target == 'apache' %} aria-current="page"{% endif %}>Apache</a>
|
<a href="{% url 'panel:http_defaults' 'apache' %}"{% if target == 'apache' %} aria-current="page"{% endif %}>Apache</a>
|
||||||
<a href="{% url 'panel:http_defaults' 'php' %}"{% if target == 'php' %} aria-current="page"{% endif %}>PHP-FPM</a>
|
<a href="{% url 'panel:http_defaults' 'php' %}"{% if target == 'php' %} aria-current="page"{% endif %}>PHP-FPM</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if target == 'apache' %}<p>Set server-wide Apache defaults. Review the effect on the panel and hosted sites before applying them.</p>
|
{% if target == 'apache' %}<p>Set server-wide Apache defaults. Review the effect on the panel and hosted sites before applying them.</p>
|
||||||
{% else %}<p>Set PHP defaults for installed PHP-FPM versions. Website-specific settings still apply.</p>{% endif %}
|
{% else %}<p>Set PHP defaults for installed PHP-FPM versions. Website-specific settings still apply.</p>{% endif %}
|
||||||
@@ -20,7 +21,7 @@
|
|||||||
</form>
|
</form>
|
||||||
{% if not available %}<p>Enable the operator worker to apply a template.</p>{% endif %}
|
{% if not available %}<p>Enable the operator worker to apply a template.</p>{% endif %}
|
||||||
</section>
|
</section>
|
||||||
<section class="surface"><header class="section-heading"><h2>Change history</h2></header>
|
<section class="surface" data-live-status="http-changes"><header class="section-heading"><h2>Change history</h2></header>
|
||||||
<ul class="workspace-list">{% for job in jobs %}<li>{{ job.requested_at|date:"j M Y H:i" }} UTC · {{ job.state|capfirst }}{% if job.problem %}<p>{{ job.problem }}</p>{% endif %}</li>
|
<ul class="workspace-list">{% for job in jobs %}<li>{{ job.requested_at|date:"j M Y H:i" }} UTC · {{ job.state|capfirst }}{% if job.problem %}<p>{{ job.problem }}</p>{% endif %}</li>
|
||||||
{% empty %}<li>No template changes yet.</li>{% endfor %}</ul>
|
{% empty %}<li>No template changes yet.</li>{% endfor %}</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}#independent-websites">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
{% if website %}<p class="heading-meta domain">{{ website }}</p>{% endif %}
|
{% if website %}<p class="heading-meta domain">{{ website }}</p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}#independent-websites">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if add %}<p>This website has its own document root and PHP runtime. Point the domain at this web server before enabling HTTPS.</p>{% endif %}
|
{% if add %}<p>This website has its own document root and PHP runtime. Point the domain at this web server before enabling HTTPS.</p>{% endif %}
|
||||||
{% if retiring %}<p>Retirement takes this website offline and archives its files on the web server. Its domain stays reserved.</p>{% endif %}
|
{% if retiring %}<p>Retirement takes this website offline and archives its files on the web server. Its domain stays reserved.</p>{% endif %}
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
|
|
||||||
{% block title %}About Coulobre · Coulobre Panel{% endblock %}
|
{% block title %}About Coulobre · Coulobre Panel{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block page_title %}About Coulobre{% endblock %}
|
||||||
<header class="page-heading"><h1>About Coulobre</h1></header>
|
{% block page_content %}
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
<section class="surface" aria-labelledby="installation-heading">
|
<section class="surface" aria-labelledby="installation-heading">
|
||||||
<header class="section-heading"><h2 id="installation-heading">Installation</h2></header>
|
<header class="section-heading"><h2 id="installation-heading">Installation</h2></header>
|
||||||
<dl class="details">
|
<dl class="details">
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Mail delivery · Coulobre Panel{% endblock %}
|
{% block title %}Mail delivery · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Mail delivery{% endblock %}
|
||||||
<header class="page-heading"><h1>Mail delivery</h1></header>
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form class="editor" method="post" action="{% url 'panel:mail_delivery' %}">
|
<form class="editor" method="post" action="{% url 'panel:mail_delivery' %}">
|
||||||
{% csrf_token %}{{ form.as_div }}<button class="button primary" type="submit">Search delivery history</button>
|
{% csrf_token %}{{ form.as_div }}<button class="button primary" type="submit">Search delivery history</button>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
{% if search %}
|
{% if search %}
|
||||||
<section class="surface" aria-label="Search results">
|
<section class="surface" aria-label="Search results" data-live-status="mail-delivery">
|
||||||
<header class="section-heading"><h2>{{ search.domain.domain }}</h2>
|
<header class="section-heading"><h2>{{ search.domain.domain }}</h2>
|
||||||
{% if not search.finished_at %}<a class="button secondary" href="?search={{ search.pk }}">Refresh status</a>{% endif %}
|
{% if not search.finished_at %}<a class="button secondary" href="?search={{ search.pk }}">Refresh status</a>{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}Mail DNS check · Coulobre Panel{% endblock %}
|
{% block title %}Mail DNS check · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Mail DNS check</h1>
|
<h1>Mail DNS check</h1>
|
||||||
<p class="heading-meta domain">{{ domain }}</p>
|
<p class="heading-meta domain">{{ domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% if not request.impersonation %}
|
{% if not request.impersonation %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
|
|||||||
@@ -1,15 +1,19 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
|
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<p class="heading-meta">{{ object }}</p>
|
<p class="heading-meta">{{ object }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if job %}
|
{% if job %}
|
||||||
{% if job.state == "configured" %}
|
{% if job.state == "configured" %}
|
||||||
|
|||||||
@@ -1,15 +1,21 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Mail queue · {{ mail_domain }}{% endblock %}
|
{% block title %}Mail queue · {{ mail_domain }}{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Mail queue{% endblock %}
|
||||||
<section class="surface">
|
{% block page_metadata %}<p class="heading-meta">{{ mail_domain }}</p>{% endblock %}
|
||||||
<h1>Mail queue for {{ mail_domain }}</h1>
|
{% block page_actions %}
|
||||||
<p><a href="{{ mail_domain.account.get_absolute_url }}">{{ mail_domain.account.name }}</a></p>
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="button primary" type="submit">Collect queue summary</button>
|
<button class="button primary" type="submit">Collect queue summary</button>
|
||||||
</form>
|
</form>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ mail_domain.account.get_absolute_url }}">← {{ mail_domain.account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<div class="live-sections" data-live-status="mail-queue">
|
||||||
|
<section class="surface editor-surface" aria-label="Queue summary">
|
||||||
{% if mail_domain.queue_requested_at and not mail_domain.queue_observed_at or mail_domain.queue_requested_at > mail_domain.queue_observed_at %}
|
{% if mail_domain.queue_requested_at and not mail_domain.queue_observed_at or mail_domain.queue_requested_at > mail_domain.queue_observed_at %}
|
||||||
<p>Queue summary requested. Reload this page to check for results.</p>
|
<p>Queue summary requested.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if mail_domain.queue_report.error %}<p role="alert">{{ mail_domain.queue_report.error }}</p>{% endif %}
|
{% if mail_domain.queue_report.error %}<p role="alert">{{ mail_domain.queue_report.error }}</p>{% endif %}
|
||||||
{% if mail_domain.queue_report.counts %}
|
{% if mail_domain.queue_report.counts %}
|
||||||
@@ -20,7 +26,7 @@
|
|||||||
<dt>{{ queue|capfirst }}</dt><dd>{{ count }}</dd>
|
<dt>{{ queue|capfirst }}</dt><dd>{{ count }}</dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
{% endif %}
|
{% elif not mail_domain.queue_requested_at %}<p>No queue summary yet.</p>{% endif %}
|
||||||
</section>
|
</section>
|
||||||
{% if mail_domain.queue_report.entries and request.user.is_superuser and request.user.is_verified %}
|
{% if mail_domain.queue_report.entries and request.user.is_superuser and request.user.is_verified %}
|
||||||
<section class="surface" aria-label="Queue entries"><ul class="workspace-list">
|
<section class="surface" aria-label="Queue entries"><ul class="workspace-list">
|
||||||
@@ -38,4 +44,5 @@
|
|||||||
{% if operations %}<section class="surface" aria-label="Queue actions"><ul class="workspace-list">
|
{% if operations %}<section class="surface" aria-label="Queue actions"><ul class="workspace-list">
|
||||||
{% for job in operations %}<li>{{ job.action|capfirst }} {{ job.queue_id }} · {{ job.state|capfirst }}{% if job.problem %} · {{ job.problem }}{% endif %}</li>{% endfor %}
|
{% for job in operations %}<li>{{ job.action|capfirst }} {{ job.queue_id }} · {{ job.state|capfirst }}{% if job.problem %} · {{ job.problem }}{% endif %}</li>{% endfor %}
|
||||||
</ul></section>{% endif %}
|
</ul></section>{% endif %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block content %}
|
{% block page_title %}Mail Queue{% endblock %}
|
||||||
<header class="page-heading"><h1>Mail Queue</h1></header>
|
{% block page_content %}
|
||||||
<section class="surface"><ul class="workspace-list">
|
<section class="surface"><ul class="workspace-list">
|
||||||
{% for domain in domains %}<li><a href="{% url 'panel:mail_queue' domain.pk %}">{{ domain }}</a></li>
|
{% for domain in domains %}<li><a href="{% url 'panel:mail_queue' domain.pk %}">{{ domain }}</a></li>
|
||||||
{% empty %}<li>No managed email domains.</li>{% endfor %}
|
{% empty %}<li>No managed email domains.</li>{% endfor %}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{% if auto_provision %}Add{% else %}Request{% endif %} mailbox · Coulobre Panel{% endblock %}
|
{% block title %}{% if auto_provision %}Add{% else %}Request{% endif %} mailbox · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if auto_provision %}Add{% else %}Request{% endif %} mailbox</h1>
|
<h1>{% if auto_provision %}Add{% else %}Request{% endif %} mailbox</h1>
|
||||||
<p class="heading-meta domain">{{ mail_domain_name|default:account.primary_domain }}</p>
|
<p class="heading-meta domain">{{ mail_domain_name|default:account.primary_domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% include "hosting/customer_action_fields.html" %}
|
{% include "hosting/customer_action_fields.html" %}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Change mailbox storage limit · Coulobre Panel{% endblock %}
|
{% block title %}Change mailbox storage limit · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ mailbox.mail_domain.account.get_absolute_url }}">← {{ mailbox.mail_domain.account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Change storage limit</h1>
|
<h1>Change storage limit</h1>
|
||||||
<p class="heading-meta domain">{{ mailbox }}</p>
|
<p class="heading-meta domain">{{ mailbox }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ mailbox.mail_domain.account.get_absolute_url }}">← {{ mailbox.mail_domain.account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Contact and invitation · Coulobre Panel{% endblock %}
|
{% block title %}Contact and invitation · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Contact and invitation{% endblock %}
|
||||||
<header class="page-heading"><h1>Contact and invitation</h1></header>
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<p>{{ login_user.get_username }}</p>
|
<p>{{ login_user.get_username }}</p>
|
||||||
{% if invitation %}<p class="heading-meta">Invitation delivery · {{ invitation.get_delivery_display }}</p>{% endif %}
|
{% if invitation %}<p class="heading-meta">Invitation delivery · {{ invitation.get_delivery_display }}</p>{% endif %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}User packages · Coulobre Panel{% endblock %}
|
{% block title %}User packages · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}User packages{% endblock %}
|
||||||
<header class="page-heading"><h1>User packages</h1></header>
|
{% block page_content %}
|
||||||
<section class="surface">
|
<section class="surface">
|
||||||
<ul class="workspace-list">
|
<ul class="workspace-list">
|
||||||
{% for plan in plans %}<li><strong>{{ plan.name }}</strong>{% if plan.description %}<p>{{ plan.description }}</p>{% endif %}</li>
|
{% for plan in plans %}<li><strong>{{ plan.name }}</strong>{% if plan.description %}<p>{{ plan.description }}</p>{% endif %}</li>
|
||||||
|
|||||||
@@ -1,18 +1,14 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/backup_workspace.html" %}
|
||||||
{% block title %}Account Backup & Restore · Coulobre Panel{% endblock %}
|
{% block title %}Account Backup & Restore · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>Account Backup & Restore</h1></header>
|
<form method="get" class="workspace-context form-actions">
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
<nav class="account-navigation" aria-label="Backup workflows">
|
|
||||||
<a href="{% url 'panel:operator_backups' %}" aria-current="page">Hosting accounts</a>
|
|
||||||
<a href="{% url 'panel:system_backup' %}">System Backup</a>
|
|
||||||
</nav>
|
|
||||||
<section class="surface">
|
|
||||||
<form method="get" class="toolbar form-actions">
|
|
||||||
<label for="manager">Manager</label><select id="manager" name="manager"><option value="">All hosting accounts</option>
|
<label for="manager">Manager</label><select id="manager" name="manager"><option value="">All hosting accounts</option>
|
||||||
{% for manager in managers %}<option value="{{ manager.pk }}"{% if manager.pk|stringformat:"s" == selected_manager %} selected{% endif %}>{{ manager }}</option>{% endfor %}
|
{% for manager in managers %}<option value="{{ manager.pk }}"{% if manager.pk|stringformat:"s" == selected_manager %} selected{% endif %}>{{ manager }}</option>{% endfor %}
|
||||||
</select><button class="button secondary" type="submit">Filter accounts</button>
|
</select><button class="button secondary" type="submit">Filter accounts</button>
|
||||||
</form>
|
</form>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<section class="surface">
|
||||||
<div class="table-scroll"><table>
|
<div class="table-scroll"><table>
|
||||||
<thead><tr><th scope="col">Hosting account</th><th scope="col">Manager</th><th scope="col">Latest backup</th><th scope="col">Schedule</th><th scope="col">Actions</th></tr></thead>
|
<thead><tr><th scope="col">Hosting account</th><th scope="col">Manager</th><th scope="col">Latest backup</th><th scope="col">Schedule</th><th scope="col">Actions</th></tr></thead>
|
||||||
<tbody>{% for account in accounts %}
|
<tbody>{% for account in accounts %}
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}SSL Overview · Coulobre Panel{% endblock %}
|
{% block title %}SSL Overview · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}SSL Overview{% endblock %}
|
||||||
<header class="page-heading"><h1>SSL Overview</h1></header>
|
{% block page_tabs %}
|
||||||
<nav class="account-navigation" aria-label="TLS overview">
|
<nav class="account-navigation" aria-label="TLS overview">
|
||||||
<a href="?tab=websites"{% if mode == 'websites' %} aria-current="page"{% endif %}>Hosted websites</a>
|
<a href="?tab=websites"{% if mode == 'websites' %} aria-current="page"{% endif %}>Hosted websites</a>
|
||||||
<a href="?tab=server"{% if mode == 'server' %} aria-current="page"{% endif %}>Server SSL</a>
|
<a href="?tab=server"{% if mode == 'server' %} aria-current="page"{% endif %}>Server SSL</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% if mode == 'server' %}
|
{% if mode == 'server' %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<h2>Configured endpoints</h2>
|
<h2>Configured endpoints</h2>
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
<section class="surface" aria-labelledby="operation-history" data-live-status="operator-history">
|
||||||
|
<header class="section-heading"><h2 id="operation-history">Operation history</h2></header>
|
||||||
|
{% for job in jobs %}
|
||||||
|
<details class="section-text">
|
||||||
|
<summary>{{ job.requested_at|date:"j M Y H:i" }} UTC · {{ job.action|capfirst }}{% if job.target %} {{ job.target }}{% endif %} · {{ job.state|capfirst }}</summary>
|
||||||
|
{% if job.actor %}<p>Requested by {{ job.actor }}</p>{% endif %}
|
||||||
|
{% if job.problem %}<p>{{ job.problem }}</p>{% endif %}
|
||||||
|
{% if job.action == 'package-preview' and job.result.fingerprint %}
|
||||||
|
<p>{{ job.result.count }} package{{ job.result.count|pluralize }} ready to update.</p>
|
||||||
|
<ul>{% for package in job.result.packages %}<li><code>{{ package }}</code></li>{% endfor %}</ul>
|
||||||
|
{% endif %}
|
||||||
|
</details>
|
||||||
|
{% empty %}<p class="empty">No operations yet.</p>{% endfor %}
|
||||||
|
</section>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
{% extends "hosting/base.html" %}
|
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
|
||||||
{% block content %}
|
|
||||||
<header class="page-heading"><h1>{{ title }}</h1></header>
|
|
||||||
<div class="form-actions">
|
|
||||||
{% if page == 'packages' %}<a href="{% url 'panel:updates' %}">Coulobre updates</a>
|
|
||||||
{% elif page == 'services' %}<a href="{% url 'panel:service_health' %}">Service health</a>{% endif %}
|
|
||||||
</div>
|
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
<section class="surface editor-surface">
|
|
||||||
{% if available %}<form method="post" class="editor">{% csrf_token %}{{ form.as_div }}<button class="button primary" type="submit">Queue operation</button></form>
|
|
||||||
{% else %}<p>Enable the operator service on the host to run these operations.</p>{% endif %}
|
|
||||||
</section>
|
|
||||||
<section class="surface" aria-label="Operation history">
|
|
||||||
<header class="section-heading"><h2>Operation history</h2></header>
|
|
||||||
{% for job in jobs %}
|
|
||||||
<details class="section-text"><summary>{{ job.requested_at|date:"j M Y H:i" }} · {{ job.action }}{% if job.target %} · {{ job.target }}{% endif %} · {{ job.state|capfirst }}</summary>
|
|
||||||
{% if job.problem %}<p>{{ job.problem }}</p>{% endif %}
|
|
||||||
{% if job.action == 'package-preview' and job.result.fingerprint %}
|
|
||||||
<p>{{ job.result.count }} package{{ job.result.count|pluralize }} ready to update.</p>
|
|
||||||
<ul>{% for package in job.result.packages %}<li><code>{{ package }}</code></li>{% endfor %}</ul>
|
|
||||||
{% elif job.action == 'database-report' and job.result.database_version %}
|
|
||||||
<p>MariaDB {{ job.result.database_version }} · Slow query logging {{ job.result.slow_logging|yesno:"enabled,disabled" }}</p>
|
|
||||||
<dl>{% for key, value in job.result.counters.items %}<dt>{{ key }}</dt><dd>{{ value }}</dd>{% endfor %}</dl>
|
|
||||||
{% endif %}
|
|
||||||
</details>
|
|
||||||
{% empty %}<p class="empty">No operations yet.</p>{% endfor %}
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
{% block extra_styles %}{% if theme_preview %}<link rel="stylesheet" href="{% url 'panel:preview_stylesheet' %}">{% endif %}{% endblock %}
|
{% block extra_styles %}{% if theme_preview %}<link rel="stylesheet" href="{% url 'panel:preview_stylesheet' %}">{% endif %}{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ title }}{% endblock %}
|
||||||
<header class="page-heading"><h1>{{ title }}</h1></header>
|
{% block page_content %}
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
{% if theme_preview %}
|
{% if theme_preview %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<h2>Previewing {{ theme_preview }}</h2>
|
<h2>Previewing {{ theme_preview }}</h2>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Apache preview · Coulobre Panel{% endblock %}
|
{% block title %}Apache preview · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{% url 'panel:plans' %}">← Web provisioning</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Apache preview</h1>
|
<h1>Apache preview</h1>
|
||||||
@@ -11,6 +10,11 @@
|
|||||||
<a class="button secondary" href="{% url 'panel:plan' plan.pk %}">Refresh status</a>
|
<a class="button secondary" href="{% url 'panel:plan' plan.pk %}">Refresh status</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{% url 'panel:plans' %}">← Web provisioning</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<dl class="details surface">
|
<dl class="details surface">
|
||||||
<div><dt>Status</dt><dd>{% include "hosting/plan_status.html" %}</dd></div>
|
<div><dt>Status</dt><dd>{% include "hosting/plan_status.html" %}</dd></div>
|
||||||
<div><dt>Hosting account</dt><dd>{% if is_reseller or perms.hosting.view_hostingaccount %}<a class="record-link" href="{{ plan.account.get_absolute_url }}">{{ plan.account.name }}</a>{% else %}{{ plan.account.name }}{% endif %}</dd></div>
|
<div><dt>Hosting account</dt><dd>{% if is_reseller or perms.hosting.view_hostingaccount %}<a class="record-link" href="{{ plan.account.get_absolute_url }}">{{ plan.account.name }}</a>{% else %}{{ plan.account.name }}{% endif %}</dd></div>
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Web provisioning · Coulobre Panel{% endblock %}
|
{% block title %}Web provisioning · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Web provisioning</h1>
|
<h1>Web provisioning</h1>
|
||||||
<p class="heading-meta">{{ paginator.count }} Apache preview{{ paginator.count|pluralize }}</p>
|
<p class="heading-meta">{{ paginator.count }} Apache preview{{ paginator.count|pluralize }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-label="Apache previews">
|
<section class="surface" aria-label="Apache previews">
|
||||||
{% include "hosting/plan_table.html" %}
|
{% include "hosting/plan_table.html" %}
|
||||||
{% include "hosting/pagination.html" %}
|
{% include "hosting/pagination.html" %}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ reseller }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ reseller }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{% url 'panel:resellers' %}">← Managers</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<h1>{{ reseller }}</h1>
|
<h1>{{ reseller }}</h1>
|
||||||
{% if perms.hosting.add_hostingaccount and perms.hosting.view_hostingaccount %}
|
{% if perms.hosting.add_hostingaccount and perms.hosting.view_hostingaccount %}
|
||||||
@@ -12,6 +11,11 @@
|
|||||||
<a class="button secondary" href="{% url 'panel:reseller_edit' reseller.pk %}">Edit manager</a>
|
<a class="button secondary" href="{% url 'panel:reseller_edit' reseller.pk %}">Edit manager</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{% url 'panel:resellers' %}">← Managers</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<dl class="details surface">
|
<dl class="details surface">
|
||||||
<div><dt>Panel sign-in</dt><dd>{{ reseller.user.is_active|yesno:"Active,Suspended" }}</dd></div>
|
<div><dt>Panel sign-in</dt><dd>{{ reseller.user.is_active|yesno:"Active,Suspended" }}</dd></div>
|
||||||
<div><dt>Accounts allocated</dt><dd>{{ account_count }} of {{ reseller.account_limit }}</dd></div>
|
<div><dt>Accounts allocated</dt><dd>{{ account_count }} of {{ reseller.account_limit }}</dd></div>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ page_title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ page_title }}{% endblock %}
|
||||||
<a class="back-link" href="{% if reseller %}{{ reseller.get_absolute_url }}{% else %}{% url 'panel:resellers' %}{% endif %}">← {% if reseller %}{{ reseller }}{% else %}Managers{% endif %}</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>{{ page_title }}</h1></header>
|
<a class="quiet-link" href="{% if reseller %}{{ reseller.get_absolute_url }}{% else %}{% url 'panel:resellers' %}{% endif %}">← {% if reseller %}{{ reseller }}{% else %}Managers{% endif %}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if profiles %}
|
{% if profiles %}
|
||||||
<form method="get" class="editor">
|
<form method="get" class="editor">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Managers · Coulobre Panel{% endblock %}
|
{% block title %}Managers · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<h1>Managers</h1>
|
<h1>Managers</h1>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@@ -15,13 +15,17 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<section class="surface" aria-label="Manager list">
|
{% endblock %}
|
||||||
<form class="toolbar" method="get" action="{% url 'panel:resellers' %}" role="search">
|
{% block page_context %}
|
||||||
|
<form class="workspace-context form-actions" method="get" action="{% url 'panel:resellers' %}" role="search">
|
||||||
<label class="visually-hidden" for="reseller-search">Search by username</label>
|
<label class="visually-hidden" for="reseller-search">Search by username</label>
|
||||||
<input type="search" id="reseller-search" name="q" placeholder="Username" value="{{ search }}">
|
<input type="search" id="reseller-search" name="q" placeholder="Username" value="{{ search }}">
|
||||||
<button class="button secondary" type="submit">Search</button>
|
<button class="button secondary" type="submit">Search</button>
|
||||||
{% if search %}<a class="quiet-link" href="{% url 'panel:resellers' %}">Clear</a>{% endif %}
|
{% if search %}<a class="quiet-link" href="{% url 'panel:resellers' %}">Clear</a>{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<section class="surface" aria-label="Manager list">
|
||||||
{% if resellers %}
|
{% if resellers %}
|
||||||
<div class="table-scroll">
|
<div class="table-scroll">
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{% if object %}Edit profile{% else %}Add profile{% endif %} · Coulobre Panel{% endblock %}
|
{% block title %}{% if object %}Edit profile{% else %}Add profile{% endif %} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{% if object %}Edit profile{% else %}Add profile{% endif %}{% endblock %}
|
||||||
<a class="back-link" href="{% url 'panel:reseller_profiles' %}">← Manager profiles</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>{% if object %}Edit profile{% else %}Add profile{% endif %}</h1></header>
|
<a class="quiet-link" href="{% url 'panel:reseller_profiles' %}">← Manager profiles</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Manager profiles · Coulobre Panel{% endblock %}
|
{% block title %}Manager profiles · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{% url 'panel:resellers' %}">← Managers</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<h1>Manager profiles</h1>
|
<h1>Manager profiles</h1>
|
||||||
<a class="button primary" href="{% url 'panel:reseller_profile_create' %}">Add profile</a>
|
<a class="button primary" href="{% url 'panel:reseller_profile_create' %}">Add profile</a>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{% url 'panel:resellers' %}">← Managers</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface">
|
<section class="surface">
|
||||||
<table>
|
<table>
|
||||||
<thead><tr><th scope="col">Profile</th><th scope="col">Account limit</th></tr></thead>
|
<thead><tr><th scope="col">Profile</th><th scope="col">Account limit</th></tr></thead>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Retired accounts · Coulobre Panel{% endblock %}
|
{% block title %}Retired accounts · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Retired accounts{% endblock %}
|
||||||
<a class="back-link" href="{% url 'panel:accounts' %}">← Hosting accounts</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>Retired accounts</h1></header>
|
<a class="quiet-link" href="{% url 'panel:accounts' %}">← Hosting accounts</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-label="Retired hosting accounts">
|
<section class="surface" aria-label="Retired hosting accounts">
|
||||||
{% if retirements %}
|
{% if retirements %}
|
||||||
<div class="table-scroll">
|
<div class="table-scroll">
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{% extends "hosting/update_workspace.html" %}
|
||||||
|
{% block title %}Server package updates · Coulobre Panel{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<section class="surface editor-surface" data-live-status="package-preview">
|
||||||
|
{% if available %}
|
||||||
|
<form method="post" class="form-actions">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button class="button secondary" name="action" value="package-preview" type="submit">Review available updates</button>
|
||||||
|
</form>
|
||||||
|
{{ form.non_field_errors }}
|
||||||
|
{{ form.action.errors }}
|
||||||
|
{% if form.preview.result.count %}
|
||||||
|
<form method="post" class="editor">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ form.preview_id }}
|
||||||
|
{{ form.preview_id.errors }}
|
||||||
|
<ul class="workspace-list">
|
||||||
|
{% for package in form.preview.result.packages %}<li><code>{{ package }}</code></li>{% endfor %}
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<label for="{{ form.confirm.id_for_label }}">{{ form.confirm }} {{ form.confirm.label }}</label>
|
||||||
|
{{ form.confirm.errors }}
|
||||||
|
</div>
|
||||||
|
<button class="button primary" name="action" value="package-upgrade" type="submit">Apply reviewed updates</button>
|
||||||
|
</form>
|
||||||
|
{% else %}
|
||||||
|
{% if form.preview %}<p>No packages are ready to update.</p>{% endif %}
|
||||||
|
{{ form.preview_id.errors }}
|
||||||
|
{% endif %}
|
||||||
|
{% else %}<p>Enable the operator service on the host to review server updates.</p>{% endif %}
|
||||||
|
</section>
|
||||||
|
{% include "hosting/operator_operation_history.html" %}
|
||||||
|
{% endblock %}
|
||||||
@@ -1,14 +1,18 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}{% if rotating %}Rotate password{% else %}Connection details{% endif %} · Coulobre Panel{% endblock %}
|
{% block title %}{% if rotating %}Rotate password{% else %}Connection details{% endif %} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if rotating %}Rotate password{% else %}Connection details{% endif %}</h1>
|
<h1>{% if rotating %}Rotate password{% else %}Connection details{% endif %}</h1>
|
||||||
<p class="heading-meta domain">{{ resource }}</p>
|
<p class="heading-meta domain">{{ resource }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
{% if rotation_problem %}
|
{% if rotation_problem %}
|
||||||
<p role="alert">{{ rotation_problem }}</p>
|
<p role="alert">{{ rotation_problem }}</p>
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
|
|
||||||
{% block title %}Service health · Coulobre Panel{% endblock %}
|
{% block title %}System Services · Coulobre Panel{% endblock %}
|
||||||
|
{% block page_title %}System Services{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block page_content %}
|
||||||
<header class="page-heading">
|
{% if show_operation_history and not controls_available %}
|
||||||
<h1>Service health</h1>
|
<p class="notice">Enable the local operator worker to reload or restart services.</p>
|
||||||
</header>
|
{% endif %}
|
||||||
{% for node, services in nodes %}
|
{% for node, services in nodes %}
|
||||||
<section class="surface" aria-labelledby="health-{{ node.node }}">
|
<section class="surface" aria-labelledby="health-{{ node.node }}">
|
||||||
<header class="section-heading">
|
<header class="section-heading">
|
||||||
@@ -20,15 +21,28 @@
|
|||||||
<th scope="col">Status</th>
|
<th scope="col">Status</th>
|
||||||
<th scope="col">Last check (UTC)</th>
|
<th scope="col">Last check (UTC)</th>
|
||||||
<th scope="col">Details</th>
|
<th scope="col">Details</th>
|
||||||
|
{% if controls_available and node.transport == 'local' %}<th scope="col">Actions</th>{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for service in services %}
|
{% for service in services %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{ service.name }}</th>
|
<th scope="row">{{ service.name }}</th>
|
||||||
<td><span class="status {{ service.style }}">{{ service.status }}</span></td>
|
<td data-live-status="{{ node.node }}-{{ service.key }}-status"><span class="status {{ service.style }}">{{ service.status }}</span></td>
|
||||||
<td>{% if service.observed_at %}<time datetime="{{ service.observed_at|date:'c' }}">{{ service.observed_at|date:'Y-m-d H:i:s' }}</time>{% else %}—{% endif %}</td>
|
<td data-live-status="{{ node.node }}-{{ service.key }}-checked">{% if service.observed_at %}<time datetime="{{ service.observed_at|date:'c' }}">{{ service.observed_at|date:'Y-m-d H:i:s' }}</time>{% else %}—{% endif %}</td>
|
||||||
<td>{{ service.detail }}</td>
|
<td data-live-status="{{ node.node }}-{{ service.key }}-detail">{{ service.detail }}</td>
|
||||||
|
{% if controls_available and node.transport == 'local' %}
|
||||||
|
<td>
|
||||||
|
{% if service.control_target %}
|
||||||
|
<form class="form-actions" method="post" action="{% url 'panel:service_health' %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input type="hidden" name="target" value="{{ service.control_target }}">
|
||||||
|
<button type="submit" class="button secondary" name="action" value="reload" aria-label="Reload {{ service.name }}">Reload</button>
|
||||||
|
<button type="submit" class="button secondary" name="action" value="restart" aria-label="Restart {{ service.name }}">Restart</button>
|
||||||
|
</form>
|
||||||
|
{% else %}—{% endif %}
|
||||||
|
</td>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -40,4 +54,7 @@
|
|||||||
<p class="empty">Set <code>COULOBRE_SERVICE_HEALTH</code> in <code>/etc/coulobre/panel.env</code> and enable <code>coulobre-health.timer</code> to collect service observations.</p>
|
<p class="empty">Set <code>COULOBRE_SERVICE_HEALTH</code> in <code>/etc/coulobre/panel.env</code> and enable <code>coulobre-health.timer</code> to collect service observations.</p>
|
||||||
</section>
|
</section>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if show_operation_history %}
|
||||||
|
{% include "hosting/operator_operation_history.html" %}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -1,14 +1,18 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}Opening {{ product }} · Coulobre Panel{% endblock %}
|
{% block title %}Opening {{ product }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Opening {{ product }}</h1>
|
<h1>Opening {{ product }}</h1>
|
||||||
<p class="heading-meta domain">{{ resource }}</p>
|
<p class="heading-meta domain">{{ resource }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" action="{{ destination }}" id="service-signon" class="editor">
|
<form method="post" action="{{ destination }}" id="service-signon" class="editor">
|
||||||
<input type="hidden" name="{{ ticket_field }}" value="{{ ticket }}">
|
<input type="hidden" name="{{ ticket_field }}" value="{{ ticket }}">
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}SFTP access · Coulobre Panel{% endblock %}
|
{% block title %}SFTP access · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>SFTP access</h1>
|
<h1>SFTP access</h1>
|
||||||
@@ -11,6 +10,11 @@
|
|||||||
<a class="button secondary" href="{% url 'panel:sftp_keys' account.pk %}">Refresh status</a>
|
<a class="button secondary" href="{% url 'panel:sftp_keys' account.pk %}">Refresh status</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
{% with request_status=account.sftp %}
|
{% with request_status=account.sftp %}
|
||||||
{% if request_status %}
|
{% if request_status %}
|
||||||
<p class="notice">
|
<p class="notice">
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Change PHP settings · Coulobre Panel{% endblock %}
|
{% block title %}Change PHP settings · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}#php-settings-heading">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Change PHP settings</h1>
|
<h1>Change PHP settings</h1>
|
||||||
<p class="heading-meta domain">{{ site_domain|default:account.primary_domain }}</p>
|
<p class="heading-meta domain">{{ site_domain|default:account.primary_domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}#php-settings-heading">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
<p>{% if is_customer %}Blank fields use the hosting plan defaults.{% else %}Blank fields use the web node defaults.{% endif %}</p>
|
<p>{% if is_customer %}Blank fields use the hosting plan defaults.{% else %}Blank fields use the web node defaults.{% endif %}</p>
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Change PHP version · Coulobre Panel{% endblock %}
|
{% block title %}Change PHP version · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<h1>Change PHP version</h1>
|
<h1>Change PHP version</h1>
|
||||||
{% if current_version %}<p>Current version for {{ account.primary_domain }} is PHP {{ current_version }}.</p>{% endif %}
|
{% if current_version %}<p>Current version for {{ account.primary_domain }} is PHP {{ current_version }}.</p>{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Change website storage limit · Coulobre Panel{% endblock %}
|
{% block title %}Change website storage limit · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Change website storage limit</h1>
|
<h1>Change website storage limit</h1>
|
||||||
<p class="heading-meta domain">{{ account.primary_domain }}</p>
|
<p class="heading-meta domain">{{ account.primary_domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/backup_workspace.html" %}
|
||||||
{% block title %}System Backup · Coulobre Panel{% endblock %}
|
{% block title %}System Backup · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_content %}
|
||||||
<header class="page-heading"><h1>System Backup</h1></header>
|
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
{% if available %}
|
{% if available %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<h2>Run a backup</h2>
|
<h2>Run a backup</h2>
|
||||||
@@ -19,7 +17,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
{% else %}<p class="notice">Enable system backups and the local operator worker on this server.</p>{% endif %}
|
{% else %}<p class="notice">Enable system backups and the local operator worker on this server.</p>{% endif %}
|
||||||
<section class="surface"><header class="section-heading"><h2>Backup history</h2></header>
|
<section class="surface" data-live-status="system-backups"><header class="section-heading"><h2>Backup history</h2></header>
|
||||||
<ul class="workspace-list">{% for job in jobs %}
|
<ul class="workspace-list">{% for job in jobs %}
|
||||||
<li>{{ job.requested_at|date:"j M Y H:i" }} UTC · {{ job.actor|default:"Scheduled" }} · {{ job.state|capfirst }}
|
<li>{{ job.requested_at|date:"j M Y H:i" }} UTC · {{ job.actor|default:"Scheduled" }} · {{ job.state|capfirst }}
|
||||||
{% if job.problem %}<p>{{ job.problem }}</p>{% endif %}
|
{% if job.problem %}<p>{{ job.problem }}</p>{% endif %}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<header class="page-heading"><div><h1>{{ title }}</h1>{% if section == 'statistics' %}<p class="heading-meta">Traffic for {{ month }}. Usage is based on available measurements.</p>{% endif %}</div></header>
|
<header class="page-heading"><div><h1>{{ title }}</h1>{% if section == 'statistics' %}<p class="heading-meta">Traffic for {{ month }}. Usage is based on available measurements.</p>{% endif %}</div></header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-label="Hosting accounts">
|
<section class="surface" aria-label="Hosting accounts">
|
||||||
{% if section == 'statistics' %}
|
{% if section == 'statistics' %}
|
||||||
<div class="table-scroll"><table>
|
<div class="table-scroll"><table>
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{% extends "hosting/workspace_page.html" %}
|
||||||
|
{% block page_title %}Updates{% endblock %}
|
||||||
|
{% block page_tabs %}
|
||||||
|
<nav class="account-navigation" aria-label="Update types">
|
||||||
|
<a href="{% url 'panel:updates' %}"{% if request.resolver_match.url_name == 'updates' %} aria-current="page"{% endif %}>Coulobre</a>
|
||||||
|
<a href="{% url 'panel:server_updates' %}"{% if request.resolver_match.url_name == 'server_updates' %} aria-current="page"{% endif %}>Server packages</a>
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/update_workspace.html" %}
|
||||||
{% load release_notes %}
|
{% load release_notes %}
|
||||||
{% block title %}Updates · Coulobre Panel{% endblock %}
|
{% block title %}Updates · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_metadata %}<p class="heading-meta">Installed version {{ installed_version|default:"unknown" }}</p>{% endblock %}
|
||||||
<header class="page-heading">
|
{% block page_actions %}
|
||||||
<div><h1>Updates</h1><p class="heading-meta">Installed version {{ installed_version|default:"unknown" }}</p></div>
|
<a class="button secondary" href="{% url 'panel:updates' %}?refresh=1">Refresh status</a>
|
||||||
<div class="form-actions"><a class="button secondary" href="{% url 'panel:server_updates' %}">Server packages</a><a class="button secondary" href="{% url 'panel:updates' %}?refresh=1">Refresh status</a></div>
|
{% endblock %}
|
||||||
</header>
|
{% block page_content %}
|
||||||
{% for message in messages %}<p class="notice" role="status">{{ message }}</p>{% endfor %}
|
|
||||||
{% if form.errors %}<div class="notice">{{ form.errors }}</div>{% endif %}
|
{% if form.errors %}<div class="notice">{{ form.errors }}</div>{% endif %}
|
||||||
{% if update_status %}
|
{% if update_status %}
|
||||||
<section class="surface" aria-labelledby="update-status">
|
<section class="surface" aria-labelledby="update-status">
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}#website-aliases-heading">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<p class="heading-meta domain">{% if alias %}{{ alias.reservation.domain }}{% else %}{{ account.primary_domain }}{% endif %}</p>
|
<p class="heading-meta domain">{% if alias %}{{ alias.reservation.domain }}{% else %}{{ account.primary_domain }}{% endif %}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}#website-aliases-heading">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% if action == "https" %}
|
{% if action == "https" %}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{% if action == "rename" %}Rename{% else %}Remove{% endif %} website entry · Coulobre Panel{% endblock %}
|
{% block title %}{% if action == "rename" %}Rename{% else %}Remove{% endif %} website entry · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ folder_url }}">← Website files</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if action == "rename" %}Rename{% else %}Remove{% endif %} website entry</h1>
|
<h1>{% if action == "rename" %}Rename{% else %}Remove{% endif %} website entry</h1>
|
||||||
<p class="heading-meta domain">{{ site.domain }}</p>
|
<p class="heading-meta domain">{{ site.domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ folder_url }}">← Website files</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<p class="file-name"><strong>{{ name }}</strong></p>
|
<p class="file-name"><strong>{{ name }}</strong></p>
|
||||||
{% if action == "delete" %}<p>This removes the selected file or empty folder from the website.</p>{% endif %}
|
{% if action == "delete" %}<p>This removes the selected file or empty folder from the website.</p>{% endif %}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Website files · Coulobre Panel{% endblock %}
|
{% block title %}Website files · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Website files</h1>
|
<h1>Website files</h1>
|
||||||
<p class="heading-meta domain">{{ site.domain }}</p>
|
<p class="heading-meta domain">{{ site.domain }}</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-labelledby="website-folder">
|
<section class="surface" aria-labelledby="website-folder">
|
||||||
<nav aria-label="Website folder path">
|
<nav aria-label="Website folder path">
|
||||||
<ol class="file-breadcrumbs" id="website-folder">
|
<ol class="file-breadcrumbs" id="website-folder">
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Website files · Coulobre Panel{% endblock %}
|
{% block title %}Website files · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Website files{% endblock %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
{% block page_context %}
|
||||||
<header class="page-heading"><h1>Website files</h1></header>
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<p role="alert">{{ problem }}</p>
|
<p role="alert">{{ problem }}</p>
|
||||||
<a class="button secondary" href="{{ root_url }}">Back to document root</a>
|
<a class="button secondary" href="{{ root_url }}">Back to document root</a>
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{% if job %}Edit{% else %}Add{% endif %} website job · Coulobre Panel{% endblock %}
|
{% block title %}{% if job %}Edit{% else %}Add{% endif %} website job · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ list_url }}">← Scheduled website jobs</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if job %}Edit{% else %}Add{% endif %} website job</h1>
|
<h1>{% if job %}Edit{% else %}Add{% endif %} website job</h1>
|
||||||
{% if job %}<p class="heading-meta domain">{{ job.domain }}</p>{% endif %}
|
{% if job %}<p class="heading-meta domain">{{ job.domain }}</p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ list_url }}">← Scheduled website jobs</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Scheduled website jobs · Coulobre Panel{% endblock %}
|
{% block title %}Scheduled website jobs · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Scheduled website jobs</h1>
|
<h1>Scheduled website jobs</h1>
|
||||||
@@ -11,6 +10,11 @@
|
|||||||
<a class="button primary" href="{% url 'panel:website_job_create' account.pk %}">Add job</a>
|
<a class="button primary" href="{% url 'panel:website_job_create' account.pk %}">Add job</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface" aria-label="Scheduled website jobs">
|
<section class="surface" aria-label="Scheduled website jobs">
|
||||||
{% if rows %}
|
{% if rows %}
|
||||||
<div class="table-scroll">
|
<div class="table-scroll">
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Restore website · Coulobre Panel{% endblock %}
|
{% block title %}Restore website · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_header %}
|
||||||
<a class="back-link" href="{{ account.get_absolute_url }}#backups-heading">← {{ account.name }}</a>
|
|
||||||
<header class="page-heading">
|
<header class="page-heading">
|
||||||
<div>
|
<div>
|
||||||
<h1>Restore website</h1>
|
<h1>Restore website</h1>
|
||||||
<p class="heading-meta">{% if restore_site %}{{ restore_site.domain }} · {% endif %}Backup requested {{ backup.requested_at|date:"j M Y, H:i" }} UTC</p>
|
<p class="heading-meta">{% if restore_site %}{{ restore_site.domain }} · {% endif %}Backup requested {{ backup.requested_at|date:"j M Y, H:i" }} UTC</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}#backups-heading">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
<section class="surface editor-surface">
|
<section class="surface editor-surface">
|
||||||
<p>Restoring the entire website requires an empty document root. For a single file, its parent directory must already exist.</p>
|
<p>Restoring the entire website requires an empty document root. For a single file, its parent directory must already exist.</p>
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
|
|||||||
@@ -1,20 +1,25 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}Usage · {{ account.name }}{% endblock %}
|
{% block title %}Usage · {{ account.name }}{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}Usage for {{ account.name }}{% endblock %}
|
||||||
<section class="surface">
|
{% block page_actions %}
|
||||||
<h1>Usage for {{ account.name }}</h1>
|
|
||||||
<p><a href="{{ account.get_absolute_url }}">Back to hosting account</a></p>
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="button primary" type="submit">Collect current usage</button>
|
<button class="button primary" type="submit">Collect current usage</button>
|
||||||
</form>
|
</form>
|
||||||
<p>{{ month }} (UTC) HTTP response data
|
{% endblock %}
|
||||||
|
{% block page_context %}
|
||||||
|
<a class="quiet-link" href="{{ account.get_absolute_url }}">← {{ account.name }}</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_content %}
|
||||||
|
<div class="live-sections" data-live-status="website-usage">
|
||||||
|
<section class="surface">
|
||||||
|
<p class="section-text">{{ month }} (UTC) HTTP response data
|
||||||
{% if total_traffic is not None %}{{ total_traffic|filesizeformat }}{% else %}No measurements{% endif %}
|
{% if total_traffic is not None %}{{ total_traffic|filesizeformat }}{% else %}No measurements{% endif %}
|
||||||
{% if not complete and total_traffic is not None %} · Partial{% endif %}
|
{% if not complete and total_traffic is not None %} · Partial{% endif %}
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
{% for site, snapshot, quota in sites %}
|
{% for site, snapshot, quota in sites %}
|
||||||
<section class="surface">
|
<section class="surface editor-surface">
|
||||||
<h2>{{ site.domain }}</h2>
|
<h2>{{ site.domain }}</h2>
|
||||||
{% if snapshot %}
|
{% if snapshot %}
|
||||||
<p>Last checked {{ snapshot.observed_at }}</p>
|
<p>Last checked {{ snapshot.observed_at }}</p>
|
||||||
@@ -32,12 +37,12 @@
|
|||||||
{% for line in snapshot.report.error_lines %}<pre>{{ line }}</pre>{% empty %}<p>No entries.</p>{% endfor %}
|
{% for line in snapshot.report.error_lines %}<pre>{{ line }}</pre>{% empty %}<p>No entries.</p>{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>No measurement yet. Reload this page after collecting usage.</p>
|
<p>No measurement yet.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if mailboxes is not None %}
|
{% if mailboxes is not None %}
|
||||||
<section class="surface">
|
<section class="surface editor-surface">
|
||||||
<h2>Mailbox storage</h2>
|
<h2>Mailbox storage</h2>
|
||||||
<dl>
|
<dl>
|
||||||
{% for mailbox in mailboxes %}
|
{% for mailbox in mailboxes %}
|
||||||
@@ -46,4 +51,5 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{% if workspace_accounts %}
|
||||||
|
<form class="workspace-context form-actions" method="get" action="{% url 'panel:customer_workspace' 'overview' %}">
|
||||||
|
<label for="workspace-account">Hosting account</label>
|
||||||
|
<select id="workspace-account" name="account">
|
||||||
|
{% for account in workspace_accounts %}
|
||||||
|
<option value="{{ account.pk }}"{% if account.pk == workspace_selected %} selected{% endif %}>{{ account.primary_domain }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
<button class="button secondary" type="submit">Open</button>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<form class="workspace-context form-actions" method="get">
|
||||||
|
<label for="{{ field_id }}">{{ label|default:"Domain" }}</label>
|
||||||
|
<select id="{{ field_id }}" name="domain">
|
||||||
|
{% for choice in domains %}
|
||||||
|
<option value="{{ choice }}"{% if choice == domain %} selected{% endif %}>{{ choice }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
{% if active_tab %}<input type="hidden" name="tab" value="{{ active_tab }}">{% endif %}
|
||||||
|
<button class="button secondary" type="submit">{{ button_label|default:"Select domain" }}</button>
|
||||||
|
</form>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "hosting/base.html" %}
|
{% extends "hosting/workspace_page.html" %}
|
||||||
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
{% block title %}{{ title }} · Coulobre Panel{% endblock %}
|
||||||
{% block content %}
|
{% block page_title %}{{ title }}{% endblock %}
|
||||||
<header class="page-heading"><h1>{{ title }}</h1></header>
|
{% block page_content %}
|
||||||
<div class="surface editor-surface">
|
<div class="surface editor-surface">
|
||||||
<form method="post" class="editor">
|
<form method="post" class="editor">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
{% for title, entries in navigation_groups %}
|
{% for title, entries in navigation_groups %}
|
||||||
<details class="sidebar-group"{% if title == open_workspace_group or not open_workspace_group and forloop.first %} open{% endif %}>
|
<details class="sidebar-group"{% if title == open_workspace_group or not open_workspace_group and forloop.first %} open{% endif %}>
|
||||||
<summary>{{ title }}</summary>
|
<summary>{{ title }}</summary>
|
||||||
{% for href, label in entries %}
|
{% for href, label, icon in entries %}
|
||||||
<a href="{{ href }}"{% if active_navigation_link == href %} aria-current="page"{% endif %}>{{ label }}</a>
|
<a href="{{ href }}"{% if active_navigation_link == href %} aria-current="page"{% endif %}>
|
||||||
|
<span class="nav-icon nav-icon-{{ icon }}" aria-hidden="true">{% if icon == 'information' %}i{% endif %}</span>
|
||||||
|
<span>{{ label }}</span>
|
||||||
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</details>
|
</details>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{% extends "hosting/base.html" %}
|
||||||
|
{% load static %}
|
||||||
|
{% block extra_scripts %}
|
||||||
|
<script src="{% static 'hosting/panel-live-status.js' %}" defer></script>
|
||||||
|
{% endblock %}
|
||||||
|
{% block account_selector %}{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<div class="workspace-heading">
|
||||||
|
{% block page_header %}
|
||||||
|
<header class="page-heading">
|
||||||
|
<div>
|
||||||
|
<h1>{% block page_title %}{% endblock %}</h1>
|
||||||
|
{% block page_metadata %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
{% block page_actions %}{% endblock %}
|
||||||
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
{% block page_tabs %}{% endblock %}
|
||||||
|
{% include "hosting/workspace_account_selector.html" %}
|
||||||
|
{% block page_context %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
{% if not request.headers.x_coulobre_status %}
|
||||||
|
{% for message in messages %}
|
||||||
|
<p class="notice" role="{% if message.level_tag == 'error' %}alert{% else %}status{% endif %}">{{ message }}</p>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% block page_content %}{% endblock %}
|
||||||
|
{% endblock %}
|
||||||
@@ -12,7 +12,7 @@ from django_otp.plugins.otp_totp.models import TOTPDevice
|
|||||||
from coulobre.mail_queue import MailQueueAction, change_queue_entry
|
from coulobre.mail_queue import MailQueueAction, change_queue_entry
|
||||||
from coulobre.operator_node import OperatorRequest, main, packages
|
from coulobre.operator_node import OperatorRequest, main, packages
|
||||||
|
|
||||||
from .models import PanelTheme
|
from .models import OperatorOperation, PanelTheme
|
||||||
|
|
||||||
|
|
||||||
class OperatorRequestTests(SimpleTestCase):
|
class OperatorRequestTests(SimpleTestCase):
|
||||||
@@ -117,3 +117,32 @@ class ThemePreviewTests(TestCase):
|
|||||||
)
|
)
|
||||||
self.assertRedirects(self.client.post(url, {"action": "install"}), url)
|
self.assertRedirects(self.client.post(url, {"action": "install"}), url)
|
||||||
self.assertEqual(PanelTheme.objects.get().name, "Test theme")
|
self.assertEqual(PanelTheme.objects.get().name, "Test theme")
|
||||||
|
|
||||||
|
|
||||||
|
class DatabaseMonitorTests(TestCase):
|
||||||
|
def test_verified_operator_sees_database_status_without_queueing_a_job(
|
||||||
|
self,
|
||||||
|
):
|
||||||
|
operator = get_user_model().objects.create_superuser("operator")
|
||||||
|
self.client.force_login(operator)
|
||||||
|
url = reverse("panel:database_monitor")
|
||||||
|
self.assertEqual(self.client.get(url).status_code, 403)
|
||||||
|
device = TOTPDevice.objects.create(user=operator, name="test")
|
||||||
|
session = self.client.session
|
||||||
|
session["otp_device_id"] = device.persistent_id
|
||||||
|
session.save()
|
||||||
|
report = {
|
||||||
|
"database_version": "11.8.6-MariaDB",
|
||||||
|
"slow_logging": True,
|
||||||
|
"counters": {"Threads_connected": "3", "Slow_queries": "0"},
|
||||||
|
}
|
||||||
|
with patch(
|
||||||
|
"coulobre.hosting.operator_tools.current_database_report",
|
||||||
|
return_value=report,
|
||||||
|
):
|
||||||
|
response = self.client.get(url)
|
||||||
|
self.assertContains(response, "11.8.6-MariaDB")
|
||||||
|
self.assertContains(response, "Current connections")
|
||||||
|
self.assertContains(response, "Enabled")
|
||||||
|
self.assertFalse(OperatorOperation.objects.exists())
|
||||||
|
self.assertIn("no-store", response["Cache-Control"])
|
||||||
@@ -142,7 +142,11 @@ class PublicOperationsAccessTests(TestCase):
|
|||||||
self.assertEqual(self.client.get(url).status_code, 403)
|
self.assertEqual(self.client.get(url).status_code, 403)
|
||||||
self.assertEqual(self.client.post(url).status_code, 403)
|
self.assertEqual(self.client.post(url).status_code, 403)
|
||||||
self.client.force_login(self.operator)
|
self.client.force_login(self.operator)
|
||||||
self.assertContains(self.client.get(url), "Mail queue for example.com")
|
response = self.client.get(url)
|
||||||
|
self.assertContains(response, "<h1>Mail queue</h1>", html=True)
|
||||||
|
self.assertContains(
|
||||||
|
response, '<p class="heading-meta">example.com</p>', html=True
|
||||||
|
)
|
||||||
with (
|
with (
|
||||||
patch(
|
patch(
|
||||||
"coulobre.hosting.mail_queue_views.refresh_mail_queue.delay"
|
"coulobre.hosting.mail_queue_views.refresh_mail_queue.delay"
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ from django.core.management import call_command
|
|||||||
from django.test import SimpleTestCase, TestCase, override_settings
|
from django.test import SimpleTestCase, TestCase, override_settings
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
from django_otp.plugins.otp_totp.models import TOTPDevice
|
||||||
|
|
||||||
from coulobre.service_health import (
|
from coulobre.service_health import (
|
||||||
HealthResult,
|
HealthResult,
|
||||||
@@ -20,7 +21,13 @@ from coulobre.service_health import (
|
|||||||
main,
|
main,
|
||||||
)
|
)
|
||||||
|
|
||||||
from .models import Customer, DnsZoneDefaults, Reseller, ServiceHealth
|
from .models import (
|
||||||
|
Customer,
|
||||||
|
DnsZoneDefaults,
|
||||||
|
OperatorOperation,
|
||||||
|
Reseller,
|
||||||
|
ServiceHealth,
|
||||||
|
)
|
||||||
|
|
||||||
TARGETS = (
|
TARGETS = (
|
||||||
HealthTarget("panel-01", "local", ("mariadb", "apache")),
|
HealthTarget("panel-01", "local", ("mariadb", "apache")),
|
||||||
@@ -165,6 +172,45 @@ class ServiceHealthPanelTests(TestCase):
|
|||||||
self.client.force_login(user)
|
self.client.force_login(user)
|
||||||
self.assertEqual(self.client.get(url).status_code, status)
|
self.assertEqual(self.client.get(url).status_code, status)
|
||||||
|
|
||||||
|
def test_only_verified_admins_can_queue_configured_local_service_actions(
|
||||||
|
self,
|
||||||
|
):
|
||||||
|
url = reverse("panel:service_health")
|
||||||
|
restart = {"action": "restart", "target": "apache"}
|
||||||
|
self.client.force_login(self.operator)
|
||||||
|
self.assertEqual(self.client.post(url, restart).status_code, 403)
|
||||||
|
self.client.force_login(self.admin)
|
||||||
|
self.assertEqual(self.client.post(url, restart).status_code, 403)
|
||||||
|
|
||||||
|
device = TOTPDevice.objects.create(user=self.admin, name="test")
|
||||||
|
session = self.client.session
|
||||||
|
session["otp_device_id"] = device.persistent_id
|
||||||
|
session.save()
|
||||||
|
with (
|
||||||
|
patch(
|
||||||
|
"coulobre.hosting.health_views.Path.is_socket",
|
||||||
|
return_value=True,
|
||||||
|
),
|
||||||
|
patch(
|
||||||
|
"coulobre.hosting.operator_tools.run_operator_operation.delay"
|
||||||
|
) as delay,
|
||||||
|
):
|
||||||
|
response = self.client.get(url)
|
||||||
|
self.assertContains(response, 'aria-label="Restart Apache"')
|
||||||
|
self.assertContains(response, 'aria-label="Reload Apache"')
|
||||||
|
self.assertNotContains(response, 'aria-label="Restart Postfix"')
|
||||||
|
remote = {"action": "restart", "target": "smtp"}
|
||||||
|
self.assertEqual(self.client.post(url, remote).status_code, 400)
|
||||||
|
self.assertFalse(OperatorOperation.objects.exists())
|
||||||
|
with self.captureOnCommitCallbacks(execute=True):
|
||||||
|
self.assertRedirects(self.client.post(url, restart), url)
|
||||||
|
job = OperatorOperation.objects.get()
|
||||||
|
self.assertEqual(
|
||||||
|
(job.action, job.target, job.actor),
|
||||||
|
("restart", "apache", self.admin),
|
||||||
|
)
|
||||||
|
delay.assert_called_once_with(job.pk)
|
||||||
|
|
||||||
@override_settings(
|
@override_settings(
|
||||||
LOCAL_DNS_PUBLISHING=True,
|
LOCAL_DNS_PUBLISHING=True,
|
||||||
HOSTING_NAMESERVERS=("ns.example.net",),
|
HOSTING_NAMESERVERS=("ns.example.net",),
|
||||||
|
|||||||
@@ -54,8 +54,9 @@ from .mail_queue_views import MailQueueIndex, MailQueueView, mail_queue_action
|
|||||||
from .operator_backups import OperatorBackupsView
|
from .operator_backups import OperatorBackupsView
|
||||||
from .operator_tools import (
|
from .operator_tools import (
|
||||||
ConnectedNodesView,
|
ConnectedNodesView,
|
||||||
|
DatabaseMonitorView,
|
||||||
HttpDefaultsView,
|
HttpDefaultsView,
|
||||||
OperatorToolsView,
|
ServerUpdatesView,
|
||||||
)
|
)
|
||||||
from .panel_content import (
|
from .panel_content import (
|
||||||
AnnouncementView,
|
AnnouncementView,
|
||||||
@@ -190,17 +191,17 @@ urlpatterns = [
|
|||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"service-health/actions/",
|
"service-health/actions/",
|
||||||
OperatorToolsView.as_view(page="services"),
|
ServiceHealthView.as_view(),
|
||||||
name="operator_service_actions",
|
name="operator_service_actions",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"updates/server-packages/",
|
"updates/server-packages/",
|
||||||
OperatorToolsView.as_view(page="packages"),
|
ServerUpdatesView.as_view(),
|
||||||
name="server_updates",
|
name="server_updates",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"server/database/",
|
"server/database/",
|
||||||
OperatorToolsView.as_view(page="database"),
|
DatabaseMonitorView.as_view(),
|
||||||
name="database_monitor",
|
name="database_monitor",
|
||||||
),
|
),
|
||||||
path("themes/", ThemeManagementView.as_view(), name="theme_management"),
|
path("themes/", ThemeManagementView.as_view(), name="theme_management"),
|
||||||
|
|||||||
Loaded 100 of 102 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user