{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}Settings Audit Trail{% endblock %} {% macro format_value(value) %} {%- if value is null -%} — {%- elseif value is same as(true) -%} Yes {%- elseif value is same as(false) -%} No {%- elseif value is iterable -%} {{ value|json_encode }} {%- else -%} {{ value }} {%- endif -%} {% endmacro %} {% import _self as helpers %} {% set actionLabels = { 'update-settings': 'General Settings', 'update-vk-settings': 'Video Karera Settings', 'update-pataasan-settings': 'Pataasan Settings', 'update-pataasan-multiplier': 'Pataasan Multiplier', 'update-race-dividends': 'Race Dividends', } %} {% block wfbo_content %}
History of changes made to WFBO settings — General, Video Karera, Pataasan, and Race Dividends.
| Date | Settings Group | Changes | Performed By |
|---|---|---|---|
|
{{ log.createdAt|date('M d, Y') }} {{ log.createdAt|date('h:i A') }} |
{{ actionLabels[log.action]|default(log.action) }} |
{% if log.changes %}
{% for field, change in log.changes %}
{{ field }}:
{{ helpers.format_value(change.old) }} → {{ helpers.format_value(change.new) }}
{% endfor %}
{% else %}
—
{% endif %}
|
{% if log.actor %} {{ log.actor.firstName }} {{ log.actor.lastName }} {% else %} — {% endif %} |
| No settings changes recorded yet. | |||
Page {{ currentPage }} of {{ totalPages }} · {{ total }} total