1
0
mirror of https://github.com/golang/go synced 2024-11-05 16:16:11 -07:00

godoc/static: show relevant test instructions on install page

Fixes golang/go#12490

Change-Id: Ifb408f225a84b3c5daf739e1e0afc4f5540e4ebd
Reviewed-on: https://go-review.googlesource.com/18278
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Andrew Gerrand 2016-01-07 10:52:28 +11:00
parent 542ffc7e75
commit 791f468ced
2 changed files with 8 additions and 0 deletions

View File

@ -273,6 +273,8 @@ function personalizeInstallInstructions() {
}
if (os != 'windows') {
$('#windowsInstructions').hide();
$('.testUnix').show();
$('.testWindows').hide();
} else {
if (ext != 'msi') {
$('#windowsInstallerInstructions').hide();
@ -280,6 +282,8 @@ function personalizeInstallInstructions() {
if (ext != 'zip') {
$('#windowsZipInstructions').hide();
}
$('.testUnix').hide();
$('.testWindows').show();
}
var download = "https://storage.googleapis.com/golang/" + filename;

View File

@ -842,6 +842,8 @@ function personalizeInstallInstructions() {
}
if (os != 'windows') {
$('#windowsInstructions').hide();
$('.testUnix').show();
$('.testWindows').hide();
} else {
if (ext != 'msi') {
$('#windowsInstallerInstructions').hide();
@ -849,6 +851,8 @@ function personalizeInstallInstructions() {
if (ext != 'zip') {
$('#windowsZipInstructions').hide();
}
$('.testUnix').hide();
$('.testWindows').show();
}
var download = "https://storage.googleapis.com/golang/" + filename;