Improve log date handling in tools-logs.html.twig (#2497)

Added conditional check for log date to handle missing values.
This commit is contained in:
Xoriander
2026-03-17 22:15:16 +01:00
committed by Andy Miller
parent 1a99bd40d6
commit 657fd5cfdc

View File

@@ -53,7 +53,11 @@
<tbody>
{% for log in logs %}
<tr>
<td class="date" title="{{ log.date|date('r') }}">{{ log.date|date }}</td>
{% if log.date %}
<td class="date" title="{{ log.date|date('r') }}">{{ log.date|date }}</td>
{% else %}
<td class="date" title=""></td>
{% endif %}
<td class="level"><span class="badge {{ log.level|lower }}">{{ log.level }}</span></td>
<td class="message">{{ log.message }}</td>
{% if verbose %}