summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-03-31 22:27:25 -0700
committerSamy Pessé <samypesse@gmail.com>2014-03-31 22:27:25 -0700
commit8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23 (patch)
tree4b461eb0fd079105c6e30843ea913765b3a53950 /templates
parent642a338cb062f39628407c136892fe5f328366f9 (diff)
downloadgitbook-8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23.zip
gitbook-8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23.tar.gz
gitbook-8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23.tar.bz2
Signal and mark progress
Diffstat (limited to 'templates')
-rw-r--r--templates/includes/book/summary.html47
-rw-r--r--templates/page.html2
2 files changed, 28 insertions, 21 deletions
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html
index 4915b72..e9264b2 100644
--- a/templates/includes/book/summary.html
+++ b/templates/includes/book/summary.html
@@ -1,25 +1,32 @@
<div class="book-summary">
<ul class="summary">
- <li data-level="0">
- <a href="{{ basePath }}/README.html">Introduction</a>
- </li>
- <li>
- <a href="https://github.com/{{ githubAuthor }}" target="blank">About the author</a>
- </li>
- <li class="divider"></li>
- {% for item in summary.chapters %}
- <li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}">
- <a href="{{ basePath }}/{{ item.path }}">{{ item.title }}</a>
- {% 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 }}">
- <a href="{{ basePath }}/{{ article.path }}">{{ article.title }}</a>
- </li>
- {% endfor %}
- </ul>
- {% endif %}
+ <li>
+ <a href="https://github.com/{{ githubAuthor }}" target="blank">About the author</a>
</li>
- {% endfor %}
+ <li>
+ <a href="https://github.com/{{ githubAuthor }}/issues" target="blank">Questions and Issues</a>
+ </li>
+ <li class="divider"></li>
+ <li data-level="0">
+ <a href="{{ basePath }}/README.html"><i class="fa fa-check"></i> Introduction</a>
+ </li>
+ {% for item in summary.chapters %}
+ <li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}">
+ <a href="{{ basePath }}/{{ item.path }}">
+ <i class="fa fa-check"></i> {{ item.title }}
+ </a>
+ {% 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 }}">
+ <a href="{{ basePath }}/{{ article.path }}">
+ <i class="fa fa-check"></i> {{ article.title }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </li>
+ {% endfor %}
</ul>
</div> \ No newline at end of file
diff --git a/templates/page.html b/templates/page.html
index 43932c4..223bb87 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -4,7 +4,7 @@
{% block description %}{% endblock %}
{% block robots %}index, follow{% endblock %}
{% block content %}
-<div class="book {% if _input == "README.md" %}with-summary{% endif %}" data-github="{{ githubId }}">
+<div class="book {% if _input == "README.md" %}with-summary{% endif %}" data-github="{{ githubId }}" data-level="{{ navigation.level }}">
{% include "includes/book/header.html" %}
{% include "includes/book/summary.html" %}