summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorTrupti Rajesh Kini2017-03-03 12:53:49 +0530
committerGitHub2017-03-03 12:53:49 +0530
commitce0c1a3409e2e4680cbd3d8fe0c912f54b3bfa1f (patch)
treec2881c858ad28d0677bae6a4325c201a0c28418d /tbc/templates
parenta78b3a146e06851e8d7e8893f1ddf2999261cf6a (diff)
downloadPython-TBC-Interface-ce0c1a3409e2e4680cbd3d8fe0c912f54b3bfa1f.tar.gz
Python-TBC-Interface-ce0c1a3409e2e4680cbd3d8fe0c912f54b3bfa1f.tar.bz2
Python-TBC-Interface-ce0c1a3409e2e4680cbd3d8fe0c912f54b3bfa1f.zip
tooltip for screenshots
Diffstat (limited to 'tbc/templates')
-rw-r--r--tbc/templates/tbc/book-details.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/tbc/templates/tbc/book-details.html b/tbc/templates/tbc/book-details.html
index c282430..9814434 100644
--- a/tbc/templates/tbc/book-details.html
+++ b/tbc/templates/tbc/book-details.html
@@ -36,9 +36,13 @@ function redirectToIpynb(notebook)
<center><h3>{{ book.title }}</h3></center>
<div class="row-fluid">
{% for image in images %}
+<span class="showonhover">
<div class ="module-list">
{% if image.chapters_set.get.notebook %}
- <a href="{% url 'tbc:convert_notebook' image.chapters_set.get.notebook %}"><img src="{% static 'Python-Textbook-Companions/' %}{{ image.image }}"></a>
+ <a href="{% url 'tbc:convert_notebook' image.chapters_set.get.notebook %}"><img src="{% static 'Python-Textbook-Companions/' %}{{ image.image }}"></a></span>
+ <span class="hovertext">
+ Click to view -{{ image.chapters_set.get.name }}
+ </span>
{% else %}
<img src="{% static 'Python-Textbook-Companions/' %}{{ image.image }}">
{% endif %}