{{ 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 upload.base64_thumbnail %} {# Note: adding charset to the data string makes it fail #}
{{ 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 }}