{% extends theme('layout.html') %} {% block content %} {% from theme('macros.html') import render_pagination, topic_pages %}
{{ render_pagination(topics, url_for('user.view_all_topics', username=user.username)) }}
{% trans user=user.username %}All Topics created by {{user}}{% endtrans %}
{% trans %}Topic{% endtrans %}
{% trans %}Last Post{% endtrans %}
{% for topic in topics.items %}
{% if topic.locked %} {% elif topic.important %} {% else %} {% endif %}
{{ topic.title }} {{ topic_pages(topic, flaskbb_config["POSTS_PER_PAGE"]) }}
{% trans %}by{% endtrans %} {% if topic.user_id %} {{ topic.user.username }} {% else %} {{ topic.username }} {% endif %}
{{ topic.last_post.date_created|time_since }}
{% trans %}by{% endtrans %} {% if topic.last_post.user_id %} {{ topic.last_post.user.username }} {% else %} {{ topic.last_post.username }} {% endif %}
{% else %}
{% trans %}No topics.{% endtrans %}
{% endfor %}
{% endblock %}