pytask/templates/task/browse_textbooks.html
changeset 417 b37e541bf950
parent 376 5a94c774473c
child 431 fcc87a3f0311
--- a/pytask/templates/task/browse_textbooks.html	Sat Jan 15 21:21:19 2011 +0530
+++ b/pytask/templates/task/browse_textbooks.html	Sat Jan 15 21:21:49 2011 +0530
@@ -3,7 +3,7 @@
     {% if comp_textbooks %}
     Textbooks that were completed recently<ul>
     {% for textbook in comp_textbooks %}
-        <li><a href="/task/textbook/view/tid={{ textbook.uniq_key }}">{{ textbook.name }}</a></li>
+        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
     {% endfor %}
     </ul>
     <br />
@@ -12,7 +12,7 @@
     {% if open_textbooks %}
     Textbooks that are open for contribution<ul>
     {% for textbook in open_textbooks %}
-        <li><a href="/task/textbook/view/tid={{ textbook.uniq_key }}">{{ textbook.name }}</a></li>
+        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
     {% endfor %}
     </ul>
     <br />
@@ -21,7 +21,7 @@
     {% if unpub_textbooks %}
     Textbooks that need approval<ul>
     {% for textbook in unpub_textbooks %}
-        <li><a href="/task/textbook/view/tid={{ textbook.uniq_key }}">{{ textbook.name }}</a></li>
+        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
     {% endfor %}
     </ul>
     <br />