blob: e358f441418e8921b0c77fff099fa4ecc3596014 [file] [log] [blame]
<!--
Copyright 2019 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 "details_content"}}
{{if .Packages}}
<table class="Directories">
<tr>
<th>Path</th>
<th>Synopsis</th>
</tr>
{{range .Packages}}
<tr>
<td>
<a href="{{.URL}}">{{.PathAfterDirectory}}</a>
</td>
<td>{{.Synopsis}}</td>
</tr>
{{end}}
{{range .NestedModules}}
<tr>
<td>
<span class="Directories-moduleTag">MODULE</span>
<a href="/{{.ModulePath}}">{{.ModulePath}}</a>
</td>
<td></td>
</tr>
{{end}}
</table>
{{else}}
{{template "empty_content" "There are no packages in this directory!"}}
{{end}}
{{end}}