Display Pynts on task/textbook description page.
Also make some style fixes.
{% extends "base.html" %}
{% load form_helpers %}
{% load browse_helpers %}
{% block title %}
{{ textbook.title }}
{% endblock %}
{% block content %}
{% as_modification_display "Created by" textbook.created_by textbook.creation_datetime %}
<h2>{{ textbook.title }}</h2>
{% if can_edit %}
<a href="{% url edit_textbook textbook.id %}">Edit Text book</a>
{% endif %}
{% if can_approve %}
<a href="{% url approve_textbook textbook.id %}">Approve Text book</a>
{% endif %}
<hr />
<strong>Pynts: {{ textbook.pynts }}</strong><br/>
{% if textbook.tags.count %}
<strong>Tags:</strong> {% as_tags textbook.tags %}<hr />
{% endif %}
<h3>
Tasks:
{% if can_create_chapters %}
<a href="{% url create_chapter textbook.id %}">Create Tasks</a>
{% endif %}
</h3>
{% if chapters %}
<table>
{% for chap in chapters %}
<tr>
<td><a href="{% url view_chapter chap.parent.id chap.id %}">{{chap.title}}</a> </td>
</tr>
{% endfor %}
</table>
{% else %}
(Chapters are yet to be added by the Coordinator or T/A.)<br />
{% endif %}
<hr />
{% if comments %}
comments:<br /><br />
{% for comment in comments %}
<a href="{% url view_profile comment.commented_by.id %}">{{ comment.commented_by.username }}</a>
on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br />
{{ comment.data|linebreaksbr }}<br />
{% endfor %}
{% endif %}
<hr />
{% if can_comment %}
{% as_div_form form "Comment Form" csrf_token "Submit" %}
{% endif %}
{% endblock %}