{% import "components/user.html" as user with context %} {% extends "layout/basic.html" %} {% block content %} {% set task = taskDict[submit.taskId.toString()] %}

{% if task %}{{ task.title }}{% else %}{{ _('优秀总结') }}{% endif %}

{{ _('返回') }}

{% if udict[submit.uid] %}{{ user.render_inline(udict[submit.uid], badge=false) }}{% else %}UID {{ submit.uid }}{% endif %} / {{ datetimeSpan(submit.updatedAt)|safe }}

{{ submit.content|markdown|safe }} {% if submit.comment %}
{{ submit.comment }}
{% endif %}

{{ _('同伴留言') }}

{% for item in comments %}

{% if udict[item.uid] %}{{ user.render_inline(udict[item.uid], badge=false) }}{% else %}UID {{ item.uid }}{% endif %} / {{ datetimeSpan(item.createdAt)|safe }}

{{ item.content|markdown|safe }} {% if item.uid == handler.user._id or handler.user.hasPerm(perm.PERM_EDIT_TRAINING) %}
{% endif %}
{% else %}

{{ _('还没有留言。') }}

{% endfor %}

{{ _('互动') }}

{{ _('当前点赞') }}:{{ voteCount }}

{% endblock %}