summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-05-23 21:48:04 +0200
committerSamy Pessé <samypesse@gmail.com>2014-05-23 21:48:04 +0200
commitaed5befa483fe0ac14d1ec1693378728512ffd29 (patch)
tree134e90c22a94acd3f00e75662aa73da163e189b0
parent8e37da672d5e0589606e7b482e81f8a3e266acb1 (diff)
downloadgitbook-aed5befa483fe0ac14d1ec1693378728512ffd29.zip
gitbook-aed5befa483fe0ac14d1ec1693378728512ffd29.tar.gz
gitbook-aed5befa483fe0ac14d1ec1693378728512ffd29.tar.bz2
Fix display of divider in lateral menu
-rw-r--r--theme/templates/includes/book/summary.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/theme/templates/includes/book/summary.html b/theme/templates/includes/book/summary.html
index 02fe2a7..b4859fc 100644
--- a/theme/templates/includes/book/summary.html
+++ b/theme/templates/includes/book/summary.html
@@ -3,25 +3,29 @@
<input type="text" placeholder="Search" class="form-control" />
</div>
<ul class="summary">
+ {% set _divider = false %}
{% if options.links.about !== false && (options.links.about || githubId) %}
+ {% set _divider = true %}
<li>
<a href="{{ options.links.about|default(githubHost+githubAuthor) }}" target="blank" class="author-link">About the author</a>
</li>
{% endif %}
{% if options.links.issues !== false && (options.links.issues || githubId) %}
+ {% set _divider = true %}
<li>
<a href="{{ options.links.issues|default(githubHost+githubId+"/issues") }}" target="blank"class="issues-link">Questions and Issues</a>
</li>
{% endif %}
{% if options.links.contribute !== false && (options.links.contribute || githubId) %}
+ {% set _divider = true %}
<li>
<a href="{{ options.links.contribute|default(githubHost+githubId+"/edit/master/"+_input) }}" target="blank" class="contribute-link">Edit and Contribute</a>
</li>
{% endif %}
- {% if options.links.contribute || options.links.issues || options.links.about %}
+ {% if _divider %}
<li class="divider"></li>
{% endif %}