{% extends 'base.html' %} {% block body %} {% if not searchPage %}
{% if not App.Session.get('anon') %}
{% endif %}

{% endif %} {% set count = itemsArr|length %} {% if count == 0 and searchType != '' %} {{ "Sorry. I couldn't find anything :("|trans|msg('ko', false) }} {% elseif count == 0 and searchType == '' and not App.Session.get('anon') %} {{ "Welcome to eLabFTW. Use the 'Create new' button to get started!"|trans|msg('ok', false) }} {% else %}

{{ count }} {% trans %} result shown {% plural count %} results shown {% endtrans %} {{ 'Select all'|trans }}

{% for item in itemsArr %} {% set permissions = Entity.getPermissions(item) %} {% if permissions.read %} {# dim the experiment a bit if it's not yours #} {% set opacity = '1' %} {% set owner = '' %} {% if (Entity.Users.userid != item.userid) and Entity.type == 'experiments' and not App.Session.has('anon') %} {% set opacity = '0.7' %} {% set owner = item.fullname %} {% endif %} {% if Entity.Users.userData.single_column_layout %}
{% else %}
{% endif %}

{% if item.locked %} {% endif %} {{ item.title|raw }}

{% if item.next_step|length > 0 %} {% set stepsArr = item.next_step|split('|') %} {% set next = stepsArr|first %}

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

{% endif %}

{% if searchPage %} {{ item.fullname|raw }} {% endif %} {% if not item.locked and (item.userid == App.Users.userid or Entity.type == 'items' or App.Session.get('is_admin')) %} {% endif %} {{ item.category }} {{ item.date|kdate }} {% if item.timestamped %} {% endif %} {# show attached if there is a file attached #} {% if item.has_attachment %} {% endif %} {% if Entity.type == 'items' and item.rating > 0 %} {{ item.rating|stars|raw }} {% endif %} {{ owner|raw }} {% if item.tags is not null %} {% set tagsArr = item.tags|split('|') %} {% for tag in tagsArr %} {{ tag|raw }} {% endfor %} {% endif %}

{% endif %} {% endfor %}
{% if not showAll and not searchPage %}
{% if offset != 0 %} {% endif %} {% if count >= Entity.Users.userData.limit_nb %} {% endif %}
{% endif %} {% endif %}
{% endblock body %}