summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/preview_questionpaper.html (renamed from yaksh/templates/yaksh/download_questionpaper.html)4
1 files changed, 4 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/download_questionpaper.html b/yaksh/templates/yaksh/preview_questionpaper.html
index 8b04874..411e4a6 100644
--- a/yaksh/templates/yaksh/download_questionpaper.html
+++ b/yaksh/templates/yaksh/preview_questionpaper.html
@@ -24,6 +24,10 @@
</div>
<div class="panel-body">
<h5><u>Question:</u></h5> <strong>{{ question.description|safe }}</strong>
+ <br/><b>Answer:</b><br/>
+ {% if question.type == "code" %}
+ <div class="well">{{ question.snippet }}<br/></div>
+ {% endif %}
{% if question.type == "mcq" or question.type == "mcc" %}
<h5> <u>Choices:</u></h5>
{% for testcase in question.get_test_cases %}