1
0
mirror of https://github.com/golang/go synced 2024-11-21 12:04:41 -07:00

godoc: support flat directory view again

R=bradfitz
CC=golang-dev
https://golang.org/cl/5690058
This commit is contained in:
Andrew Gerrand 2012-02-22 09:25:56 +11:00
parent 1a1940c870
commit 89fd4dd766

View File

@ -168,7 +168,11 @@
{{range .List}}
<tr>
<td>
{{repeat `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a>
{{if $.DirFlat}}
<a href="{{html .Path}}">{{html .Path}}</a>
{{else}}
{{repeat `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a>
{{end}}
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td style="width: auto">{{html .Synopsis}}</td>