{% extends 'base.html' %} {% block body %} {# tinymce or markdown? #} {% set editor = 'tiny' %} {% if Entity.Users.userData.use_markdown or App.Request.query.get('editor') == 'md' %} {% set editor = 'md' %} {% endif %} {% if App.Request.query.get('editor') == 'tiny' %} {% set editor = 'tiny' %} {% endif %} {% embed 'view-edit.html' %} {% block backtoview %} {{ 'View mode'|trans }} {% endblock %} {% block createnew %} {% include 'create-new.html' %} {% endblock %} {% block createmodal %} {% include 'show-view-edit.html' %} {% endblock %} {% endembed %} {% set lastchangeDiff = 'now'|date('U') - Entity.entityData.lastchange|date('U') %} {% if (lastchangeDiff < 600) and not Entity.entityData.lastchangeby is null and Entity.entityData.lastchangeby != Entity.Users.userData.userid %} {{ 'Warning: this entry was modified %s seconds ago by %s.'|trans|format(lastchangeDiff, lastModifierFullname)|msg('warning', false) }} {% endif %}
{{ 'Rating'|trans }} {% for i in range(1, 5) %} {% endfor %}
{% if Entity.entityData.tags|length > 0 %} {% set tagsIdArr = Entity.entityData.tags_id|split(',') %} {% set tagsValueArr = Entity.entityData.tags|split('|') %} {% for tag in tagsValueArr -%} {{ tag|raw }} {%- endfor -%} {% endif %}
{% if editor == 'md' %} {% else %}
{% endif %}
{% include 'steps-links-edit.html' %}

{{ 'Attach a file'|trans }}

{% include 'uploads.html' %} {% include 'json-editor.html' %}

{{ 'Draw something'|trans }}

{% if Entity.Users.userData.chem_editor %}

{{ 'Molecule drawer'|trans }}

{% endif %}
{% endblock body %}