{{ useCjk ? '' }} {% if pdfSig %} {% endif %} {{ body|raw }} {% if metadata %}

{{ 'Extra fields'|trans }}

{{ metadata|formatMetadata }}
{% endif %} {% if linksArr %}

{% trans %} Linked item {% plural linksArr|length %} Linked items {% endtrans %}

{% for link in linksArr %}

{{ link.name }} - {{ link.title }}

{% endfor %}
{% endif %} {% if stepsArr %}

{{ 'Steps'|trans }}

{% for step in stepsArr %}

{{ step.body }} {% if step.finished %} ({{ step.finished_time }}){% endif %}

{% endfor %}
{% endif %} {% if includeFiles and uploadsArr %}

{% trans %} Attached file {% plural uploadsArr|length %} Attached files {% endtrans %}

{% for upload in uploadsArr %}

{{ upload.real_name }} {# add a comment? don't add if it's the default text #} {% if upload.comment != 'Click to add a comment' %} ({{ upload.comment }}){% endif %} {# add hash? don't add if we don't have it #} {% if upload.hash|length >= 32 %}
{{ upload.hash_algorithm }}: {{ upload.hash }}{% endif %} {# if this is an image file, add the thumbnail picture #} {% set ext = upload.real_name|getExt|lower %} {% set filePath = uploadsFolder ~ upload.long_name %} {# if it's a TIF file, we can't add it like that to the pdf, but we can add the thumbnail #} {% if ext in tiff %} {% set filePath = filePath ~ '_th.jpg' %} {% endif %} {% if ext in ['tiff', 'jpg', 'jpeg', 'png', 'gif'] %}
{{ upload.comment }} {% endif %}

{% endfor %}
{% endif %} {% if commentsArr %}

{% trans %} Comment {% plural commentsArr|length %} Comments {% endtrans %}

{% for comment in commentsArr %}

On {{ comment.datetime }} {{ comment.fullname|raw }} wrote:
{{ comment.comment|raw }}

{% endfor %}
{% endif %}

{{ 'Unique eLabID:'|trans }} {{ elabid }}

{% if locked %}

Locked by {{ lockerName }} on {{ lockDate }}

{% endif %}

Link: {{ url }}