{% extends 'base.html' %} {% block body %} {% include('view-edit.html') %} {% if Entity.entityData.timestamped %}
{{ 'Experiment was timestamped by %s on %s at %s'|trans|format(timestampInfo.timestamper.fullname, Entity.entityData.timestampedwhen|date('Y-m-d'), Entity.entityData.timestampedwhen|date('H:i:s'))|raw }} {{ 'Download timestamped pdf'|trans }} {{ 'Download token'|trans }} {{ 'Decode token'|trans }}
{% endif %}

{% if Entity.type == 'experiments' %} {{ Entity.entityData.category }} {% else %} {% if Entity.entityData.rating > 0 %} {{ Entity.entityData.rating|stars|raw }} {% endif %} {% endif %} {{ Entity.getVisibility }}

{{ Entity.entityData.date|kdate }}
{% 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 }} {% if Entity.entityData.bookable %} {{ 'Book item'|trans }} {% endif %} {% 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 }} {% 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 %}
{% if Entity.type == 'items' %} {{ Entity.entityData.category }} {% endif %} {{ Entity.entityData.title|raw }}
{% 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 stepsArr %} {% endif %}
{% if linksArr %} {% endif %}
{% if Entity.type == 'experiments' %}

{{ 'Unique eLabID:'|trans }} {{ Entity.entityData.elabid }}

{% endif %} {% if Entity.type == 'items' %} {{ 'Last modified by'|trans }} {{ Entity.entityData.fullname|raw }} {% endif %}
{{ include('uploads.html') }} {% if App.Session.get('auth') %}

{{ 'Comments'|trans }}

{% if commentsArr %} {% for comment in commentsArr %}
{{ comment.fullname|raw }} {{ 'commented'|trans }} {% if comment.userid == Entity.Users.userData.userid %} {% endif %}

{{ comment.comment|raw }}

{% endfor %} {% endif %}
{% endif %} {% if revNum > 0 %} {{ revNum }} {% trans %}revision available{% plural revNum %}revisions available{% endtrans %} {% endif %}
{% if App.Config.configArr.debug %} {% else %} {% endif %} {% endblock body %}