{% extends "base.html" %} {% block title %}{{ topic.title }} - Forum{% endblock %} {% block meta_description %}{{ topic.content[:160] }}{% endblock %} {% block content %}
{% if topic.is_pinned %} Pinned {% endif %} {% if topic.is_locked %} Locked {% endif %}

{{ topic.title }}

{{ topic.view_count }} views · {{ replies|length }} replies

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
{{ topic.author_name[0]|upper }}
{{ topic.author_name }}
{{ topic.created_at | timeago }}
{{ topic.content | markdown | safe }}
{% if replies %}

{{ replies|length }} {% if replies|length == 1 %}Reply{% else %}Replies{% endif %}

{% for reply in replies %}
{{ reply.author_name[0]|upper }}
{{ reply.author_name }} {% if reply.is_solution %} Solution {% endif %}
{{ reply.created_at | timeago }}
{{ reply.content | markdown | safe }}
{% endfor %}
{% endif %} {% if not topic.is_locked %}

Post a Reply

Markdown is supported: **bold**, *italic*, `code`, ```code blocks```, [links](url)

{% else %}

This topic is locked and cannot receive new replies.

{% endif %}
{% endblock %}