aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 409368b1348bccd15496a258c316345aa52a5205 (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
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>Index of {{ .Path }}</title>
<style type="text/css">
	body { background-color: #F5F5F5; }
	h2#title { margin-bottom: 12px; }
	a, a:active { text-decoration: none; color: blue; }
	a:visited { color: #48468F; }
	a:hover, a:focus { text-decoration: underline; color: red; }
	table { margin-left: 12px; }
	th, td { font: 90% monospace; text-align: left; }
	th { font-weight: bold; padding-right: 14px; padding-bottom: 3px; }
	td { padding-right: 14px; }
	td.size, th#size { text-align: right; }
	#dirlist { background-color: white; border-top: 1px solid #646464; border-bottom: 1px solid #646464; padding-top: 10px; padding-bottom: 14px; }
	div#footer { font: 90% monospace; color: #787878; padding-top: 4px; }
	a.sortheader { color: black; text-decoration: none; display: block; }
	span.sortarrow { text-decoration: none; }
</style>
</head>
<body>
<h2>Index of {{ .Path }}</h2>
<div id="dirlist">
<table summary="Directory Listing" cellpadding="0" cellspacing="0" class="sort">
  <tr>
    <th>Name</th>
    <th>Last Modified</th>
    <th>Size</th>
  </tr>
  <tr ><td><a href="../">Parent Directory</a></td><td>-</td><td>-</td></tr>
  {{- range $f := .Contents -}}
  <tr>
    <td><a href="{{- $f.Key -}}">{{- $f.Key -}}</a></td>
    <td>{{- formatLastModified $f.LastModified -}}</td>
    <td>{{- prettyByteSize $f.Size -}}</td>
  </tr>
  {{- end -}}
  {{- range $f := .CommonPrefixes -}}
  <tr>
    <td><a href="{{- $f.Prefix -}}">{{- $f.Prefix -}}</a></td>
    <td>-</td>
    <td>-</td>
  </tr>
  {{- end -}}
</table>
</div>
<div id="footer"><a href="https://git.jordan.im/pipkin/">pipkin</a></div>
</body>
</html>