ptth/handlebars/relay/relay_server_list.html

62 lines
891 B
HTML
Raw Normal View History

2020-10-31 20:46:38 +00:00
<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;
2020-10-31 20:46:38 +00:00
}
td {
padding: 0px;
}
td > * {
2020-10-31 20:46:38 +00:00
padding: 20px;
display: block;
}
.entry {
2020-10-31 20:46:38 +00:00
}
.grey {
color: #888;
text-align: right;
}
.entry_list {
width: 100%;
border-collapse: collapse;
}
tbody tr:nth-child(odd) {
2020-10-31 20:46:38 +00:00
background-color: #ddd;
}
</style>
<title>Server list</title>
</head>
<body>
<h1>Server list</h1>
{{#if servers}}
<table class="entry_list">
<thead>
<tr>
<th>Name</th>
<th>Last seen</th>
</tr>
</thead>
<tbody>
2020-10-31 20:46:38 +00:00
{{#each servers}}
<tr>
<td><a class="entry" href="{{this.path}}/files/">{{this.name}}</a></td>
<td><span class="grey">{{this.last_seen}}</span></td>
</tr>
2020-10-31 20:46:38 +00:00
{{/each}}
</tbody>
</table>
2020-10-31 20:46:38 +00:00
{{else}}
(No servers have reported since this relay started)
2020-10-31 20:46:38 +00:00
{{/if}}
</body>
</html>