| 1 |
{varType Packetery\Core\Log\Record[] $rows} |
| 2 |
|
| 3 |
{include '../packeta-header.latte'} |
| 4 |
|
| 5 |
<div id="packetery-log-page" class="packeta_log"> |
| 6 |
<table class="packetery-log-table"> |
| 7 |
<thead> |
| 8 |
<tr> |
| 9 |
<th class="packetery-log-column packetery-log-column-status">{$translations['status']}</th> |
| 10 |
<th class="packetery-log-column packetery-log-column-date">{$translations['dateAndTime']}</th> |
| 11 |
<th class="packetery-log-column packetery-log-column-action">{$translations['action']}</th> |
| 12 |
<th class="packetery-log-column packetery-log-column-note">{$translations['note']}</th> |
| 13 |
</tr> |
| 14 |
</thead> |
| 15 |
<tbody> |
| 16 |
{foreach $rows as $row} |
| 17 |
<tr n:class="'log-' . $row->status"> |
| 18 |
<td class="packetery-log-column packetery-log-column-status"> |
| 19 |
{$translatedStatuses[$row->status] ?? $row->status} |
| 20 |
</td> |
| 21 |
<td class="packetery-log-column packetery-log-column-date"> |
| 22 |
{$row->date|wpDateTime} |
| 23 |
</td> |
| 24 |
<td class="packetery-log-column packetery-log-column-action"> |
| 25 |
{$translatedActions[$row->action] ?? $row->action} |
| 26 |
</td> |
| 27 |
<td class="packetery-log-column packetery-log-column-note"> |
| 28 |
{$row->note} |
| 29 |
</td> |
| 30 |
</tr> |
| 31 |
{else} |
| 32 |
<tr> |
| 33 |
<td colspan="4"> |
| 34 |
{$translations['logListIsEmpty']} |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
{/foreach} |
| 38 |
|
| 39 |
{if $maxRowsExceeded} |
| 40 |
<tr> |
| 41 |
<td colspan="4"> |
| 42 |
{$translations['moreRowsNotice']} |
| 43 |
</td> |
| 44 |
</tr> |
| 45 |
{/if} |
| 46 |
|
| 47 |
</tbody> |
| 48 |
</table> |
| 49 |
</div> |
| 50 |
|