{# dim the experiment a bit if it's not yours #} {% set randomId = random() %}
{# left part, full height: checkbox #}
{# checkbox #}
{# for templates: create from button #} {% if Entity.entityType.value == 'experiments_templates' %} {% endif %} {# lock icon #} {% if item.locked %}
{% else %} {# edit icon #} {% if (item.userid == App.Users.userData.userid or Entity.entityType.value == 'items' or App.Users.isAdmin) %} {% else %} {# eye icon #} {% endif %} {% endif %}
{# middle part: category, title, icons and tags #}
{# first line #}
{# timestamp icon #} {% if item.timestamped %} {% endif %} {# archived icon #} {% if item.state == constant('Elabftw\\Enums\\State::Archived').value %} {% endif %} {# deleted icon #} {% if item.state == constant('Elabftw\\Enums\\State::Deleted').value %} {% endif %} {# category #} {% if item.category %} {# Note: there might be something to do with mix-blend-mode: difference to get white text on dark bg et vice-versa #} {% endif %} {# status #} {% if item.status %} {% endif %}
{# end first line #} {# second line: title #}

{% if item.custom_id %} {{ item.custom_id }} {% endif %} {{ item.title }}

{# owner #}
{% if (Entity.Users.userData.userid != item.userid) and not App.Session.has('is_anon') %} {{ 'by'|trans }} {{ item.fullname }} {% endif %}
{# end second line #} {% if item.next_step|length > 0 %} {% set stepsArr = item.next_step|split('|') %} {% set next = stepsArr|first %}

{{ 'Next step'|trans }}: {{ next }}

{% endif %}

{% set itemtagsArr = tagsArr[item.id] %} {% if itemtagsArr|length > 0 %} {% for tag in itemtagsArr %} {{ tag.tag }} {% endfor %} {% endif %}

{# container to hold the body of the entity if it is toggled with the +/- icon #} {# a random id is used because with the favorites the item can appear two times on the page so the old blah_123 doesn't work well #} {# with a div inside to hold the content, similar to how it is in table mode #}
{# third part: end container #}
{# column for date and icons #}
{# rating, date and pinned icon #}
{# rating #} {% if item.rating > 0 %} {{ item.rating }} {% endif %} {{ item.date|date('Y-m-d') }} {% include 'toggle-pin.html' with {'padding': 1, 'is_pinned': item.is_pinned, 'id': item.id} %}
{# toggle body #}