Display Pynts on task/textbook description page. default tip
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sat, 05 Feb 2011 03:24:52 +0530
changeset 559 96e8e65a3738
parent 558 fd3e6f5f01bd
Display Pynts on task/textbook description page. Also make some style fixes.
pytask/templates/task/view_textbook.html
pytask/templates/templatetags/_as_tags.html
--- a/pytask/templates/task/view_textbook.html	Fri Feb 04 16:38:21 2011 +0530
+++ b/pytask/templates/task/view_textbook.html	Sat Feb 05 03:24:52 2011 +0530
@@ -16,15 +16,15 @@
     {% if can_edit %}
         <a href="{% url edit_textbook textbook.id %}">Edit Text book</a>
     {% endif %}
-    
+
     {% if can_approve %}
         <a href="{% url approve_textbook textbook.id %}">Approve Text book</a>
     {% endif %}
 
     <hr />
-
+    <strong>Pynts: {{ textbook.pynts }}</strong><br/>
     {% if textbook.tags.count %}
-      Tags: {% as_tags textbook.tags %}<hr />
+      <strong>Tags:</strong> {% as_tags textbook.tags %}<hr />
     {% endif %}
 
     <h3>
--- a/pytask/templates/templatetags/_as_tags.html	Fri Feb 04 16:38:21 2011 +0530
+++ b/pytask/templates/templatetags/_as_tags.html	Sat Feb 05 03:24:52 2011 +0530
@@ -1,5 +1,3 @@
-<div id="tags">
-  {% for tag in tags %}
-    <a href="{% url view_tag tag.name %}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
-  {% endfor %}
-</div>
\ No newline at end of file
+{% for tag in tags %}
+  <a href="{% url view_tag tag.name %}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
+{% endfor %}