diff options
Diffstat (limited to 'yaksh/templates/exam.html')
-rw-r--r-- | yaksh/templates/exam.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index 101f3f3..00633a3 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -31,6 +31,7 @@ <p> Question Navigator </p> <ul class="pagination pagination-sm"> {% for qid in paper.questions.all %} + {%if paper.question_paper.quiz.can_skip_questions%} {% if qid in paper.questions_unanswered.all %} {% if qid.id == question.id %} <li class="active"><a style="width:25%" href="#"data-toggle="tooltip" @@ -44,6 +45,9 @@ {% if qid in paper.questions_answered.all %} <li class="disabled"><a style="background-color:#B4B8BA; width:25%" href="#" data-toggle="tooltip" title="{{ qid.description }}" >{{ forloop.counter }}</a></li> {% endif %} + {% else %} + <li><a style="width:25%" href="#" data-toggle="tooltip" title="{{ qid.description|striptags }}">{{ forloop.counter }}</a></li> + {% endif %} {% endfor %} </ul> <p>Question(s) left: <b>{{ paper.questions_left }}</b></p> |