summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-02-05 03:24:52 +0530
committerMadhusudan.C.S2011-02-05 03:24:52 +0530
commit3f4e2d143d52d9b7ae4166c8983c589bf76b2bf3 (patch)
tree821c38366020f378132713a82a74222ce635839f
parent332130e54a47f2c879ceac6fe6ff856106fcde1f (diff)
downloadpytask-3f4e2d143d52d9b7ae4166c8983c589bf76b2bf3.tar.gz
pytask-3f4e2d143d52d9b7ae4166c8983c589bf76b2bf3.tar.bz2
pytask-3f4e2d143d52d9b7ae4166c8983c589bf76b2bf3.zip
Display Pynts on task/textbook description page.
Also make some style fixes.
-rw-r--r--pytask/templates/task/view_textbook.html6
-rw-r--r--pytask/templates/templatetags/_as_tags.html8
2 files changed, 6 insertions, 8 deletions
diff --git a/pytask/templates/task/view_textbook.html b/pytask/templates/task/view_textbook.html
index 9d1c975..a980b75 100644
--- a/pytask/templates/task/view_textbook.html
+++ b/pytask/templates/task/view_textbook.html
@@ -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>
diff --git a/pytask/templates/templatetags/_as_tags.html b/pytask/templates/templatetags/_as_tags.html
index 1cb0a0e..58d7b30 100644
--- a/pytask/templates/templatetags/_as_tags.html
+++ b/pytask/templates/templatetags/_as_tags.html
@@ -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 %}