ptth/handlebars/server/file_server_dir.html

66 lines
969 B
HTML
Raw Normal View History

<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
2020-11-02 19:17:22 +00:00
font-family: sans-serif;
}
td {
padding: 0;
}
td > * {
padding: 10px;
display: block;
}
.entry {
text-decoration: none;
}
.grey {
color: #888;
text-align: right;
}
.entry_list {
width: 100%;
border-collapse: collapse;
}
tbody tr:nth-child(odd) {
background-color: #ddd;
}
</style>
<title>{{path}} {{server_name}}</title>
</head>
<body>
<p>{{server_name}}</p>
<p>{{path}}</p>
<table class="entry_list">
<thead>
<tr>
<th>Name</th>
<th>Size</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="entry" href="../">📁 ../</a></td>
<td></td>
</tr>
{{#each entries}}
<tr>
<td><a class="entry" href="{{this.encoded_file_name}}{{this.trailing_slash}}">
{{this.icon}} {{this.file_name}}{{this.trailing_slash}}</a></td>
<td><span class="grey">{{this.size}}</span></td>
</tr>
{{/each}}
</tbody>
</table>
</body>
</html>