diff -r 5a94c774473c -r 4f0cfd486d9b pytask/templates/task/view_textbook.html --- a/pytask/templates/task/view_textbook.html Tue Jan 11 11:51:12 2011 +0530 +++ b/pytask/templates/task/view_textbook.html Tue Jan 11 11:56:34 2011 +0530 @@ -25,12 +25,20 @@
{% endif %} + {% if chapters %} Chapters:
+ {% for chap in chapters %} - + + + + {% endfor %} +
{{chap.title}} {{chap.status}}
+ {% else %} + There are no chapters in this textbook as of now.
+ {% endif %} +