1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:00:09 -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}} {{range .List}}
<tr> <tr>
<td> <td>
{{if $.DirFlat}}
<a href="{{html .Path}}">{{html .Path}}</a>
{{else}}
{{repeat `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a> {{repeat `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a>
{{end}}
</td> </td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td style="width: auto">{{html .Synopsis}}</td> <td style="width: auto">{{html .Synopsis}}</td>