{% extends "base.html" %} {% block styles %} {% endblock %} {% block scripts %} {% endblock %} {% from "_comments.html" import comments_render %} {% block body %}

{{ ask.title|e }}

{{ ask.user|user_name_tag }} 发布关于 {{ ask.tags|tags_name_tag }} 的问题于 {{ ask.created_at|strftime }}, {{ ask.answers_count }} 个回答
{{ ask.body|md_body }}
{% if ask.comments|count == 0 %} 给予评论 {% else %} {{ ask.comments|count }} 条评论 {% endif %} • {% if ask.flagged_users.count(current_user) == 0 %} 收藏 {% else %} 已收藏 {% endif %}
{{ comments_render("ask",ask,xsrf_form_html) }}
{% for item in answers %}
{{ item.user|avatar(24) }}
{{ item.user|user_name_tag }}
{% if item.vote > 0 %} {{ item.vote }} 人有用, {% elif item.vote < 0 %} {{ item.vote|abs }} 人觉得没有帮助, {% endif %} {{ item.created_at|strftime }}
{{ item.body|md_body }}
{% if item.comments|count == 0 %} 给予评论 {% else %} {{ item.comments|count }} 条评论 {% endif %} • 有用 • 没有帮助
{{ comments_render("answer",item,xsrf_form_html) }}
{% endfor %}

回答

{{ notice_message }}
{{ xsrf_form_html() }}

{% endblock %}