summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2017-11-07 15:49:35 +0530
committerankitjavalkar2018-03-06 11:39:06 +0530
commit7a892b8c664a69bd054efc6c662281e839546b7d (patch)
tree426fc4d65d62e99c9609c1fe0b32c54bae134571 /yaksh/templates
parent91fa9c6a40e16f43d935db9641b6833605afc1e8 (diff)
downloadonline_test-7a892b8c664a69bd054efc6c662281e839546b7d.tar.gz
online_test-7a892b8c664a69bd054efc6c662281e839546b7d.tar.bz2
online_test-7a892b8c664a69bd054efc6c662281e839546b7d.zip
- Change function names and urls to 'preview_questionpaper'
- Add snippet to the questionpaper preview
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 %}