{% extends "base.html" %} {% block title %}{{ exam.title if exam else '参加考试' }} - FlashExam{% endblock %} {% block head %} {% endblock %} {% block content %}
{{ exam.title }}
全面考试系统 - 托福TPO风格
{{ exam.duration_minutes }}:00
进度: 0%
{% if reading_passages %}
阅读材料导航
{% for passage_group in reading_passages %} {% endfor %} {% if regular_questions %} {% endif %}
{% for passage_group in reading_passages %}
阅读材料 {{ loop.index }}
{{ passage_group.passage.source or '考试材料' }} {{ passage_group.passage.word_count or '约' + (passage_group.passage.content|length/5)|int|string }} 词 | {{ passage_group.passage.reading_time or ((passage_group.passage.content|length/1000)|int + 1) }} 分钟
{{ passage_group.passage.title }}
{{ passage_group.passage.content|replace('\n', '
')|safe }}
{% if passage_group.passage.topic %}
主题: {{ passage_group.passage.topic }} {% if passage_group.passage.difficulty_level %} 难度: {% for i in range(passage_group.passage.difficulty_level) %}★{% endfor %} {% endif %}
{% endif %}
相关题目 ({{ passage_group.questions|length }} 道)
{% for question in passage_group.questions %}
题目 {{ loop.index }}
{{ question.question_type.replace('_', ' ').title() }} {% if question.difficulty %} {% for i in range(question.difficulty) %} {% endfor %} {% endif %}
{{ question.question_text|replace('\n', '
')|safe }}
{% if question.question_type == 'choice' %} {% if question.options %} {% set options_dict = question.options|from_json %} {% if options_dict %}
    {% for key, value in options_dict.items() %}
  • {{ key }}
    {{ value }}
  • {% endfor %}
{% else %}
选项解析失败
{% endif %} {% else %}
该选择题没有选项
{% endif %} {% elif question.question_type == 'judge' %}
正确
错误
{% elif question.question_type in ['code_reading', 'code_practice'] %} {% if question.question_type == 'code_practice' %}
{% else %} {% if question.options %} {% set options_dict = question.options|from_json %} {% if options_dict %}
    {% for key, value in options_dict.items() %}
  • {{ key }}
    {{ value }}
  • {% endfor %}
{% endif %} {% endif %} {% endif %} {% elif question.question_type == 'programming' %}
{% elif question.question_type == 'fill_blank' %}
{% elif question.question_type == 'short_answer' %}
{% elif question.question_type == 'essay' %} 建议字数:300-500字 {% endif %} {% if hasattr(question, 'skill_focus') and question.skill_focus %}
考查技能: {{ question.skill_focus }}
{% endif %}
{% endfor %}
{% endfor %} {% if regular_questions %}
其他题目
{% for question in regular_questions %}
第{{ loop.index }}题
{{ question.question_type.replace('_', ' ').title() }} {% if question.difficulty %} {% for i in range(question.difficulty) %} {% endfor %} {% endif %}
{{ question.question_text|replace('\n', '
')|safe }}
{% if question.question_type == 'choice' %} {% if question.options %} {% set options_dict = question.options|from_json %} {% if options_dict %}
    {% for key, value in options_dict.items() %}
  • {{ key }}
    {{ value }}
  • {% endfor %}
{% endif %} {% endif %} {% elif question.question_type == 'judge' %}
正确
错误
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{% else %}

暂无阅读理解题目

该考试暂时没有阅读理解内容

{% endif %}
已答题目: 0 总题目: {{ (reading_passages|sum(attribute='questions')|list|length + regular_questions|length) if reading_passages else 0 }} 完成度: 0%
{% endblock %} {% block scripts %} {% endblock %}