{% extends "base.html" %} {% from 'common/macros.html' import sortable_list, sortable_list_item %} {% block title %}managing bookmark collections{% endblock %} {% block content %}

Manage bookmark collections

Drag collections to reoder them. You cannot move or remove the default collection, but you can rename it.

{% set sorted_collections = collections | sort(attribute='sort_order') %} {% macro collection_inner(collection) %}
{{ collection.get_threads_count() }} {{ "thread" | pluralize(num=collection.get_threads_count()) }}, {{ collection.get_posts_count() }} {{ "post" | pluralize(num=collection.get_posts_count()) }}
{% if collection.is_default %} Default collection {% else %} {% endif %} {% endmacro %} {% call() sortable_list(attr={'data-receive': 'addCollection' }) %} {% call() sortable_list_item(key='collections', immovable=true, attr={'data-collection-id': sorted_collections[0].id, 'data-receive': 'deleteCollection getCollectionData testValidity'}) %} {{ collection_inner(sorted_collections[0]) }} {% endcall %} {% for collection in sorted_collections[1:] %} {% call() sortable_list_item(key='collections', attr={'data-collection-id': collection.id, 'data-receive': 'deleteCollection getCollectionData testValidity'}) %} {{ collection_inner(collection) }} {% endcall %} {% endfor %} {% endcall %}
{##} {% endblock %}