{% extends 'base.html' %} {% block body %} {% include('view-edit.html') %} {% if Entity.type == 'experiments' %} {% if Entity.entityData.timestamped %} {{ Ev.showTimestamp|raw }} {% endif %}

{{ Entity.entityData.category }} {{ Ev.getVisibility }}

{% else %}
{% if Entity.entityData.rating > 0 %} {{ Entity.entityData.rating|stars|raw }} {% endif %} {{ Entity.getVisibility }} {% endif %}
{{ 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 }} {% 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 Entity.type == 'experiments' %} {% if stepsArr %}
    {% for step in stepsArr %}
  • {{ step.body|raw }} {% if step.finished %} {{ 'completed'|trans }} {% endif %}
  • {% endfor %}
{% endif %}
{% if linksArr %} {% endif %}

{{ '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.userid %} {% endif %}

{{ comment.comment|raw }}

{% endfor %} {% endif %}
{% endif %} {% if revNum > 0 %} {{ revNum }} {% trans %}revision available{% plural revNum %}revisions available{% endtrans %} {% endif %}
{% endblock body %}