{% if current_user == post.author %}
编辑
{% elif current_user.is_administrator() %}
编辑 [Admin]
{% endif %}
{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% import "_macros.html" as macros %} {% block title %}Flasky - Post{% endblock %} {% block page_content %}