components/golang/patches/0001-release-branch.go1.5-doc-only-show-Share-button-when.patch
author Stephen Gaul Jr <steve.gaul@oracle.com>
Fri, 24 Jun 2016 11:30:54 -0700
changeset 6279 b8986042dd84
parent 5331 9c955076ffe3
permissions -rw-r--r--
PSARC/2016/217 Smartcard Reintroduction PSARC/2016/232 CACkey Smartcard PKCS#11 provider 22822476 Add CACKey v0.7.4 to Userland consolidation

From 00dbc5a54849f4b07f3742d50a76b073ed62c220 Mon Sep 17 00:00:00 2001
From: Andrew Gerrand <[email protected]>
Date: Wed, 2 Sep 2015 10:46:05 +1000
Subject: [PATCH 01/63] [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 <[email protected]>
Reviewed-on: https://go-review.googlesource.com/14199
Reviewed-by: Chris Broadfoot <[email protected]>
---
 doc/root.html | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/doc/root.html b/doc/root.html
index 1217368..27dbc74 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">
-- 
2.6.1