{% extends "other_base.html"%} {% block title%}Article|COVID-19 Detector{% endblock %} {% block content %}
{% if post.author.has_avatar %} 头像 {% else %}
{{ post.author.username[0] }}
{% endif %}
{{ post.author.username }}

发布时间: {{ moment(post.timestamp).format('LLL') }}

{{ post.title }}

{{ post.content }}

{% for i in range(1,post.img_count+1) %}
{% endfor %}
{% for i in range(1,post.img_count+1) %} {% endfor %}

评论区


{% if empty_comments %}

   评论区空空如也~

{% else %} {% for comment, author in comment_pairs %}
{% if author.has_avatar %} 头像 {% else %}
{{ author.username[0] }}
{% endif %}
{{ author.username }}     {{ moment(comment.timestamp).fromNow() }}

{{ comment.body }}

{% endfor %} {% endif %}
{{ form.csrf_token }}
{% if current_user.has_avatar %} 头像 {% else %}
{{ current_user.username[0] }}
{% endif %}
{{form.body(class="form-control", style="width:500px;")}} {% if form.body.errors %}
    {% for error in form.body.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{{ form.submit(class="btn btn-primary") }}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}