summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12015-03-05 17:10:06 +0530
committerhardythe12015-03-05 17:10:06 +0530
commitd6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84 (patch)
treee16b0fde93fb089b84b80e69e7a026ff377f5330 /tbc/templates
parent5669ecb3f9a7d3c16fbd4bd00b7b448fbb275181 (diff)
downloadPython-TBC-Interface-d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84.tar.gz
Python-TBC-Interface-d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84.tar.bz2
Python-TBC-Interface-d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84.zip
changed to clean URL for convert notebook
Diffstat (limited to 'tbc/templates')
-rw-r--r--tbc/templates/tbc/book-details.html4
-rw-r--r--tbc/templates/tbc/book-review-details.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/tbc/templates/tbc/book-details.html b/tbc/templates/tbc/book-details.html
index dc8c272..1c9bab7 100644
--- a/tbc/templates/tbc/book-details.html
+++ b/tbc/templates/tbc/book-details.html
@@ -20,9 +20,9 @@ function redirectToIpynb(notebook)
{% for image in images %}
<div class ="module-list">
{% if image.chapters_set.get.notebook %}
- <a href="{% url 'tbc:ConvertNotebook' image.chapters_set.get.notebook %}"><img src="{% static 'uploads/' %}{{ image.image }}"></a>
+ <a href="{% url 'tbc:ConvertNotebook' image.chapters_set.get.notebook %}"><img src="{% static '{{ book.title }}' %}{{ image.image }}"></a>
{% else %}
- <img src="{% static 'uploads/' %}{{ image.image }}">
+ <img src="{% static '{{ book.title }}' %}{{ image.image }}">
{% endif %}
<center><p style="margin-top:30px;">{{ image.caption }}</p></center>
</div>
diff --git a/tbc/templates/tbc/book-review-details.html b/tbc/templates/tbc/book-review-details.html
index e546220..33401d5 100644
--- a/tbc/templates/tbc/book-review-details.html
+++ b/tbc/templates/tbc/book-review-details.html
@@ -6,9 +6,9 @@
{% for image in images %}
<div class ="module-list">
{% if image.chapters_set.get.notebook %}
- <a href="{% url 'tbc:ConvertNotebook' image.chapters_set.get.notebook %}"><img src="{% static 'uploads/' %}{{ image.image }}"></a>
+ <a href="{% url 'tbc:ConvertNotebook' image.chapters_set.get.notebook %}"><img src="{% static 'Python-Textbook-Companions/' %}{{ image.image }}"></a>
{% else %}
- <img src="{% static 'uploads/' %}{{ image.image }}">
+ <img src="{% static 'Python-Textbook-Companions/' %}{{ image.image }}">
{% endif %}
<center><p style="margin-top:30px;">{{ image.caption }}</p></center>
</div>