<!DOCTYPE html>
{% extends "base.html" %}
{% block content %}
    <h2>Welcome to the Forum Area</h2>
    <p>
        Here is where you can receive and view announcements, let us know feedback as it comes to mind, provide prayer requests for the prayer box, and enjoy conversation with other members if you'd like.
    </p>
    <p>
        This exists as a way to garner a bit more community, should you desire such, as well as being relatively private to the members to prevent outsider abuse; or a place for those who are little less vocal about their faith in online spaces.
    </p>
    <p>
        The conversation thread will be up as trial for 6 months. Please enjoy and aim to act in good faith; there are no rules besides the ones you read in order to join the ring.
    </p>
    <h2>Forum</h2>
    {% for category, thread in threads.items %}
        <div class="forum-category">{{ category }}</div>
        <table>
            <tr>
                <th>Thread</th>
                <th>Posts</th>
                <th>Last Post</th>
            </tr>
            {% for t in thread %}
                <tr>
                    <td>
                        <a href="{% url 'thread' t.id %}">{{ t.title }}</a>
                        <br>
                        <small>{{ t.description }}</small>
                    </td>
                    <td>{{ t.post_count }}</td>
                    <td>by {{ t.most_recent_poster }} at {{ t.most_recent_post_date }}</td>
                </tr>
            {% endfor %}
        </table>
    {% endfor %}
{% endblock %}
