{% load aa_forum %} {% load i18n %} {% if page_obj.paginator.num_pages > 1 %}
{% aa_forum_template_variable topic_first_message = topic.first_message %} {% aa_forum_template_variable topic_first_message_board = topic_first_message.topic.board %} {% aa_forum_template_variable topic_first_message_category = topic_first_message_board.category %}
{% endif %}