{% extends 'snippet/layout.html' %} {% load forum_extras %} {% block title %} {{ topic.title }} - 小程序开发社区 {% endblock %} {% block stylesheet %} {% endblock %} {% block javascript %} {% endblock %} {% block main %}

{{ topic.title }}

{{ topic.node.name }} {{ topic.author.username }} • {% if topic.last_replied_time %} 发表于 {{ topic.created|pretty_date }}最后回复来自 {{ topic.last_replied_by.username }} {{ topic.last_replied_time|pretty_date }} {% else %} 发表于 {{ topic.created|pretty_date }} {% endif %}
{{ topic.content|markdown|content_process|safe }}
{% ifnotequal reply_page.total 0 %}
共收到{{ reply_page.total }}条回复
{% for reply in replies %}
{{ reply.author.username }} {{ reply.created|pretty_date }} {% if user.is_authenticated %} {% ifequal user.id reply.author.id %} 编辑回复 {% endifequal %} {% endif %} #{{ floor|add:forloop.counter }}
{{ reply.content|markdown|content_process|safe }}
{% endfor %}
{% else %}
暂无回复,说出你的观点吧
{% endifnotequal %}
{% if user.is_authenticated %}
创建新的回复
{{ errors|dump_errors }} {% csrf_token %}
{% else %}
登录后即可参与回复
登录 注册
{% endif %}
{% endblock %} {% block sidebar %} {% if user.is_authenticated %}
{{ user.username }}
{% if user.reputation %}{{ user.reputation }}{% else %}0{% endif %} 威望
{% else %}
登录 注册 找回密码
{% endif %} {% endblock %}