{% extends 'base.html' %} {% block title %}Rules{% endblock %} {% block body %}
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 %}No pending rules.
{% endif %}#{{ 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' }}
#{{ rule.id }} {{ rule.title }}
{{ rule.text }}
Project: {{ rule.project or 'global' }}
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 %}