diff options
Diffstat (limited to 'testapp/yaksh_app/templates')
-rw-r--r-- | testapp/yaksh_app/templates/yaksh_app/quizzes_user.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/testapp/yaksh_app/templates/yaksh_app/quizzes_user.html b/testapp/yaksh_app/templates/yaksh_app/quizzes_user.html index 19618ec..94f9d0f 100644 --- a/testapp/yaksh_app/templates/yaksh_app/quizzes_user.html +++ b/testapp/yaksh_app/templates/yaksh_app/quizzes_user.html @@ -26,9 +26,15 @@ <th>Pre requisite quiz</th> {% for paper in quizzes %} <tr> - <td> - <a href="{{ URL_ROOT }}/exam/intro/{{paper.id}}">{{ paper.quiz.description }}</a><br> - </td> + {% if paper in unexpired_quizzes %} + <td> + <a href="{{ URL_ROOT }}/exam/intro/{{paper.id}}">{{ paper.quiz.description }}</a><br> + </td> + {% else %} + <td> + {{ paper.quiz.description }} <span class="label important">Expired</span><br> + </td> + {% endif %} <td> {% if paper.quiz.prerequisite %} You have to pass {{ paper.quiz.prerequisite.description }} for taking {{ paper.quiz.description }} |