]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.5] doc: only show Share button when enabled
authorAndrew Gerrand <adg@golang.org>
Wed, 2 Sep 2015 00:46:05 +0000 (10:46 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 3 Sep 2015 03:02:53 +0000 (03:02 +0000)
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>
doc/root.html

index 121736853002e95408cf211e1448e4b0f75d563f..27dbc74ab67d360aaa9d1661a7bbdc39235a16bc 100644 (file)
@@ -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">