{% extends "base.html" %} {% block title %} Data for user {{ user_data.name }} {% endblock title %} {% block content %}
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 %}Answered questions: {{ paper.answered }}
Total attempts at questions: {{ paper.attempts }}
Total marks: {{ paper.total }}
{% if paper.answers %}{{ answer|safe }}{% endfor %} {% endif %} {# if paper.answers #} {% endfor %} {# for paper in user_data.papers #} {% endif %} {# if user_data.papers #} {% endblock content %}