now code submitted by user is displayed in <pre> tags in que_dump and user_dump
authornishanth
Thu, 22 Apr 2010 12:31:29 +0530
changeset 51 80df28feac72
parent 50 0842b3439c3e
child 52 adab2d07981a
now code submitted by user is displayed in <pre> tags in que_dump and user_dump
templates/que_dump.html
templates/user_dump.html
--- a/templates/que_dump.html	Thu Apr 22 12:17:21 2010 +0530
+++ b/templates/que_dump.html	Thu Apr 22 12:31:29 2010 +0530
@@ -17,7 +17,7 @@
 		{% for ans in answers %}
 		<tr>
 				<td>{{ans.quiz.all.0.user.get_full_name}}</td>
-				<td>{{ans.submitted_ans}}</td>
+				<td><pre>{{ans.submitted_ans}}</pre></td>
 				<td><input name="{{ans.id}}" type="checkbox" {% if ans.is_correct %}checked="yes"{%endif%}></td>
 		</tr>
 		{% endfor %}
--- a/templates/user_dump.html	Thu Apr 22 12:17:21 2010 +0530
+++ b/templates/user_dump.html	Thu Apr 22 12:31:29 2010 +0530
@@ -12,7 +12,7 @@
 		{% for ans in quiz.que_answered.all %}
 		<tr>
 				<td><a href="/quiz/que_dump/{{admin_key}}/{{ans.question.id}}">{{ans.question.description|slice:":50"}}</a></td>
-				<td>{{ans.submitted_ans}}</td>
+				<td><pre>{{ans.submitted_ans}}</pre></td>
 				<td><input name="{{ans.question.id}}" type="checkbox" {% if ans.is_correct %}checked="yes"{%endif%}></td>
 		</tr>
 		{% endfor %}