{# 경로/파일: realcom-nas-ui/templates/crowdsec_scenarios.html #} {% extends "crowdsec_base.html" %} {% block title %}시나리오 관리 - RealNAS Security{% endblock %} {% block style %} {% endblock %} {% block content %}

시나리오 관리

시나리오를 검색/필터하고 ON/OFF로 즉시 적용합니다.

{% set total = scenarios|length %} {% set enabled_count = scenarios|selectattr("enabled")|list|length %} {% set disabled_count = total - enabled_count %}
전체 {{ total }} ON {{ enabled_count }} OFF {{ disabled_count }}
{% with messages = get_flashed_messages() %} {% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %}
🔎
전체
ON
OFF
팁: 토글을 클릭하면 바로 적용됩니다. (목록은 그대로 유지)
{% for s in scenarios %} {% endfor %}
시나리오 상태 동작
{% if s.desc %}
{{ s.desc }}
{{ s.name }}
{% else %}
{{ s.name }}
{% endif %}
{% if s.enabled %} ON {% else %} OFF {% endif %}
{{ 'ON' if s.enabled else 'OFF' }}
{% endblock %}