summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-25 11:44:55 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-25 11:44:55 +0100
commit8020d9045b00a9067171344aeaf24ba90c5f3023 (patch)
treec7df325016b23b1fd0f602eba9c19268be568bd3 /docs
parent34bb52a051f0e9b9262fd836cff384050e9c970d (diff)
downloadgitbook-8020d9045b00a9067171344aeaf24ba90c5f3023.zip
gitbook-8020d9045b00a9067171344aeaf24ba90c5f3023.tar.gz
gitbook-8020d9045b00a9067171344aeaf24ba90c5f3023.tar.bz2
Improve header with edit button and version
Diffstat (limited to 'docs')
-rw-r--r--docs/_layouts/website/page.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/_layouts/website/page.html b/docs/_layouts/website/page.html
index edce251..a673a48 100644
--- a/docs/_layouts/website/page.html
+++ b/docs/_layouts/website/page.html
@@ -1,5 +1,14 @@
{% extends template.theme %}
+{% block header_nav %}
+<a href="https://github.com/GitbookIO/gitbook/blob/master/docs/{{ file.path }}" target="_blank" class="btn btn-link pull-right hidden-xs">
+ <i class="octicon octicon-mark-github"></i> Edit on GitHub
+</a>
+<a href="https://github.com/GitbookIO/gitbook/blob/master/CHANGES.md" target="_blank" class="btn btn-link pull-right hidden-xs">
+ {{ book.version }}
+</a>
+{% endblock %}
+
{% block page %}
{{ super() }}
<hr>