summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-02-10 13:11:51 +0530
committerMadhusudan.C.S2011-02-10 13:11:51 +0530
commitac67e9b63762956122c1cc6b49058a436bec238b (patch)
treee208233e9fa95a9035d0f49a23c59f00f664db45
parent1892cb3ce3dca6c9257da4fd8776034e5863c564 (diff)
downloadpytask-ac67e9b63762956122c1cc6b49058a436bec238b.tar.gz
pytask-ac67e9b63762956122c1cc6b49058a436bec238b.tar.bz2
pytask-ac67e9b63762956122c1cc6b49058a436bec238b.zip
The textbook view page displays the Pynts next to each task.
-rw-r--r--pytask/templates/task/view_textbook.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/pytask/templates/task/view_textbook.html b/pytask/templates/task/view_textbook.html
index 0680865..1110c83 100644
--- a/pytask/templates/task/view_textbook.html
+++ b/pytask/templates/task/view_textbook.html
@@ -41,7 +41,14 @@
<table>
{% for chap in chapters %}
<tr>
- <td><a href="{% url view_chapter chap.parent.id chap.id %}">{{chap.title}}</a> </td>
+ <td>
+ <a href="{% url view_chapter chap.parent.id chap.id %}">
+ {{ chap.title }}
+ </a>
+ </td>
+ <td>
+ (<strong>{{ chap.pynts }} Pynt{% if chap.pynts != 1 %}s{% endif %}</strong>)
+ </td>
</tr>
{% endfor %}
</table>