{% extends 'layout.twig' %} {% block title %}{{ consumer.name }} — Consumer — IRDB{% endblock %} {% block content %}
← Back to consumers

{{ consumer.name }}

{# Hidden 0 sent first so an unchecked box still posts a value; PHP's parser keeps the last occurrence. #}
{% if can_write %}
{% endif %}

Last activity

10 most recent audit entries for this consumer.

View all in audit log →
{% if audit_items|default([])|length > 0 %}
{% for ev in audit_items %} {% if ev.details %} {% endif %} {% endfor %}
When Actor Action Payload
{{ ev.actor_kind }} {% if ev.actor_id %}#{{ ev.actor_id }}{% endif %} {{ ev.action }} {% if ev.details %} {% else %} {% endif %}
{% if ev.details.changes is defined and ev.details.changes is iterable and ev.details.changes|length > 0 %}
Changes
{% for field, change in ev.details.changes %} {% endfor %}
Field Before After
{{ field }} {% if change.from is null %} {% elseif change.from is iterable %}
{{ change.from|json_encode(constant('JSON_PRETTY_PRINT')) }}
{% else %} {{ change.from }} {% endif %}
{% if change.to is null %} {% elseif change.to is iterable %}
{{ change.to|json_encode(constant('JSON_PRETTY_PRINT')) }}
{% else %} {{ change.to }} {% endif %}
{% else %}
{{ ev.details|json_encode(constant('JSON_PRETTY_PRINT')) }}
{% endif %}
{% else %}

No activity yet.

{% endif %}
{% endblock %}