{% from "common/macros.html" import accordion, full_post %} {% extends "base.html" %} {% block title %}bookmarks{% endblock %} {% block content %}
{% for collection in collections %} {% call(section) accordion(disabled=collection.is_empty()) %} {% if section == 'header' %}

{{ collection.name }}

{{" (no bookmarks)" if collection.is_empty() else ""}} {% else %} {% call(inner_section) accordion(disabled=not collection.has_threads()) %} {% if inner_section == 'header' %} Threads{{" (no bookmarks)" if not collection.has_threads() else ""}} {% else %} {% endif %} {% endcall %} {% call(inner_section) accordion(disabled=not collection.has_posts()) %} {% if inner_section == 'header' %} Posts{{" (no bookmarks)" if not collection.has_posts() else ""}} {% else %} {% for post in collection.get_posts()|sort(attribute='created_at', reverse=true) %} {{ full_post(post.get_full_post_view(), no_reply=false, render_sig=false, show_thread_title=true) }} {% endfor %} {% endif %} {% endcall %} {% endif %} {% endcall %} {% endfor %}
{% endblock %}