{% extends "layout.html" %} {% macro render_folder_tree(tree, parent_path='') %} {% for folder_path, children in tree.items() %} {% set folder_name = folder_path.split('/')[-1] %} {% set is_active = folder_filter == folder_path %}
{{ folder_name }} ({{ folder_counts.get(folder_path, 0) }})
{% if children %} {{ render_folder_tree(children, folder_path) }} {% endif %} {% endfor %} {% endmacro %} {% block content %}
{% if folder_filter or tag_filter or visibility_filter or search_query %}
Active filters: {% if folder_filter %} {{ folder_filter }} × {% endif %} {% if tag_filter %} {{ tag_filter }} × {% endif %} {% if visibility_filter %} {{ visibility_filter|title }} × {% endif %} {% if search_query %} "{{ search_query }}" × {% endif %} Clear all
{% endif %} {% if notes %}
{% for note in notes %}
{% if note.is_pinned %} {% endif %} {% if note.visibility.value == 'Private' %}{% elif note.visibility.value == 'Team' %}{% else %}{% endif %} {{ note.visibility.value }}

{{ note.title }}

{{ note.get_preview(150) }}

{% if note.tags %}
{% for tag in note.get_tags_list() %} {{ tag }} {% endfor %}
{% endif %}
View {% if note.can_user_edit(g.user) %} Edit {% endif %}
{% endfor %}
{% for note in notes %} {% endfor %}
Title Folder Tags Visibility Author Updated Actions
{% if note.is_pinned %}{% endif %} {{ note.title }} {{ note.folder or '-' }} {% if note.tags %} {% for tag in note.get_tags_list() %} {{ tag }} {% endfor %} {% else %} - {% endif %} {% if note.visibility.value == 'Private' %}{% elif note.visibility.value == 'Team' %}{% else %}{% endif %} {{ note.visibility.value }} {{ note.created_by.username }} {{ note.updated_at.strftime('%b %d, %Y') }} View {% if note.can_user_edit(g.user) %} Edit {% endif %}
{% else %}

No notes found

{% if folder_filter or tag_filter or visibility_filter or search_query %} No notes match your current filters. Try adjusting your search criteria. {% else %} Start documenting your knowledge by creating your first note. {% endif %}

Create Your First Note
{% endif %}
{% endblock %}