aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..691de8e
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,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>