<tbody>
{% for historyEntry in history %}
<tr>
<td>{{ historyEntry.date ? historyEntry.date|date('d.m.Y') }}</td>
<td>
{% if historyEntry.subject %}
{{ historyEntry.subject }}
{% endif %}
</td>
<td>
{% if historyEntry.content %}
{{ historyEntry.content|striptags|slice(445)|raw[:100] ~ (historyEntry.content|striptags|slice(445)|raw[:100]|length > 100 ? ' ...') }}
{% endif %}
</td>
<td>
{% if historyEntry.type == 'invoice' %}
Rechnung gestellt
{% elseif historyEntry.type == 'cancellation' %}
Rechnung storniert
{% else %}
{{ historyEntry.entry | raw }}
{% endif %}
</td>
<td>
{% if historyEntry.systemAgent %}
{{ historyEntry.systemAgent }}
{% else %}
System
{% endif %}
</td>
<td>
{% if historyEntry.emailHistoryEntryId and historyEntry.emailHistoryEntryId matches '/^\\d+$/' %}
<a href="{{ path('email_show', { id: historyEntry.emailHistoryEntryId }) }}" class="btn-sm btn-info">
<i class="fa fa-eye"></i>
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan="4">
{% if pages > 1 %}
{{ include('partials/_listing_pagination.html.twig', {
pages: pages,
page: page
}) }}
{% endif %}
</td>
</tr>
</tfoot>