aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2012-02-22 09:25:56 +1100
committerAndrew Gerrand <adg@golang.org>2012-02-22 09:25:56 +1100
commit89fd4dd766780214ebe7b3074da0c58d2565281d (patch)
tree78ca96cf4badfa1b718859c0913cb1a5849f6162
parent1a1940c8703351ded9b16d29cefb79539b289088 (diff)
downloadgo-89fd4dd766780214ebe7b3074da0c58d2565281d.tar.gz
go-89fd4dd766780214ebe7b3074da0c58d2565281d.zip
godoc: support flat directory view again
R=bradfitz CC=golang-dev https://golang.org/cl/5690058
-rw-r--r--lib/godoc/package.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html
index 841ad8df0f..01043b05f2 100644
--- a/lib/godoc/package.html
+++ b/lib/godoc/package.html
@@ -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>