From e6cce5b0ca4d616b7ff55c66f5d94376974fcc4c Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 31 Mar 2020 15:51:15 +0530 Subject: Change course_modules.html and views.py - Get distinct courses in student dashboard - Add condition to check if question paper exists for a quiz in course modules --- yaksh/templates/yaksh/course_modules.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html index 214f8c7..dd7b68d 100644 --- a/yaksh/templates/yaksh/course_modules.html +++ b/yaksh/templates/yaksh/course_modules.html @@ -128,9 +128,11 @@ View {% else %} - - View - + {% if unit.quiz.questionpaper_set.get %} + + View + + {% endif %} {% endif %}