{% extends 'base.html' %} {% block body %} {% embed 'view-edit.html' %} {% block createnew %} {% include 'create-new.html' %} {% endblock %} {% block createmodal %} {% include 'show-view-edit.html' %} {% endblock %} {% endembed %} {% if Entity.entityData.timestamped %}
{{ 'Experiment was timestamped by %s on %s at %s'|trans|format(timestamperFullname, Entity.entityData.timestampedwhen|date('Y-m-d'), Entity.entityData.timestampedwhen|date('H:i:s'))|raw }}
{% endif %}

{{ 'Toggle pin'|trans }}

{% if not (Entity.isReadOnly or Entity.entityData.locked) %} {{ 'Edit'|trans }} {% endif %} {% if not App.Session.has('is_anon') %} {{ 'Duplicate'|trans }} {% endif %} {{ 'Make a PDF'|trans }} {{ 'Make a ZIP'|trans }} {% if Entity.type == 'items' %} {% if Entity.entityData.bookable %} {{ 'Book item'|trans }} {% endif %} {% endif %} {% 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 }} {% if not App.Session.has('is_anon') and App.Config.configArr.anon_users %} {{ 'Share'|trans }} {% endif %} {% if Entity.type == 'experiments' and not App.Session.has('is_anon') %} {{ 'Timestamp Experiment'|trans }} {% endif %} {% if not Entity.isReadOnly and App.Config.configArr.blox_enabled %} {{ 'Add to blockchain'|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 %}

{{ Entity.entityData.category }} {% if Entity.entityData.rating > 0 %} {{ Entity.entityData.rating|stars|raw }} {% endif %} {{ Entity.getCan(Entity.entityData.canread) }} {{ Entity.getCan(Entity.entityData.canwrite) }}

{{ 'Started on'|trans }} {{ Entity.entityData.date|date('Y-m-d') }}
{% set isEditable = not Entity.isReadOnly and not Entity.entityData.locked %}

{% if Entity.type == 'items' %} {{ Entity.entityData.category }} {% endif %} {{ Entity.entityData.title|raw }}

{% if Entity.entityData.events_id and Entity.type == 'items' %} {{ '%s%d%sSee bookings%s'|trans|format("", "")|raw }} {% endif %} {% if Entity.entityData.is_bound and Entity.type == 'experiments' %} {{ '%s%d%sSee bookings%s'|trans|format("", "")|raw }}
{% 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 %}
{% include 'steps-links-view.html' %}

{{ 'Last modified on %s'|trans|format(Entity.entityData.lastchange) }}

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

{% include 'uploads.html' %} {% if uploadsArr|filter(u => u.real_name|getExt == 'json') %} {% include 'json-editor.html' %} {% endif %}
{% if App.Session.get('is_auth') and not App.Session.has('is_anon') %}

{{ '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 %}
{% endblock body %}