diff options
Diffstat (limited to 'theme/templates/includes/book/progress.html')
-rw-r--r-- | theme/templates/includes/book/progress.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/theme/templates/includes/book/progress.html b/theme/templates/includes/book/progress.html new file mode 100644 index 0000000..176c95f --- /dev/null +++ b/theme/templates/includes/book/progress.html @@ -0,0 +1,10 @@ +<div class="book-progress"> + <div class="bar"> + <div class="inner" style="width: {{ progress.percent }}%;min-width: {{ progress.prevPercent }}%;"></div> + </div> + <div class="chapters"> + {% for p in progress.chapters %} + <a href="{{ basePath }}/{{ p.path|mdLink }}" 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>
\ No newline at end of file |