diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-15 00:16:25 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-15 00:16:25 -0500 |
commit | 9014a7f799373f7760436a4405591c21f3a4f709 (patch) | |
tree | 4326957c1ef78049c9d29ae548db52e8d754a071 | |
parent | 5e1e95852821e138caf20c3f8ee23e3941e42bbc (diff) |
only programmers know what .. means, say parent directory
-rw-r--r-- | got/view_tree.got | 4 |
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> |