{% extends 'layout/layout.html' %} {% from 'macro/main.html' import render_pagination %} {% block body %} {% include 'inc/header.html' %}

{% for note in notes %}
{{ note.title }}

{{ note.content | striptags | truncate(length=500) }}

perm_identity {{ note.user.getDisplayName() }} {% if current_user.is_authenticated and current_user.id == note.user_id %} edit delete {% endif %}
{% endfor %}
{% if isSearch %} {{ render_pagination(pagination, 'note.show_search_notes', keyword=keyword) }} {% elif isUserNote %} {{ render_pagination(pagination, 'note.show_user_notes', user=current_user.nick_name) }} {% else %} {{ render_pagination(pagination, 'note.show_public_notes') }} {% endif %}
{% include 'inc/menu.html' %} {% endblock %}