File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
< ol class ="path-list ">
18
18
{{range .Paths}}
19
- < li > < a href ="{{.Path}} "> {{html .Name}}</ a > </ li >
19
+ < li > < a href ="{{.Path}} "> {{.Name}}</ a > </ li >
20
20
{{end}}
21
21
</ ol >
22
22
49
49
{{$isDir := .IsDir}}
50
50
< li >
51
51
< a href ="{{$subItemPrefix}}{{.Name}}{{if $isDir}}/{{end}} " class ="item {{if $isDir}}item-dir{{else}}item-file{{end}} ">
52
- < span class ="name "> {{html .Name}}{{if $isDir}}/{{end}}</ span >
52
+ < span class ="name "> {{.Name}}{{if $isDir}}/{{end}}</ span >
53
53
< span class ="size "> {{if not $isDir}}{{fmtSize .Size}}{{end}}</ span >
54
54
< span class ="time "> {{fmtTime .ModTime}}</ span >
55
55
</ a >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const pageTplStr = `
24
24
<body>
25
25
<ol class="path-list">
26
26
{{range .Paths}}
27
- <li><a href="{{.Path}}">{{html .Name}}</a></li>
27
+ <li><a href="{{.Path}}">{{.Name}}</a></li>
28
28
{{end}}
29
29
</ol>
30
30
{{if .CanUpload}}
@@ -54,7 +54,7 @@ const pageTplStr = `
54
54
{{$isDir := .IsDir}}
55
55
<li>
56
56
<a href="{{$subItemPrefix}}{{.Name}}{{if $isDir}}/{{end}}" class="item {{if $isDir}}item-dir{{else}}item-file{{end}}">
57
- <span class="name">{{html .Name}}{{if $isDir}}/{{end}}</span>
57
+ <span class="name">{{.Name}}{{if $isDir}}/{{end}}</span>
58
58
<span class="size">{{if not $isDir}}{{fmtSize .Size}}{{end}}</span>
59
59
<span class="time">{{fmtTime .ModTime}}</span>
60
60
</a>
You can’t perform that action at this time.
0 commit comments