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

分类: {{ post.category.name }}

日期: {{ moment(post.timestamp).format('LLL') }}

评论数:{{ pagination.total }} {% if current_user.is_authenticated %}
{% endif %}

{% if comments %}
    {% for comment in comments %}
  • {% if comment.from_admin %} {{ admin.name }} {% else %} {{ comment.author }} {% endif %} {% if comment.from_admin %} 作者{% endif %} {% if comment.replied %}Reply{% endif %}
    {{ moment(comment.timestamp).fromNow() }}
    {% if comment.replied %}

    {{ comment.replied.author }}:
    {{ comment.replied.body }}

    {%- endif -%}

    {{ comment.body }}

    回复 {% if current_user.is_authenticated %}
    {% endif %}
  • {% endfor %}
{% else %}
这里还没有评论...
{% endif %}
{% if comments %} {{ render_pagination(pagination, fragment='#comments') }} {% endif %} {% if request.args.get('reply')%}
回复:{{ request.args.get('author') }} 取消回复
{% endif %} {% if post.can_comments %} {{ render_form(form, action=request.full_path) }} {% else %}

评论区已关闭

{% endif %}
{% endblock content %}