blob: 691de8e60283a3218907056cf09a91609620d6dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family: monospace;
border-collapse: collapse;
}
td, th {
border: 0px solid #dddddd;
text-align: left;
padding: 2px;
padding-right: 1em;
}
</style>
</head>
<body>
<h2>Index of {{ .Path }}</h2>
<table>
<tr>
<th>Name</th>
<th>Last Modified</th>
<th>Size</th>
</tr>
{{- range $f := .Contents -}}
<tr>
<td><a href="{{- $f.Key -}}">{{- $f.Key -}}</a></td>
<td>{{- $f.LastModified -}}</td>
<td>{{- $f.Size -}}</td>
</tr>
{{- end -}}
{{- range $f := .CommonPrefixes -}}
<tr>
<td><a href="{{- $f.Prefix -}}">{{- $f.Prefix -}}</a></td>
</tr>
{{- end -}}
</table>
</body>
</html>
|