2024-09-19 10:28:23 -03:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>dir listing</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 24px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-listing {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-listing th,
|
|
|
|
.file-listing td {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
padding: 12px;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-listing th {
|
|
|
|
background-color: #333;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-listing tr:nth-child(even) {
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-listing tr:hover {
|
|
|
|
background-color: #f1f1f1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-listing td a {
|
|
|
|
color: #0288d1;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-listing td a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<h1>{{ .URL }}</h1>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<table class="file-listing">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2024-10-16 22:19:47 -03:00
|
|
|
<th>Time Uploaded</th>
|
2024-09-19 10:28:23 -03:00
|
|
|
<th>Size</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Files}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{.Path}}">{{.Name}}</a>
|
|
|
|
</td>
|
2024-10-16 22:19:47 -03:00
|
|
|
<td>{{.TimeUploaded}}</td>
|
2024-09-19 10:28:23 -03:00
|
|
|
<td>{{.FormattedSize}}</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|