summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/monitor.html
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/templates/exam/monitor.html')
-rw-r--r--testapp/templates/exam/monitor.html53
1 files changed, 25 insertions, 28 deletions
diff --git a/testapp/templates/exam/monitor.html b/testapp/templates/exam/monitor.html
index 60814c7..a0287e7 100644
--- a/testapp/templates/exam/monitor.html
+++ b/testapp/templates/exam/monitor.html
@@ -6,18 +6,15 @@
{% block manage %}
-{% if not quizzes and not quiz %}
-<h1><center> Quiz results </center></h1>
-
-<center><h5> No quizzes available. </h5></center>
-
-{% endif %}
+ {% if not quizzes and not quiz %}
+ <h1><center> Quiz results </center></h1>
+ <center><h5> No quizzes available. </h5></center>
+ {% endif %}
{# ############################################################### #}
{# This is rendered when we are just viewing exam/monitor #}
{% if quizzes %}
<center><h1> Available quizzes </h1></center>
-
<ul>
{% for quiz in quizzes %}
<li><a href="{{URL_ROOT}}/exam/manage/monitor/{{quiz.id}}/">{{ quiz.description }}</a></li>
@@ -33,32 +30,32 @@
{% if papers %}
{# <p> Quiz: {{ quiz_name }}</p> #}
<p>Number of papers: {{ papers|length }} </p>
-<style type="text/css">
-table td {
- vertical-align: top;
- border-top: 1px solid #ddd;
-}
-table tbody th {
- border-top: 1px solid #ddd;
- vertical-align: top;
-}
-</style>
+ <style type="text/css">
+ table td
+ {
+ vertical-align: top;
+ border-top: 1px solid #ddd;
+ }
+ table tbody th
+ {
+ border-top: 1px solid #ddd;
+ vertical-align: top;
+ }
+ </style>
<table border="1" cellpadding="3">
<tr>
- <th> Name </th>
- <th> Username </th>
- <th> Roll number </th>
- <th> Institute </th>
- <th> Questions answered </th>
- <th> Total marks </th>
- <th> Attempts </th>
+ <th> Name </th>
+ <th> Username </th>
+ <th> Roll number </th>
+ <th> Institute </th>
+ <th> Questions answered </th>
+ <th> Total marks </th>
+ <th> Attempts </th>
</tr>
{% for paper in papers %}
<tr>
- <td> <a href="{{URL_ROOT}}/exam/manage/user_data/{{paper.user.username}}">
- {{ paper.user.get_full_name.title }}</a> </td>
- <td> <a href="{{URL_ROOT}}/exam/manage/user_data/{{paper.user.username}}">
- {{ paper.user.username }}</a> </td>
+ <td> <a href="{{URL_ROOT}}/exam/manage/user_data/{{paper.user.username}}">{{ paper.user.get_full_name.title }}</a> </td>
+ <td> <a href="{{URL_ROOT}}/exam/manage/user_data/{{paper.user.username}}">{{ paper.user.username }}</a> </td>
<td> {{ paper.profile.roll_number }} </td>
<td> {{ paper.profile.institute }} </td>
<td> {{ paper.get_answered_str }} </td>