diff -r 602a909e9e16 -r 1be4a3c09a47 pytask/templates/task/view_textbook.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/task/view_textbook.html Tue Jan 11 00:00:48 2011 +0530
@@ -0,0 +1,57 @@
+{% extends 'base.html' %}
+{% block title %}
+ {{textbook.name}}
+{% endblock %}
+{% block content %}
+
{{ textbook.name }}
+
+ {% if can_edit %}
+ Edit Text book
+ {% endif %}
+
+ {% if can_approve %}
+ Approve Text book
+ {% endif %}
+
+
created by {{ textbook.created_by.username }}
+ on {{textbook.creation_datetime|date:"D d M Y"}} at {{textbook.creation_datetime|time:"H:i"}}
+
+
+ {% if textbook.tags.count %}
+ Tags:
+ {% for tag in textbook.tags %}
+ {{tag}}
+ {% endfor %}
+
+ {% endif %}
+
+ Chapters:
+ {% for chap in chapters %}
+
+ {% endfor %}
+
+
+
+
+ {% if comments %}
+ comments:
+ {% for comment in comments %}
+ {{ comment.commented_by.username }}
+ on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:
+ {{ comment.data|linebreaksbr }}
+ {% endfor %}
+ {% endif %}
+
+
+ {% if can_comment %}
+ Add comment:
+
+ {% endif %}
+
+{% endblock %}