pytask/templates/task/browse_textbooks.html
changeset 495 773e886d9b80
parent 435 1217d808d70f
child 497 6386458d749b
--- a/pytask/templates/task/browse_textbooks.html	Thu Jan 20 06:36:38 2011 +0530
+++ b/pytask/templates/task/browse_textbooks.html	Thu Jan 20 07:17:14 2011 +0530
@@ -1,6 +1,27 @@
 {% extends "base.html" %}
 
 {% block content %}
+  {% if open_textbooks %}
+    Textbooks that are open for contribution
+    <ul>
+      {% for textbook in open_textbooks %}
+        <li>
+          <a href="{% url view_textbook textbook.id %}">
+            {{ textbook.title }}
+          </a>
+        </li>
+      {% endfor %}
+    </ul>
+    <br />
+  {% endif %}
+
+
+
+
+
+  <!-- TO BE REFORMATTED LATER. JUST PUSHING IT DOWN. -->
+  {% comment %}
+
   {% if comp_textbooks %}
     Textbooks that were completed recently
     <ul>
@@ -21,7 +42,7 @@
       {% for textbook in open_textbooks %}
         <li>
           <a href="{% url view_textbook textbook.id %}">
-            {{ textbook.name }}
+            {{ textbook.title }}
           </a>
         </li>
       {% endfor %}
@@ -42,5 +63,6 @@
     </ul>
   <br />
   {% endif %}
+  {% endcomment %}
 
 {% endblock %}