{% extends 'base.html' %} {% from 'bootstrap/form.html' import render_form %} {% from 'bootstrap/pagination.html' import render_pagination %} {% block title %}{{ post.title }}{% endblock %} {% block content %}
{{ post.body|safe }}

{{ pagination.total }} 评论 最新 {% if current_user.is_authenticated %}
{% endif %}

{% if comments %} {% else %}
没有评论
{% endif %}
{% if comments %} {{ render_pagination(pagination, fragment='#comments') }} {% endif %} {% if request.args.get('reply') %}
Reply to {{ request.args.get('author') }}: 取消
{% endif %} {% if post.can_comment %}
{{ render_form(form, action=request.full_path) }}
{% else %}
不可评论
{% endif %}
{% endblock %}