summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--got/view_tree.got4
1 files changed, 3 insertions, 1 deletions
diff --git a/got/view_tree.got b/got/view_tree.got
index 6cf1cf7..09f564b 100644
--- a/got/view_tree.got
+++ b/got/view_tree.got
@@ -1,11 +1,13 @@
<!-- -*- Mode: HTML -*- -->
<h1>Index of {{.path | html}}</h1>
<table>
+ {{if ne .path "/"}}
<tr>
- <td><a href="..">..</a></td>
+ <td><a href="..">parent directory</a></td>
<td>tree</td>
<td>-</td>
</tr>
+ {{end}}
{{range $name, $file := .files}}
<tr>
<td><a href="{{$name | html}}">{{$name | html}}</a></td>