Skip to content

Commit

Permalink
godoc/static: show relevant test instructions on install page
Browse files Browse the repository at this point in the history
Fixes golang/go#12490

Change-Id: Ifb408f225a84b3c5daf739e1e0afc4f5540e4ebd
Reviewed-on: https://go-review.googlesource.com/18278
Reviewed-by: Russ Cox <rsc@golang.org>
  • Loading branch information
adg committed Jan 7, 2016
1 parent 542ffc7 commit 791f468
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions godoc/static/godocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,17 @@ function personalizeInstallInstructions() {
}
if (os != 'windows') {
$('#windowsInstructions').hide();
$('.testUnix').show();
$('.testWindows').hide();
} else {
if (ext != 'msi') {
$('#windowsInstallerInstructions').hide();
}
if (ext != 'zip') {
$('#windowsZipInstructions').hide();
}
$('.testUnix').hide();
$('.testWindows').show();
}

var download = "https://storage.googleapis.com/golang/" + filename;
Expand Down
4 changes: 4 additions & 0 deletions godoc/static/static.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 791f468

Please # to comment.