{%- from 'common/macros.html' import full_post, bookmark_menu with context -%} {%- from 'common/macros.html' import subheader, bookmark_button -%} {%- extends 'base.html' -%} {%- block title -%}bookmarks"{%- endblock -%} {%- block content -%} {%- call() subheader('Your bookmarks') -%}
Actions Manage collections
{%- endcall -%}
{%- for collection in collections -%} {%- set thread_count = collection.get_threads_count() -%} {%- set post_count = collection.get_posts_count() -%}
{{collection.name}} ({{thread_count}} {{'thread' | pluralize(num=thread_count)}}, {{post_count}} {{'post' | pluralize(num=post_count)}}) {%- if thread_count > 0 -%}
Threads {%- for bt in collection.get_threads() -%} {%- set thread = bt.get_thread() -%} {%- endfor -%}
Title Memo Manage
{{thread.title}} {{bt.note}} {{bookmark_button('thread', id=thread.id, text='Manage')}}
{%- endif -%} {%- if post_count > 0 -%}
Posts {%- for bp in collection.get_posts() -%}
{{ full_post(bp.get_post().get_full_post_view(), render_sig=false, show_thread=true, show_reactions=false, tb_edit=false, tb_quote=false, tb_delete=false, bookmark_btn='Manage', tb_pretext=('memo: ' + bp.note) if bp.note else '') }}
{%- endfor -%}
{%- endif -%}
{%- endfor -%}
{{ bookmark_menu() }} {%- endblock -%}