diff --git a/templates/admin/host_health.html b/templates/admin/host_health.html index 93829ca..d02010e 100644 --- a/templates/admin/host_health.html +++ b/templates/admin/host_health.html @@ -99,7 +99,7 @@
{% if h.unhealthy_mark %}30 秒異常標記{% endif %} - {% if h.unhealthy_mark or not h.healthy %}{% endif %} + {% if h.unhealthy_mark or not h.healthy %}{% endif %}
{% endfor %} diff --git a/tests/test_host_health_text_density_guardrails.py b/tests/test_host_health_text_density_guardrails.py index beef8e0..b59edf8 100644 --- a/tests/test_host_health_text_density_guardrails.py +++ b/tests/test_host_health_text_density_guardrails.py @@ -38,6 +38,7 @@ def test_host_health_preserves_ai_runtime_workflows_and_non_raw_wording(): "最近 10 筆事件", "最近 10 筆自癒", "啟動自癒", + "onclick='triggerAutoHeal({{ h.label|tojson }})'", ]: assert marker in template