{% extends "base.html" %} {% load form_helpers %} {% 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 %} {% if chapters %} Chapters:
{% for chap in chapters %} {% endfor %}
{{chap.title}} {{chap.status}}
{% else %} There are no chapters in this textbook as of now.
{% endif %}
{% 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 %} {% as_div_form form "Comment Form" csrf_token "Submit" %} {% endif %} {% endblock %}