summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-01 18:57:48 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-01 18:57:48 -0700
commit520ea847da6fef3c17c040e495b14553feb8e6a4 (patch)
tree887b6336ec22458f35a4ee40960a177871730b83 /templates
parente77e3b724e5875b698e27c3cea32c6f259161cc1 (diff)
downloadgitbook-520ea847da6fef3c17c040e495b14553feb8e6a4.zip
gitbook-520ea847da6fef3c17c040e495b14553feb8e6a4.tar.gz
gitbook-520ea847da6fef3c17c040e495b14553feb8e6a4.tar.bz2
Make chapter in progress bar clickable
Diffstat (limited to 'templates')
-rw-r--r--templates/page.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/page.html b/templates/page.html
index 6d548d0..01868cb 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -15,7 +15,7 @@
</div>
<div class="chapters">
{% for p in progress.chapters %}
- <div class="chapter {% if p.done %}done{% endif %}" data-progress="{{ p.level }}" style="left: {{ p.percent }}%;"></div>
+ <a href="{{ basePath }}/{{ p.path }}" title="{{ p.title }}" class="chapter {% if p.done %}done{% endif %} {% if p.level.length == 1 %}new-chapter{% endif %}" data-progress="{{ p.level }}" style="left: {{ p.percent }}%;"></a>
{% endfor %}
</div>
</div>