summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorHardik Ghaghada2015-03-13 15:28:12 +0530
committerHardik Ghaghada2015-03-13 15:28:12 +0530
commit8fc4844775edd500fd11508043d284048e1add96 (patch)
tree68aa99bd49bd0923c88fed10f263338ed33baff7 /tbc/templates
parentcb03fbb819a28ef464c9d47b7f01d59b3119571d (diff)
parent707af515ef317adc74d6ad9f0c912eb598c5ff9f (diff)
downloadPython-TBC-Interface-8fc4844775edd500fd11508043d284048e1add96.tar.gz
Python-TBC-Interface-8fc4844775edd500fd11508043d284048e1add96.tar.bz2
Python-TBC-Interface-8fc4844775edd500fd11508043d284048e1add96.zip
Merge pull request #15 from FOSSEE/CleanURL
Clean url
Diffstat (limited to 'tbc/templates')
-rwxr-xr-xtbc/templates/base.html2
-rw-r--r--tbc/templates/tbc/book-details.html4
-rw-r--r--tbc/templates/tbc/book-review-details.html4
3 files changed, 5 insertions, 5 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index d246436..ca7bfc0 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -295,7 +295,7 @@
<div style="clear:both;"></div>
{% for item in items %}
<div class ="module-list">
- <a href="{% url 'tbc:BookDetails' item.book.id %}"><img src="{% static 'uploads/' %}{{ item.image.image }}"></a>
+ <a href="{% url 'tbc:BookDetails' item.book.id %}"><img src="{% static 'Python-Textbook-Companions/' %}{{ item.image.image }}"></a>
<center><a href="{% url 'tbc:BookDetails' item.book.id %}">{{ item.book.title }}</a></center>
</div>
{% endfor %}
diff --git a/tbc/templates/tbc/book-details.html b/tbc/templates/tbc/book-details.html
index dc8c272..99c8ba6 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 '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>
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>