109 lines
2.2 KiB
Handlebars
109 lines
2.2 KiB
Handlebars
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
AAAAAAAlJSUAAGIAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAIiIiIgAAAAAAAAAgAAAAAAAAAAAAADIiIiIi
|
|
IiIjMhERERERESMyERERERERIzIREREREREjMhERIRERESMyERIiIiERIzIRESEREREjMhERERER
|
|
ESMyERERERERIzIREREREREjMiIiIiIiIiMAAAAAAAAAAAAAAAAAAAAAAAAAAIABAACAAQAAgAEA
|
|
AIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAA" rel="icon" type="image/x-icon" />
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
}
|
|
td {
|
|
padding: 0px;
|
|
}
|
|
td > * {
|
|
padding: 20px;
|
|
display: block;
|
|
}
|
|
.entry {
|
|
|
|
}
|
|
.grey {
|
|
color: #888;
|
|
text-align: right;
|
|
}
|
|
.entry_list {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
tbody tr:nth-child(odd) {
|
|
background-color: #ddd;
|
|
}
|
|
</style>
|
|
<title>Server list</title>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Server list</h1>
|
|
|
|
{{#if dev_mode}}
|
|
<div style="color: red;">Relay is in dev mode. This should never be seen in production!</div>
|
|
{{/if}}
|
|
|
|
{{#if news_url}}
|
|
<p>
|
|
<a href="{{news_url}}">News</a>
|
|
{{/if}}
|
|
|
|
<div>
|
|
|
|
<p>Connected servers: {{connected_server_count}}</p>
|
|
|
|
<p>Registered servers: {{registered_server_count}}</p>
|
|
|
|
<p>{{date_rfc3339}}</p>
|
|
|
|
{{#if servers}}
|
|
<table class="entry_list">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Last seen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{{#each servers}}
|
|
<tr>
|
|
<td><a class="entry" href="{{this.name}}/files/">{{this.display_name}}</a></td>
|
|
<td><span class="grey">{{this.last_seen}}</span></td>
|
|
</tr>
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
(No servers are registered in the config file)
|
|
{{/if}}
|
|
</div>
|
|
|
|
<h2>Admin</h2>
|
|
|
|
<p>
|
|
<a href="../unregistered_servers">Unregistered servers</a>
|
|
|
|
<p>
|
|
<a href="../audit_log">Audit log</a>
|
|
|
|
<div style="color: #888; padding-top: 1em;">
|
|
{{#if git_version}}
|
|
Git version: {{git_version}}
|
|
{{else}}
|
|
Not built from Git
|
|
{{/if}}
|
|
|
|
<p>
|
|
Rendered by PTTH relay server.
|
|
Copyright 2020-2024 "Trish" ReactorScram. Licensed under the
|
|
<a href="https://www.gnu.org/licenses/agpl-3.0.html">GNU AGPLv3.</a>
|
|
<a href="https://six-five-six-four.com/git/reactor/ptth">Download source code</a>
|
|
</p>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|