Журнал действий: бейджи по цвету действия, рамка у развёрнутых изменений

This commit is contained in:
rsgrinko committed 2026-09-17 16:00:42 +03:00
1 parent 3cf96b5b07
commit 29fef30be7
4 files changed
+25 -5

No files matched your search

+2 -2
View File
@@ -46,13 +46,13 @@ $entries = AuditEntry::query()
<td class="muted small nowrap"><?= View::e(View::date((string) $entry->raw('created_at'))) ?></td>
<td class="small"><?= View::e((string) $entry->raw('user_login') ?: 'система') ?></td>
<td>
<span class="badge muted"><?= View::e(AuditEntry::label((string) $entry->raw('action'))) ?></span>
<span class="badge <?= View::e(AuditEntry::badge((string) $entry->raw('action'))) ?>"><?= View::e(AuditEntry::label((string) $entry->raw('action'))) ?></span>
<?= View::e((string) $entry->raw('description')) ?>
<?php if ($changes !== []) { ?>
<details>
<summary class="small">что изменилось</summary>
<table>
<table class="diff">
<?php foreach ($changes as $field => $pair) { ?>
<tr>
<td class="muted small"><?= View::e((string) $field) ?></td>