{% macro body(boards) -%} {% import 'base/link.html' as link_base %} {% for board in boards %}
{{ link_base.board(board)}}
主题: {{ board.count.topics }} 帖子: {{board.count.all_topics }}
{% set last_topic = board.topics.first() %} {% if last_topic %}
{{ link_base.topic(last_topic)}}
由{{ link_base.user(last_topic.author.username) }}发表
{{ last_topic.publish | timesince }}
{% else %} 没有帖子 {% endif %}
{% endfor %} {%- endmacro %}