{% extends 'base.html' %} {% block title %}Rules{% endblock %} {% block body %}

Rules

Pending rules

{% if rules.error %}

Rules unavailable: {{ rules.error }}

{% elif rules.pending %} {% for item in rules.pending %}

#{{ item.id }} {{ item.title }}

{% if item.invalid %}

Invalid: {{ item.invalid }}

{% else %}

{{ 'NEVER' if item.guard.action == 'deny' else 'ASK the user before' }} run {{ item.guard.tool }}{% if item.guard.command %} commands matching {{ item.guard.command }}{% elif item.guard.path %} on paths matching {{ item.guard.path }}{% endif %}

{% endif %}

Project: {{ item.project or 'global' }} · Created:

{% if item.source %}

Source: “{{ item.source }}”

{% endif %} {% if not item.invalid %}
{% endif %}
{% endfor %} {% else %}

No pending rules.

{% endif %}

Active rules

{% if rules.rules or rules.text_rules %} {% for rule in rules.rules %}

#{{ rule.id }} {{ rule.title }}

{{ 'NEVER' if rule.action == 'deny' else 'ASK the user before' }} run {{ rule.tool }}{% if rule.command %} commands matching {{ rule.command }}{% elif rule.path %} on paths matching {{ rule.path }}{% endif %}

Project: {{ rule.project or 'global' }}

{% endfor %} {% for rule in rules.text_rules %}

#{{ rule.id }} {{ rule.title }}

{{ rule.text }}

Project: {{ rule.project or 'global' }}

{% endfor %} {% else %}

No active rules.

{% endif %} {% for item in rules.invalid %}

#{{ item.id }} invalid: {{ item.reason }}

{% endfor %} {% for item in rules.notices %}

#{{ item.id }} notice: {{ item.reason }}

{% endfor %} {% endblock %}