{% set zh = current_locale == 'zh' %}

{{ '站点与防护' if zh else 'Sites & Protection' }}

{{ '在这里维护受监控站点、网站根目录和访问日志入口。' if zh else 'Maintain monitored sites, web roots and access-log inputs here.' }}

{{ '添加站点' if zh else 'Add site' }} {{ '高级配置' if zh else 'Advanced config' }}
{% if site_form %}
{{ ('编辑站点' if zh else 'Edit site') if site_form.mode == 'edit' else ('新增站点' if zh else 'Add site') }} {{ '取消' if zh else 'Cancel' }}

{{ '保存前会显示配置差异并校验路径;站点配置变更需要重启监控进程后完全生效。' if zh else 'The change is previewed and validated before saving; restart the monitor after site configuration changes.' }}

{% if site_form.only_enabled %} {{ '这是当前唯一启用的站点;如需保留监控,请保持勾选。关闭后校验会阻止保存。' if zh else 'This is the only enabled site. Keep it checked to retain monitoring; disabling it will be blocked.' }} {% endif %}
{{ '不会直接覆盖文件;确认后会生成配置备份。' if zh else 'The file is backed up before the confirmed write.' }}
{% endif %}
{% for site in managed_sites %}
{{ site.name }} {{ site.site_id }} {{ ('配置已启用' if site.enabled else '配置已停用') if zh else ('Configured enabled' if site.enabled else 'Configured disabled') }}
{{ '网站根目录' if zh else 'Website root' }}
{{ site.path }}
{{ '服务端口' if zh else 'Service port' }}
{{ site.port }}
{{ '访问日志路径' if zh else 'Access log path' }}
{{ site.log_config.get('access_log_path') or ('未配置' if zh else 'Not configured') }}
{{ '实时监控状态' if zh else 'Live monitor health' }}
{{ '请通过运行日志核实;此配置摘要不提供心跳证明。' if zh else 'Verify in runtime logs; this configuration summary does not provide a heartbeat.' }}
{% endfor %}
{{ '未归属历史记录' if zh else 'Unassigned historical records' }}

{{ '未归属不是一个受保护站点,不应显示监控或日志健康。' if zh else 'Unassigned is not a protected site and has no monitor or log health.' }}

{{ '检查未归属证据' if zh else 'Review unassigned evidence' }}