diff options
author | Madhusudan.C.S | 2011-02-10 13:11:51 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-02-10 13:11:51 +0530 |
commit | ac67e9b63762956122c1cc6b49058a436bec238b (patch) | |
tree | e208233e9fa95a9035d0f49a23c59f00f664db45 | |
parent | 1892cb3ce3dca6c9257da4fd8776034e5863c564 (diff) | |
download | pytask-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.html | 9 |
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> |