From c86c26a0569589c4b468196eb500896bda944446 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Mon, 11 Apr 2016 19:39:35 +0200 Subject: [PATCH] Added "go up" link to browse template In order to have directly a link within the browse listing I have added a link to the top of the table to get one level up in the tree. Added that after a chat with @mholt. Signed-off-by: Thomas Boerger --- caddy/setup/browse.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/caddy/setup/browse.go b/caddy/setup/browse.go index 13d42e54..63acaddd 100644 --- a/caddy/setup/browse.go +++ b/caddy/setup/browse.go @@ -210,7 +210,8 @@ td:first-child svg { position: absolute; } -td .name { +td .name, +td .goup { margin-left: 1.75em; word-break: break-all; overflow-wrap: break-word; @@ -342,6 +343,17 @@ footer { {{end}} + {{if .CanGoUp}} + + + + Go up + + + — + — + + {{end}} {{range .Items}}