Author: Doug Hellmann <doug@doughellmann.com>
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 <doug@doughellmann.com>
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 @@ </div> </nav> -ref: {{ .RefName }} +<p>ref: {{ .RefName }}</p> <p><a href="/{{ $repo }}/tree/{{ $ref }}/{{ .ParentPath }}">{{ .ParentPath }}</a>/{{ $subtree}}</p> - -<p> - path: {{ .Path }} -</p> <table> {{ range .Files }}