| <!-- |
| Copyright 2020 The Go Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style |
| license that can be found in the LICENSE file. |
| --> |
| |
| {{define "versions"}} |
| <div class="Versions"> |
| <table> |
| <tr><th colspan="3"><h2>Versions in this module</h2></th></tr> |
| {{template "module_list" .ThisModule}} |
| {{if .IncompatibleModules}} |
| <tr><th colspan="3"><h2>Incompatible versions in this module</h2></th></tr> |
| {{template "module_list" .IncompatibleModules}} |
| {{end}} |
| </table> |
| |
| {{if .OtherModules}} |
| <h2>Other modules containing this package</h2> |
| {{range .OtherModules}} |
| <div><a href="/{{.}}">{{.}}</a></div> |
| {{end}} |
| {{end}} |
| </div> |
| {{end}} |
| |
| {{define "module_list"}} |
| {{range $major := .}} |
| {{range $i, $v := $major.Versions}} |
| <tr> |
| <td> |
| {{if eq $i 0 }}<div class="Versions-major">{{$major.Major}}</div>{{end}} |
| </td> |
| <td> |
| <a href="{{$v.Link}}">{{$v.Version}}</a> |
| </td> |
| <td> |
| <div class="Versions-commitTime">{{$v.CommitTime}}</div> |
| </td> |
| </tr> |
| {{end}} |
| {{end}} |
| {{end}} |