{#- A thread: its posts in order, the unread ones after a divider; replying at the end, with the editor and attachments; closing and deleting for the community's managers. Drawn in `mockups/templates/thread.html`. -#} {% extends "ads_community.html" %} {% import "forum/_post_fields.html" as fields %} {#- Closing and deleting are for the community's managers; the dialog needs it too. -#} {% set moderator = can_manage(current_user, g.community) %} {% block page_title %}{{ thread.title }}{% endblock %} {#- The widgets (the uploader) and the rich-text editor; no stylesheet comes with them. -#} {% block scripts %}{{ vite_asset("src/main.js") }}{{ vite_asset("src/editor.js") }}{% endblock %} {% block content %} {% set first_new = thread.posts | length - new_posts %}