pytask/templates/task/browse_textbooks.html
changeset 134 563fe356947d
child 138 5a94c774473c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/task/browse_textbooks.html	Tue Jan 11 00:23:47 2011 +0530
@@ -0,0 +1,29 @@
+{% extends 'base.html' %}
+{% block content %}
+    {% 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>
+    {% endfor %}
+    </ul>
+    <br />
+    {% endif %}
+
+    {% if open_textbooks %}
+    textbooks that are open for contribution<ul>
+    {% for textbook in comp_textbooks %}
+        <li><a href="/task/textbook/view/tid={{ textbook.uniq_key }}">{{ textbook.name }}</a></li>
+    {% endfor %}
+    </ul>
+    <br />
+    {% endif %}
+
+    {% if unpub_textbooks %}
+    Textbooks that have been created but need approval<ul>
+    {% for textbook in unpub_textbooks %}
+        <li><a href="/task/textbook/view/tid={{ textbook.uniq_key }}">{{ textbook.name }}</a></li>
+    {% endfor %}
+    </ul>
+    <br />
+    {% endif %}
+{% endblock %}