{% extends "panel/base.html" %} {% block title %}{{ tenant.slug }} — JQC Control{% endblock %} {% block page_title %}Tenant: {{ tenant.name }} ({{ tenant.slug }}){% endblock %} {% block content %} {# ── breadcrumb ── #}
{# ═══ LEFT COLUMN ═══ #}
{# ── Info card ── #}
Tenant Info {{ tenant.status }}
ID
{{ tenant.id }}
Slug
{{ tenant.slug }}
Name
{{ tenant.name }}
Created
{{ tenant.created_at.strftime('%Y-%m-%d %H:%M') if tenant.created_at else '—' }}
{% if tenant.suspended_at %}
Suspended
{{ tenant.suspended_at.strftime('%Y-%m-%d %H:%M') }}
{% endif %}
DB
{{ tenant.db_user }}@{{ tenant.db_host }}:{{ tenant.db_port }}/{{ tenant.db_name }}
{# ── Migration card ── #}
Schema Migration
Chain head: {{ chain_head }}
Cached head: {{ tenant.alembic_head or '—' }}
Live DB rev: {% if live_rev == chain_head %} {{ live_rev }} {% elif live_rev and not live_rev.startswith(' {{ live_rev }} (BEHIND) {% else %} {{ live_rev }} {% endif %}
{# ── Domains card ── #}
Domains
{% for d in domains %} {% else %} {% endfor %}
Domain Kind Primary Verified TLS Token
{{ d.domain }} {{ d.kind }} {% if d.is_primary %}{% endif %} {% if d.verified %} {% else %}
{% endif %}
{{ d.tls_status }} {{ d.verification_token or '—' }} {% if not d.is_primary %}
{% endif %}
No domains.
{# ── Provisioning jobs ── #}
Recent Jobs
{% for j in jobs %} {% else %} {% endfor %}
#ActionStatusCreatedLog
{{ j.id }} {{ j.action }} {{ j.status }} {{ j.created_at.strftime('%m-%d %H:%M') if j.created_at else '—' }} {{ j.log or '' }}
No jobs recorded.
{# /col-lg-8 #} {# ═══ RIGHT COLUMN ═══ #}
{# ── Plan card ── #}
Plan
{# ── Status actions ── #}
Status Actions
{# Impersonate #} {% if tenant.status == 'active' %} Impersonate {% endif %} {# Suspend #} {% if tenant.status not in ('suspended', 'deleted') %} {% endif %} {# Resume #} {% if tenant.status == 'suspended' %}
{% endif %}
{# ── Quick info ── #}
Primary URL
{% set primary_domain = domains | selectattr('is_primary') | first %} {% if primary_domain %} https://{{ primary_domain.domain }} {% else %} No primary domain. {% endif %}
{# /col-lg-4 #}
{# /row #} {# ── Suspend modal ── #} {% endblock %}