summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authoradityacp2016-06-20 14:58:53 +0530
committeradityacp2016-07-28 15:56:06 +0530
commit1785d2613b8a56b0204c257b31e721be7032515a (patch)
tree38518ed9999136c20506d895f39fe177f4d082f7 /yaksh/templates
parentdfb9c4b5d6de17187bffd0e3c793737275202cb9 (diff)
downloadonline_test-1785d2613b8a56b0204c257b31e721be7032515a.tar.gz
online_test-1785d2613b8a56b0204c257b31e721be7032515a.tar.bz2
online_test-1785d2613b8a56b0204c257b31e721be7032515a.zip
students can download files
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/question.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 40d4482..24de815 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -142,7 +142,14 @@ function call_skip(url)
<h4><u> {{ question.summary }} </u><font class=pull-right>(Marks : {{ question.points }}) </font></h4><br>
<font size=3 face=arial> {{ question.description|safe }} </font>
<br><font size=3 face=arial> Language: {{ question.language }} </font><br>
-
+ {% if files %}
+ <h4>Files to download for this question</h4>
+ {% for file in files %}
+ {% if file.question_id == question.id %}
+ <h5><a href="{{file.files.url}}">{{file.files.name}}</a></h5>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
{% if question.type == "code" %}
<br><h4>Output:</h4></br>
{% if error_message %}