{% if not Entity.isReadOnly and not Entity.entityData.locked %}
{{ 'Edit'|trans }}
{% endif %}
{% if not App.Session.has('anon') %}
{{ 'Duplicate'|trans }}
{% endif %}
{{ 'Make a PDF'|trans }}{{ 'Make a ZIP'|trans }}
{% if Entity.type == 'items' %}
{{ 'Show related'|trans }}
{% endif %}
{% if not Entity.isReadOnly %}
{% set lockIcon = 'fa-lock-open' %}
{% set alt = 'Lock/Unlock item'|trans %}
{% if Entity.entityData.locked %}
{% set lockIcon = 'fa-lock' %}
{% set alt = Entity.entityData.lockedwhen %}
{% endif %}
{{ alt }}
{% endif %}
{% if not Entity.entityData.timestamped and Entity.isTimestampable and Entity.type == 'experiments' and not App.Session.has('anon') %}
{{ 'Timestamp Experiment'|trans }}
{{ 'Once timestamped an experiment cannot be edited anymore! Are you sure you want to do this?'|trans }}
{% endif %}
{% if Entity.entityData.tags|length > 0 %}
{% set tagsIdArr = Entity.entityData.tags_id|split(',') %}
{% set tagsValueArr = Entity.entityData.tags|split('|') %}
{% for key, tag in tagsValueArr %}
{# the key allows to get the id stored in tagsIdArr #}
{{ tag|raw }}
{% endfor %}
{% endif %}
{% set next_step = Entity.entityData.next_step %}
{% if next_step|length > 0 %}
{% set nextStepsArr = next_step|split('|') %}
{% set next = nextStepsArr|first %}
{{ 'Next step'|trans }}: {{ next|raw }}
{% endif %}
{% set body = Entity.entityData.body %}
{% if body != '' %}
{% set body = Entity.entityData.body|md2html %}
{% if body|trim == '' %}
{% set body = Entity.entityData.body %}
{% endif %}
{{ body|raw }}
{% endif %}
{% if Entity.type == 'experiments' %}
{% if stepsArr %}