{% extends "base.html" %} {% block title %}Actions — Grimoire{% endblock %} {% block nav_actions %}active{% endblock %} {% block content %}

Actions

{# ── Available Actions (checks-style vertical list) ───────────────── #} {% if actions %}
{% for action in actions %}
{# ── Header Row: name, metadata, actions ── #}
{# Left: name + description + metadata #}

{{ action.name }}

{% if not action.enabled %} · disabled {% endif %}
{% if action.description %}

{{ action.description }}

{% endif %}
{{ action.target_summary }} {% if action.pass_count or action.fail_count %} {% if action.pass_count %} {{ action.pass_count }} {% endif %} {% if action.fail_count %} {{ action.fail_count }} {% endif %} {% if action.last_run %} {{ time_ago(action.last_run) }} {% endif %} {% else %} no runs yet {% endif %}
{# Right: schedule, toggle, run button #}
Scheduled: {% if action.schedule %}{{ action.schedule }}{% else %}manual{% endif %} {% if action.schedule %} {% endif %}
{# ── Expandable sections ── #}
{# Script preview toggle #} {# Results toggle #} {% if action.pass_count or action.fail_count %} {% endif %}
{# Script content (hidden by default) #} {# Inline results container #}
{% endfor %}
{% else %}

No actions configured

Add YAML files to the data/actions/ directory to define actions.

{% endif %} {# Highlight.js for bash syntax highlighting #} {% endblock %}