{% load search_tags %} {% if results %}
Document/Folder
{% for item in results %}
  • {% if item.is_document %}

    {{ item.title }}

    {% else %}
    • {{ item.icon }}
    • {{ item.dir_path }}
    • {{ item.title }}
    {% endif %}
    {% if item.is_document %} {{ item.dir_path }} {% endif %}
    {% search_excerpt_tag item.text request.GET.q 5 as matched_context %} {{ matched_context.excerpt }} {% highlight_tag matched_context.excerpt request.GET.q as highlighted_context %} {{ highlighted_context.highlighted }}
  • {% endfor %}
    {% endif %}