{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% import "_macros.html" as macros %} {% block title %}Flasky - Post{% endblock %} {% block page_content %}

正文:

{% if current_user == post.author %} 编辑 {% elif current_user.is_administrator() %} 编辑 [Admin] {% endif %}

评论:

{% if current_user.can(Permission.COMMENT) %}
{{ wtf.quick_form(form) }}
{% endif %} {% include '_comments.html' %} {% if pagination %} {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}