mirror of
https://forge.dns-witch.net/dns-witch/nomilo.git
synced 2026-07-02 20:55:03 +02:00
62 lines
2.1 KiB
HTML
62 lines
2.1 KiB
HTML
{%- extends "bases/app.html" -%}
|
||
|
||
{%- block title -%}{{ current_zone }} – {% endblock title -%}
|
||
|
||
{%- block main -%}
|
||
<h1>{{ tr(msg="zone-header", zone_name=current_zone) }}</h1>
|
||
|
||
<details>
|
||
<summary>Debug</summary>
|
||
<pre>{{ records | json_encode(pretty=true) }}</pre>
|
||
</details>
|
||
|
||
{% if flash_message == "configure-success" or flash_message == "delete-success" %}
|
||
<p class="flash success">
|
||
{{ tr(msg="zone-content-flash-message", attr=flash_message) }}
|
||
</p>
|
||
{% endif %}
|
||
|
||
<section>
|
||
<header class="zone-content-header">
|
||
<h2>{{ tr(msg="zone-content-records-header") }}</h2>
|
||
<a href="{{ url }}/edit" class="button primary">
|
||
{{ <icon.plus_circle /> }}
|
||
{{ tr(msg="zone-content-new-sub-domain-button") }}
|
||
</a>
|
||
</header>
|
||
{%- for node in records.records -%}
|
||
{% set name = node.name | trim_end(pat=current_zone) | trim_end(pat=".") %}
|
||
<article class="domain">
|
||
<header class="zone-content-header">
|
||
<h3>{{ node.name }}</h3>
|
||
|
||
<a href="{{ url }}/edit?name={{ name }}">
|
||
{{ <icon.plus_circle /> }}
|
||
{{ tr(msg="zone-content-new-record-button") }}
|
||
</a>
|
||
</header>
|
||
|
||
<div class="records">
|
||
{%- for records in node.records %}
|
||
{{ <dns.config
|
||
records={records}
|
||
name={name}
|
||
fqdn={node.name}
|
||
url={url}
|
||
lang={lang}
|
||
/> }}
|
||
{%- endfor -%}
|
||
</div>
|
||
</article>
|
||
{%- endfor -%}
|
||
</section>
|
||
<section>
|
||
<h2>{{ tr(msg="zone-content-aliases-header") }}</h2>
|
||
|
||
<ul>
|
||
{%- for alias in records.aliases -%}
|
||
<li>{{ alias.from }} → {{ alias.target }}</li>
|
||
{%- endfor -%}
|
||
</ul>
|
||
</section>
|
||
{%- endblock main -%}
|