templates/customer/tabs/_history_listing.html.twig line 1

Open in your IDE?
  1. <tbody>
  2.     {% for historyEntry in history %}
  3.         <tr>
  4.             <td>{{ historyEntry.date ? historyEntry.date|date('d.m.Y') }}</td>
  5.             
  6.             <td>
  7.                 {% if historyEntry.subject %}
  8.                     {{ historyEntry.subject }}
  9.                 {% endif %}
  10.             </td>
  11.             <td>
  12.                 {% if historyEntry.content %}
  13.                     {{ historyEntry.content|striptags|slice(445)|raw[:100] ~ (historyEntry.content|striptags|slice(445)|raw[:100]|length > 100 ? ' ...')  }}
  14.                 
  15.                 {% endif %}
  16.             </td>
  17.             <td>
  18.                 {% if historyEntry.type == 'invoice' %}
  19.                     Rechnung gestellt
  20.                 {% elseif historyEntry.type == 'cancellation' %}
  21.                     Rechnung storniert
  22.                 {% else %}
  23.                     {{ historyEntry.entry | raw }}
  24.                 {% endif %}
  25.             </td>
  26.             <td>
  27.                 {% if historyEntry.systemAgent %}
  28.                     {{ historyEntry.systemAgent }}
  29.                 {% else %}
  30.                     System
  31.                 {% endif %}
  32.             </td>
  33.             
  34.             <td>
  35.             
  36.                 {% if historyEntry.emailHistoryEntryId and historyEntry.emailHistoryEntryId matches '/^\\d+$/' %}
  37.                 <a href="{{ path('email_show', { id: historyEntry.emailHistoryEntryId }) }}" class="btn-sm btn-info">
  38.                         <i class="fa fa-eye"></i>
  39.                     </a>
  40.                 {% endif %}
  41.             </td>
  42.         </tr>
  43.     {% endfor %}
  44. </tbody>
  45. <tfoot>
  46.     <tr>
  47.         <td colspan="4">
  48.             {% if pages > 1 %}
  49.                 {{ include('partials/_listing_pagination.html.twig', {
  50.                     pages: pages,
  51.                     page: page
  52.                 }) }}
  53.             {% endif %}
  54.         </td>
  55.     </tr>
  56. </tfoot>