<table class="forum-table">
    <tr>
        <th colspan="2">Topic</th>
        <th class="channel-column">Channel</th>
        <th class="activity-column">Last post</th>
    </tr>

    {% for topic in topics %}
        <tr class="forum-topic">
            <td class="indicator-column">
                <div class="topic-indicator {{ topic.hasNew ? 'has-new' }}"></div>
            </td>
            <td>
                <h5>
                    {% if topic.sticky %}<strong>Sticky:</strong>{% endif %}
                    {% if topic.locked %}<strong>Locked:</strong>{% endif %}
                    <a href="{{ topic.url }}">{{ topic.subject }}</a>
                    <br/><small>by <a href="{{ topic.start_member.url }}">{{ topic.start_member.username }}</a></small>
                </h5>
            </td>
            <td>
                <p>{{ topic.channel.title }}</p>
            </td>
            <td class="activity-column">
                <p>
                    <img src="{{ topic.last_post_member.user.avatarThumb(24) }}" class="member-avatar" />
                    <a href="{{ topic.last_post_member.url }}">{{ topic.last_post_member.username }}</a>
                    posted
                    <a href="{{ topic.url }}?page=last#post-{{ topic.last_post_id }}">
                        {% partial __SELF__ ~ "::timestamp" date=topic.last_post_at %}
                    </a>
                </p>
            </td>
        </tr>
    {% endfor %}

    {% if not topics|length %}
        <tr>
            <td colspan="100">There are no latest posts in any topics.</td>
        </tr>
    {% endif %}
</table>
