aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2015-09-02 10:46:05 +1000
committerAndrew Gerrand <adg@golang.org>2015-09-03 03:02:53 +0000
commit00dbc5a54849f4b07f3742d50a76b073ed62c220 (patch)
tree577da4d5e2c84b95745b97f2226a1a79e0bdbf55
parentbb03defe933c89fee44be675d7aa0fbd893ced30 (diff)
downloadgo-00dbc5a54849f4b07f3742d50a76b073ed62c220.tar.gz
go-00dbc5a54849f4b07f3742d50a76b073ed62c220.zip
[release-branch.go1.5] doc: only show Share button when enabled
Change-Id: I571965bc38a8b1060642a942b898797327f0c19c Reviewed-on: https://go-review.googlesource.com/14195 Reviewed-by: Andrew Gerrand <adg@golang.org> Reviewed-on: https://go-review.googlesource.com/14199 Reviewed-by: Chris Broadfoot <cbro@golang.org>
-rw-r--r--doc/root.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/root.html b/doc/root.html
index 1217368530..27dbc74ab6 100644
--- a/doc/root.html
+++ b/doc/root.html
@@ -1,5 +1,6 @@
<!--{
- "Path": "/"
+ "Path": "/",
+ "Template": true
}-->
<div class="left">
@@ -25,7 +26,9 @@ Hello, 世界
</div>
<div class="buttons">
<a class="run" href="#" title="Run this code [shift-enter]">Run</a>
+{{if $.Share}}
<a class="share" href="#" title="Share this code">Share</a>
+{{end}}
<a class="tour" href="//tour.golang.org/" title="Learn Go from your browser">Tour</a>
</div>
<div class="toys">