{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Pageboy · {{ event.id | short_id if event else t('event.missing_title') }}{% endblock %} {% block content %}

← {{ t('nav.overview') }}

{% if not event %}

{{ t('event.not_found') }}

{{ event_id }} — {{ t('event.not_found_body') }}

{% else %}

{{ t('event.heading') }}

{% if event.completion %}{{ m.status(event.completion.status) }}{% endif %}
{{ t('col.id') }}
{{ event.id }}
{{ t('col.source') }}
{{ event.source }}
{{ t('col.type') }}
{{ event.type }}
{{ t('col.time') }}
{{ event.time | when }}
{% if event.completion %}
{{ t('event.completed') }}
{{ event.completion.summary }} · {{ event.completion.completed_at | when }} {% for r in event.completion.sync_results %}
{{ m.status('completed' if r.ok else 'failed') }} {{ r.target }} {% if r.detail %}{{ r.detail }}{% endif %}
{% endfor %}
{% elif event.execution_state %}
{{ t('event.progress') }}
{% if event.execution_state.status %}{{ m.status(event.execution_state.status) }}{% endif %} {% if event.execution_state.progress is defined and event.execution_state.progress is not none %}{{ event.execution_state.progress }}%{% endif %} {{ event.execution_state.summary or "" }}
{% endif %}
{{ t('event.payload') }} (data)
{{ data_json }}

{{ t('event.executions') }}

{% if event.executions_truncated %}{{ t('event.truncated', count=executions | length) }}{% endif %}
{% if executions %} {% for x in executions %}
{{ m.status(x.status) }} {{ x.hook_name }} exit {% if x.exit_code is not none %}{{ x.exit_code }}{% else %}—{% endif %} · {{ duration(x.started_at, x.finished_at) }} · {{ x.started_at | when }} {{ x.execution_id }}
{% set problem = x.status in ('failed', 'timeout') %} {% if x.stderr %}
stderr
{{ x.stderr }}
{% endif %} {% if x.stdout %}
stdout
{{ x.stdout }}
{% endif %} {% if not x.stdout and not x.stderr %}

{{ t('event.no_output') }}

{% endif %}
{% endfor %} {% else %}

{{ t('event.no_executions') }}

{% endif %}
{% endif %} {% endblock %}