{% from "common/macros.html" import timestamp, full_post %} {% extends "base.html" %} {% block title %}inbox{% endblock %} {% block content %}
{% if all_subscriptions is none %} You have no subscriptions.
{% else %} Your subscriptions: {% endif %} {% if not new_posts %} You have no unread posts. {% else %} You have {{ total_unreads_count }} unread post{{(total_unreads_count | int) | pluralize }}: {% for thread in new_posts %}
{% set latest_post_id = thread.posts[-1].id %} {% set unread_posts_text = " (" + (thread.unread_count | string) + (" unread post" | pluralize) %} {{thread.thread_title + unread_posts_text}}, latest at {{ timestamp(thread.newest_post_time) }})
{% for post in thread.posts %} {{ full_post(post, no_reply = true) }} {% endfor %}
{% endfor %} {% endif %}
{% endblock %}