+5
appview/pages/funcmap.go
+5
appview/pages/funcmap.go
···
7
"html/template"
8
"log"
9
"math"
10
+
"net/url"
11
"path/filepath"
12
"reflect"
13
"strings"
···
181
},
182
"cssContentHash": CssContentHash,
183
"fileTree": filetree.FileTree,
184
+
"pathUnescape": func(s string) string {
185
+
u, _ := url.PathUnescape(s)
186
+
return u
187
+
},
188
}
189
}
190
+2
-2
appview/pages/templates/repo/blob.html
+2
-2
appview/pages/templates/repo/blob.html
+2
-2
appview/pages/templates/repo/tree.html
+2
-2
appview/pages/templates/repo/tree.html
···
1
-
{{ define "title"}}{{ range .BreadCrumbs }}{{ index . 0}}/{{ end }} at {{ .Ref }} · {{ .RepoInfo.FullName }}{{ end }}
2
3
4
{{ define "extrameta" }}
···
26
<div class="flex flex-col md:flex-row md:justify-between gap-2">
27
<div id="breadcrumbs" class="overflow-x-auto whitespace-nowrap text-gray-400 dark:text-gray-500">
28
{{ range .BreadCrumbs }}
29
-
<a href="{{ index . 1}}" class="text-bold text-gray-500 dark:text-gray-400 {{ $linkstyle }}">{{ index . 0 }}</a> /
30
{{ end }}
31
</div>
32
<div id="dir-info" class="text-gray-500 dark:text-gray-400 text-xs md:text-sm flex flex-wrap items-center gap-1 md:gap-0">
···
1
+
{{ define "title"}}{{ range .BreadCrumbs }}{{ pathUnescape (index . 0)}}/{{ end }} at {{ .Ref }} · {{ .RepoInfo.FullName }}{{ end }}
2
3
4
{{ define "extrameta" }}
···
26
<div class="flex flex-col md:flex-row md:justify-between gap-2">
27
<div id="breadcrumbs" class="overflow-x-auto whitespace-nowrap text-gray-400 dark:text-gray-500">
28
{{ range .BreadCrumbs }}
29
+
<a href="{{ index . 1}}" class="text-bold text-gray-500 dark:text-gray-400 {{ $linkstyle }}">{{ pathUnescape (index . 0) }}</a> /
30
{{ end }}
31
</div>
32
<div id="dir-info" class="text-gray-500 dark:text-gray-400 text-xs md:text-sm flex flex-wrap items-center gap-1 md:gap-0">