{% extends 'base.html' %} {% load help_tags %} {% block content %}
{% include 'user_score_header.html' %}
Filter questions by marks
    {% for ans, score, correct_answer in answers_and_marks %}
  • {{ forloop.counter }}
    Question {{ forloop.counter }}
    Correct answer: {% if exam.publish_results %}{{ correct_answer }}{% else %}—{% endif %}
    {{ ans }}
    {% if exam.publish_results or view_all_results %}
    Marks: {% if score == 2 %} {{ score }} {% elif score == 1 %} {{ score }} {% else %} {{ score }} {% endif %}
    {% endif %}
    {% if exam.publish_results %} {% else %} {% endif %} {% if request.user.is_staff %} {% endif %} {% if request.user.is_staff or view_all_results or request.user in exam.author.all %} {% with q=questions|get_item:forloop.counter0 %} {% with ua=user_answers_map|get_item:q.pk %} {% if ua %} History {% endif %} {% endwith %} {% endwith %} {% endif %}
  • {% endfor %}
{% include 'user_scores_footer.html' %}
{% if exam.publish_results %}
Viewer
Question No question loaded
Answers:
{% endif %}
{% endblock %} {% block css %} {% endblock %} {% block js %} {% if exam.publish_results %} {% endif %} {% endblock %}