diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-01 02:48:00 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-01 02:48:00 -0700 |
commit | 1e719cf77370141e849b4cb026cc12c9488c346d (patch) | |
tree | e811d87d16407be690082429151786b77cbdb952 /templates | |
parent | c66b37d91c43180dd1a2a1ef36a5637cf3281f2a (diff) | |
download | gitbook-1e719cf77370141e849b4cb026cc12c9488c346d.zip gitbook-1e719cf77370141e849b4cb026cc12c9488c346d.tar.gz gitbook-1e719cf77370141e849b4cb026cc12c9488c346d.tar.bz2 |
Improve footer navigation on mobile
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/page.html b/templates/page.html index ffebbfd..424eded 100644 --- a/templates/page.html +++ b/templates/page.html @@ -37,7 +37,11 @@ <a href="{{ basePath }}/{{ navigation.next.path }}" class="navigation-link">Start this book</a> {% else %} {% if navigation.next %} - <a href="{{ basePath }}/{{ navigation.next.path }}" class="navigation-link next">Next: <span>{{ navigation.next.title }}</span></a> + {% if navigation.next.path %} + <a href="{{ basePath }}/{{ navigation.next.path }}" class="navigation-link next">Next<span>: {{ navigation.next.title }}</span></a> + {% else %} + <div class="navigation-link coming-soon">Coming soon</div> + {% endif %} {% else %} <div class="navigation-link finished">Finished!</div> {% endif %} |