{% set title = '提交记录 #' + str(submission.id) %} {% from '_macro/submission.html' import submission_status, render_submissions %} {% extends "layout.html" %} {% block container %} {{ render_submissions([submission]) }} {% if current_user == submission.user or current_user.has_manage_authority %}
{{ submission.code }}
{% endif %} {% if (current_user == submission.user or current_user.has_manage_authority) and len(submission.details) %}
{% for detail in submission.details %} {% set has_content = not not (detail.message) %}
{{ '# ' + str(detail.id) }}
{{ submission_status(detail.status) }}
{% if has_content %} keyboard_arrow_down {% endif %}
{% if has_content %}
{% if detail.message %}
{{ detail.message }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %} {% endblock %}