wip
This commit is contained in:
parent
bd58cdb842
commit
ac3acbd1a0
2 changed files with 69 additions and 33 deletions
|
@ -146,42 +146,33 @@
|
|||
</div>
|
||||
|
||||
<div class="divide-y divide-zinc-800">
|
||||
{% set domain_list = [] %}
|
||||
{% for server_type, servers in [('caddy', caddy_proxies), ('nginx', nginx_proxies)] %}
|
||||
{% for server, domains in servers.items() %}
|
||||
{% for domain, target in domains.items() %}
|
||||
{% do domain_list.append((domain, target, server, server_type)) %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% for domain, target, server, server_type in domain_list[:20] %}
|
||||
{% if domain_list %}
|
||||
{% for item in domain_list[:20] %}
|
||||
<div class="px-6 py-3 flex items-center justify-between hover:bg-zinc-800/30">
|
||||
<div class="flex items-center">
|
||||
<div
|
||||
class="w-8 h-8 flex-shrink-0 flex items-center justify-center rounded-full
|
||||
{% if server_type == 'caddy' %}bg-blue-500/10 text-blue-400{% else %}bg-green-500/10 text-green-400{% endif %} mr-3">
|
||||
{% if item.server_type == 'caddy' %}bg-blue-500/10 text-blue-400{% else %}bg-green-500/10 text-green-400{% endif %} mr-3">
|
||||
<i class="fas fa-globe text-xs"></i>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://{{ domain }}" target="_blank"
|
||||
<a href="https://{{ item.domain }}" target="_blank"
|
||||
class="text-sm font-medium text-white hover:text-blue-400 transition-colors">
|
||||
{{ domain }}
|
||||
{{ item.domain }}
|
||||
</a>
|
||||
<p class="text-xs text-gray-500">{{ server }}</p>
|
||||
<p class="text-xs text-gray-500">{{ item.server }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<span class="text-xs text-gray-500 font-mono mr-4">{{ target }}</span>
|
||||
<a href="/{% if server_type == 'caddy' %}caddy{% else %}nginx{% endif %}"
|
||||
<span class="text-xs text-gray-500 font-mono mr-4">{{ item.target }}</span>
|
||||
<a href="/{% if item.server_type == 'caddy' %}caddy{% else %}nginx{% endif %}"
|
||||
class="text-xs px-2 py-1 rounded bg-zinc-800 hover:bg-zinc-700 transition-colors">
|
||||
{{ server_type }}
|
||||
{{ item.server_type }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% if domain_list|length == 0 %}
|
||||
{% else %}
|
||||
<div class="px-6 py-4 text-gray-500 text-center">
|
||||
<p>No domains configured yet</p>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue