92 lines
1.9 KiB
HTML
92 lines
1.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<title>Files in {{.Name}}</title>
|
||
|
<style>
|
||
|
html {
|
||
|
background: #101010;
|
||
|
color: #f0f0f0;
|
||
|
font-family: 'Monaspace Argon', monospace;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
width: min(calc(100% - 1em), 1000px);
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
table {
|
||
|
width: 100%;
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
tr:hover {
|
||
|
background-color: #80808040;
|
||
|
}
|
||
|
|
||
|
th {
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
td {
|
||
|
width: 1%;
|
||
|
max-width: 500px;
|
||
|
padding: .2em 0;
|
||
|
}
|
||
|
|
||
|
table a {
|
||
|
display: block;
|
||
|
line-break: anywhere;
|
||
|
text-overflow: ellipsis;
|
||
|
overflow: hidden;
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
color: #b7fd49;
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
a:hover {
|
||
|
color: white;
|
||
|
text-decoration: underline;
|
||
|
}
|
||
|
|
||
|
footer {
|
||
|
padding: 1em 0;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<main>
|
||
|
<h1>Files in {{.Name}}</h1>
|
||
|
<hr>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Size</th>
|
||
|
<th>Modified</th>
|
||
|
</tr>
|
||
|
{{if not .Root}}
|
||
|
<tr>
|
||
|
<td><a href="./..">../</a></td>
|
||
|
<td>—</td>
|
||
|
<td>—</td>
|
||
|
</tr>
|
||
|
{{end}}
|
||
|
{{range .Files}}
|
||
|
<tr>
|
||
|
<td><a href="{{.URI}}">{{.Name}}</a></td>
|
||
|
<td>{{if .IsDir}}—{{else}}{{.Size}}{{end}}</td>
|
||
|
<td>{{.ModifiedDate}}</td>
|
||
|
</tr>
|
||
|
{{end}}
|
||
|
</table>
|
||
|
<hr>
|
||
|
</main>
|
||
|
<footer>
|
||
|
<em>made with <span aria-label="love">♥</span> by ari, 2025 <a href="https://git.arimelody.me/ari/indir" target="_blank">[source]</a></em>
|
||
|
</footer>
|
||
|
</body>
|
||
|
</html>
|