summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12014-02-13 15:35:50 +0530
committerhardythe12014-02-13 15:35:50 +0530
commit7f07013f943b8a55582762881be7927782034916 (patch)
tree3dbf186ee8e1eb4098bb6ef0fa03df53351dbca4
parent611fab4acd9ad4d8f88d13c5dbceee0d5acb7a40 (diff)
downloadPython-TBC-Interface-7f07013f943b8a55582762881be7927782034916.tar.gz
Python-TBC-Interface-7f07013f943b8a55582762881be7927782034916.tar.bz2
Python-TBC-Interface-7f07013f943b8a55582762881be7927782034916.zip
"adding download link for each chapter"wq
-rw-r--r--tbc/templates/tbc/book-details.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/tbc/templates/tbc/book-details.html b/tbc/templates/tbc/book-details.html
index 38ec6e7..36c3936 100644
--- a/tbc/templates/tbc/book-details.html
+++ b/tbc/templates/tbc/book-details.html
@@ -7,7 +7,7 @@
{% for image in images %}
<div class ="module-list">
<img src="{% static 'uploads/' %}{{ image.image }}">
- <center><p>{{ image.caption }}</p></center>
+ <center><p style="margin-top:30px;">{{ image.caption }}</p></center>
</div>
{% endfor %}
</div>
@@ -24,6 +24,9 @@
<td>
<a href="http://nbviewer.ipython.org/url/tbc-python.fossee.in{% static 'uploads/' %}{{ chapter.notebook }}">{{ chapter.name }}</a>
</td>
+ <td>
+ <a href="{% static 'uploads/' %}{{ chapter.notebook }}">Download</a>
+ </td>
</tr>
{% endfor %}
</table>