33 lines
678 B
HTML
33 lines
678 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<title>TS3 Viewer</title>
|
||
|
|
||
|
<link rel="stylesheet" href="static/styles.css">
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div class="content">
|
||
|
<h2>Online Members</h2>
|
||
|
<ul>
|
||
|
{{range .Clients}}
|
||
|
<li>{{.Nickname}}</li>
|
||
|
{{end}}
|
||
|
</ul>
|
||
|
<h2>{{.Server.Name}}</h2>
|
||
|
<!-- <small>{{.Server.Version}}</small> -->
|
||
|
{{$clients := .Clients}}
|
||
|
{{range .Channels}}
|
||
|
<p class="channel">{{.Name}}</p>
|
||
|
{{$channelId := .ID}}
|
||
|
{{range $clients}}
|
||
|
{{if eq $channelId .ChannelID}}
|
||
|
<p class="client">{{.Nickname}}</p>
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
</html>
|