{% if results %}
Document/Folder
{% for item in results %}
  • {% if item.model_ctype == 'document' %}

    {{ item.title }}

    {% else %}
    • {{ item.icon }}
    • {{ item.dir_path }}
    • {{ item.title }}
    {% endif %}
    {% if item.model_ctype == 'document' %} {{ item.dir_path }} {% endif %}
    {% if item.model_ctype == 'document' %} {{ item.page_highlight }} {% endif %}
  • {% endfor %}
    {% endif %}