From 1785d2613b8a56b0204c257b31e721be7032515a Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 20 Jun 2016 14:58:53 +0530 Subject: students can download files --- yaksh/templates/yaksh/question.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)

{{ question.summary }} (Marks : {{ question.points }})


{{ question.description|safe }}
Language: {{ question.language }}
- + {% if files %} +

Files to download for this question

+ {% for file in files %} + {% if file.question_id == question.id %} +
{{file.files.name}}
+ {% endif %} + {% endfor %} + {% endif %} {% if question.type == "code" %}

Output:


{% if error_message %} -- cgit