diff options
author | Prabhu Ramachandran | 2011-11-10 14:47:22 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-10 14:47:22 +0530 |
commit | 812f79bd79c54b3b362ef616c121fb500b0b8a11 (patch) | |
tree | 96289a3e2c33a453a9b290f6acd76464e213551c /templates/exam | |
parent | 6cf7eb9f1a69f596ea0dcc418c1b90d3fb8ec513 (diff) | |
download | online_test-812f79bd79c54b3b362ef616c121fb500b0b8a11.tar.gz online_test-812f79bd79c54b3b362ef616c121fb500b0b8a11.tar.bz2 online_test-812f79bd79c54b3b362ef616c121fb500b0b8a11.zip |
ENH: Adding a monitor page to see results
Adds a simple /exam/monitor page that displays current quiz results.
Diffstat (limited to 'templates/exam')
-rw-r--r-- | templates/exam/monitor.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/exam/monitor.html b/templates/exam/monitor.html new file mode 100644 index 0000000..21618e9 --- /dev/null +++ b/templates/exam/monitor.html @@ -0,0 +1,22 @@ +<h1> Current quiz results </h1> + +<meta http-equiv="refresh" content="30"/> + +{% if quiz_list %} +<table border="1"> + <tr> + <th>Student </th> <th>Questions answered</th> <th>Total marks</th> + </tr> + {% for paper in quiz_list %} + <tr> + <td>{{ paper.username }} </td> + <td>{{ paper.answered }} </td> + <td> {{ paper.total }} </td> + + </tr> + {% endfor %} +</table> +{% else %} + <p> No quizzes so far. </p> +{% endif %} + |