summaryrefslogtreecommitdiffstats
path: root/templates/includes
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-03-31 23:02:43 -0700
committerSamy Pessé <samypesse@gmail.com>2014-03-31 23:02:43 -0700
commitd36dfee40b44471f054e4664446a883ae48cf6ab (patch)
tree6450594386067bfd3ca5964204e8f06df3b26304 /templates/includes
parenteed1dfb243fb1fff9755eb73722e89a225160a1e (diff)
downloadgitbook-d36dfee40b44471f054e4664446a883ae48cf6ab.zip
gitbook-d36dfee40b44471f054e4664446a883ae48cf6ab.tar.gz
gitbook-d36dfee40b44471f054e4664446a883ae48cf6ab.tar.bz2
Mark as disabled articles not yet finished in the summary
Diffstat (limited to 'templates/includes')
-rw-r--r--templates/includes/book/summary.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html
index 41586b7..358b4fc 100644
--- a/templates/includes/book/summary.html
+++ b/templates/includes/book/summary.html
@@ -12,16 +12,24 @@
</li>
{% for item in summary.chapters %}
<li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}">
+ {% if item.path %}
<a href="{{ basePath }}/{{ item.path }}">
<i class="fa fa-check"></i> <b>{{ item.level }})</b> {{ item.title }}
</a>
+ {% else %}
+ <span><b>{{ item.level }})</b> {{ item.title }}</span>
+ {% endif %}
{% if item.articles.length > 0 %}
<ul class="articles">
{% for article in item.articles %}
<li {% if article._path == _input %}class="active"{% endif %} data-level="{{ article.level }}">
+ {% if article.path %}
<a href="{{ basePath }}/{{ article.path }}">
<i class="fa fa-check"></i> <b>{{ article.level }})</b> {{ article.title }}
</a>
+ {% else %}
+ <span><b>{{ article.level }})</b> {{ article.title }}</span>
+ {% endif %}
</li>
{% endfor %}
</ul>