summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authoradityacp2017-11-23 10:46:00 +0530
committeradityacp2017-11-23 14:26:48 +0530
commite69b7bffb7a21ebd6468ae77ad462c7b85184f1a (patch)
tree3dc0dcb3b43721db7a366b5084534d8088b1e164 /yaksh/templates
parent4fc8565be63375b48a7a897a1701e264f4ccac66 (diff)
downloadonline_test-e69b7bffb7a21ebd6468ae77ad462c7b85184f1a.tar.gz
online_test-e69b7bffb7a21ebd6468ae77ad462c7b85184f1a.tar.bz2
online_test-e69b7bffb7a21ebd6468ae77ad462c7b85184f1a.zip
Change urls, views, template, test_views
- Fix view answer paper for student - Fix existing views test cases
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/quizzes_user.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html
index 3c4b985..26e550d 100644
--- a/yaksh/templates/yaksh/quizzes_user.html
+++ b/yaksh/templates/yaksh/quizzes_user.html
@@ -97,8 +97,8 @@ No Courses to display
</td>
<td>
{% if unit.learning_type == "quiz" %}
- {% if quiz.view_answerpaper %}
- <a href="{{ URL_ROOT }}/exam/view_answerpaper/{{ quiz.questionpaper_set.get.id }}/"><i class="fa fa-eye" aria-hidden="true"></i> Can View </a>
+ {% if unit.quiz.view_answerpaper %}
+ <a href="{{ URL_ROOT }}/exam/view_answerpaper/{{ unit.quiz.questionpaper_set.get.id }}/{{course.id}}"><i class="fa fa-eye" aria-hidden="true"></i> Can View </a>
{% else %}
<a><i class="fa fa-eye-slash" aria-hidden="true"></i> Cannot view now </a>
{% endif %}