Search results: {{ resultsCount }} hits ({{ pageCount }} pages)

{% set preview_mimetypes = [ 'text/plain', 'text/css', 'application/xml', 'application/x-sh', 'application/json', 'application/javascript' ] %} {% set preview_maxsize = 32 * 1024 %} {% for hit in hits %}

{{ hit.title }} {% if hit['type'] == 'directory' %} {% endif %} Mime type: {{ hit['mimetype'] }} Size: {{ hit['sizeformatted'] }}

{% if hit['description'] and not hit['description'] == '' %}

{{ hit['description'] }}

{% else %}

No description available for this result

{% endif %} {% if hit.mimetype.startswith('image') %} {% elif (hit.mimetype.startswith('text') or hit.mimetype in preview_mimetypes) and hit.size < preview_maxsize %}

        
{% else %} {% endif %}
{% endfor %}