{{ useCjk ? '' }}
{{ entityDate }}
{{ 'Date'|trans }}: {{ date }}
{% if entityData.tags %}
{% set tags = entityData.tags|split('|') %}
{{ 'Tags'|trans }}:
{% for tag in tags %}
{{ tag }}
{% endfor %}
{% endif %}
{% if entityData.category_title %}
{{ 'Category'|trans }}: {{ entityData.category_title }}
{% endif %}
{% if entityData.status_title %}
{{ 'Status'|trans }}: {{ entityData.status_title }}
{% endif %}
{{ 'Created by'|trans }}: {{ entityData.fullname }}
{{ link.category_title }} - {{ link.title }}
{% endfor %}{{ link.category_title }} - {{ link.title }}
{% endfor %}{{ step.body }} {% if step.finished %} ({{ step.finished_time }}){% endif %}
{% endfor %}{{ upload.real_name }}
{# add a comment? don't add if it's the default text or if it's null #}
{% if upload.comment and upload.comment != 'Click to add a comment' %} ({{ upload.comment|nl2br }}){% 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 #}
{% endif %}
On {{ comment.created_at }} {{ comment.fullname }} wrote:
{{ comment.comment|nl2br }}
|
{# use raw here as this is an mpdf special tag and the url needs to be passed unmodified #}
|
{% if entityData.elabid %}
{{ 'Unique eLabID:'|trans }} {{ entityData.elabid }} {% endif %} {% if locked %}{{ 'Locked by %s on %s at %s'|trans|format(lockerName, lockDate, lockTime) }} {% endif %} {% if timestamped %}{{ 'Timestamped by %s on %s at %s'|trans|format(timestamperName, timestampDate, timestampTime) }} {% endif %}Link: {{ url }} {% if classification != 'None' %}Classification: {{ classification }} {% endif %} |
| {{ 'Date'|trans }} | {{ 'User'|trans }} | {{ 'Property changed'|trans }} | {{ 'New value'|trans }} |
|---|---|---|---|
| {{ change.created_at }} | {{ change.fullname }} | {{ change.target }} | {# cannot use ternary here as it is an expression and filters are applied after evaluation #} {%- if change.target == 'body' -%} {# use of raw to make the link to revisions page work #} {{ change.content|raw }} {%- else -%} {{ change.content }} {%- endif -%} |