diff options
author | ankitjavalkar | 2015-08-25 15:49:30 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-09-07 17:58:59 +0530 |
commit | ba1f02c1129859fe32577e3da67bee6374ed5190 (patch) | |
tree | 5d378f65436ee848032ccae40747380ba2f5652c /testapp/yaksh_app/templates | |
parent | 81e119899ebc04b53ac9c15c66286c8dbc08726b (diff) | |
download | online_test-ba1f02c1129859fe32577e3da67bee6374ed5190.tar.gz online_test-ba1f02c1129859fe32577e3da67bee6374ed5190.tar.bz2 online_test-ba1f02c1129859fe32577e3da67bee6374ed5190.zip |
Add Date-Time expiry notification on front page
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 }} |