{% extends theme('layout.html') %} {% from theme('macros.html') import render_pagination %} {% block content %}
{{ render_pagination(topics, url_for('user.view_all_topics', username=user.username)) }}
{% for topic in topics.items %} {% else %} {% endfor %}
{% trans user=user.username %}All Topics created by {{user}}{% endtrans %}
{% trans %}Topic{% endtrans %} {% trans %}Posts{% endtrans %} {% trans %}Views{% endtrans %} {% trans %}Last Post{% endtrans %}
{{ topic.title }}
{% trans %}by{% endtrans %} {% if topic.user_id %} {{ topic.user.username }} {% else %} {{ topic.username }} {% endif %}
{{ topic.post_count }} {{ topic.views }} {{ 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 %}
{% trans %}No topics.{% endtrans %}
{% endblock %}