commit 3f05052c719c6d9a9c5afc72aa2f736e105986ad

Author: Doug Hellmann <>

tree view: format preamble consistently with blob view

Wrap the ref in paragraph tags so the vertical alignment is consistent
with the content in the blob.html template, so that when the user
clicks through from a directory listing to an individual file the
header section of the page does not appear to change sizes.

Remove the extra path value, since it is the same as the parent path.

Signed-off-by: Doug Hellmann <>

 include/tree.html | 6 +-----

diff --git a/include/tree.html b/include/tree.html
index fd8aaab9204b2ea6a5f826bd15910fba84ee9e43..ce6a716c5568394bc00abeda4b8190acd1215d60 100644
--- a/include/tree.html
+++ b/include/tree.html
@@ -27,13 +27,9 @@     
-ref: {{ .RefName }}
+<p>ref: {{ .RefName }}</p>
 <p><a href="/{{ $repo }}/tree/{{ $ref }}/{{ .ParentPath }}">{{ .ParentPath }}</a>/{{ $subtree}}</p>
-    path: {{ .Path }}
     {{ range .Files }}