{% extends "base.html" %} {% block title %} Data for user {{ user_data.name }} {% endblock title %} {% block content %}

Data for user {{ user_data.name }}

Name: {{ user_data.name }}

Username: {{ user_data.username }}

Roll number: {{ user_data.rollno }}

Email: {{ user_data.email }}

{% if user_data.papers %} {% for paper in user_data.papers %}

Quiz: {{ paper.name }}

Answered questions: {{ paper.answered }}

Total attempts at questions: {{ paper.attempts }}

Total marks: {{ paper.total }}

{% if paper.answers %}

Answers

{% for question, answer in paper.answers.items %}

Question summary: {{ question }}

 
{{ answer|safe }}
{% endfor %} {% endif %} {# if paper.answers #} {% endfor %} {# for paper in user_data.papers #} {% endif %} {# if user_data.papers #} {% endblock content %}