Commit 89fd4dd7 authored by Andrew Gerrand's avatar Andrew Gerrand

godoc: support flat directory view again

R=bradfitz
CC=golang-dev
https://golang.org/cl/5690058
parent 1a1940c8
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment