ptth/ptth_handlebars/file_server_dir.html

45 lines
706 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;
}
.entry {
display: inline-block;
padding: 10px;
min-width: 50%;
text-decoration: none;
}
.entry_list div:nth-child(odd) {
background-color: #ddd;
}
</style>
<title>{{path}} {{server_name}}</title>
</head>
<body>
<p>{{server_name}}</p>
<p>{{path}}</p>
<div class="entry_list">
<div>
<a class="entry" href="../">📁 ../</a>
</div>
{{#each entries}}
<div>
<a class="entry" href="{{this.encoded_file_name}}{{this.trailing_slash}}">
{{this.icon}} {{this.file_name}}{{this.trailing_slash}}
</a>
</div>
{{/each}}
</div>
</body>
</html>