blob: 81de88d28011c2d0953e2324f07cd12c6a1a82f1 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
<html>
<head>
<style>
html {
background: #222;
color: antiquewhite;
font-family: monospace;
}
table {
border-collapse: collapse;
}
th {
text-align: left;
border-bottom: 1px solid white;
}
td {
max-width: 1000px;
text-overflow: ellipsis;
overflow: hidden;
padding-right: 10px;
padding-bottom: 3px;
margin: 0;
}
tr > td:first-child {
min-width: 500px;
}
tr:hover {
background-color: #333;
}
a {
color: orange;
}
div {
float: right;
}
</style>
</head>
<body>
<h1>Index of {{.CurrentPath}}</h1>
<hr/>
<a style="float: right;" href="/ai_execute">Exec</a>
<table>
<!--<tr>-->
<!--<th>File</th>-->
<!--[><th>Export</th><]-->
<!--<th>Modtime</th>-->
<!--</tr>-->
<tr>
<td>
<a href="{{.CurrentPath}}">.</a>
</td>
<td>
[<a href="http://localhost:8080/gzarchive{{.CurrentPath}}">gzip</a>]
[<a href="/tararchive{{.CurrentPath}}">tar</a>]
</td>
<td></td>
</tr>
{{if ne .CurrentPath "/"}}
<tr>
<td>
<a href="{{.Parent}}">..</a>
</td>
<td>
[<a href="/gzarchive{{.Parent}}">gzip</a>]
[<a href="/tararchive{{.Parent}}">tar</a>]
</td>
<td></td>
</tr>
{{end}}
{{range .Files}}
<tr>
<td>
{{if .Info.IsDir}}
<a href="{{.Path}}">{{.Info.Name}}/</a>
{{else}}
<a href="{{.Path}}">{{.Info.Name}}</a>
{{end}}
</td>
<td>
{{if .Info.IsDir}}
[<a href="/gzarchive{{.Path}}">gzip</a>]
[<a href="/tararchive{{.Path}}">tar</a>]
{{end}}
</td>
<td>{{format .Info.ModTime}}</td>
</tr>
{{end}}
</table>
</body>
</html>
|