go-tsviewer/templates/index.html

25 lines
520 B
HTML
Raw Normal View History

2019-01-17 21:09:41 +00:00
<!DOCTYPE html>
<html>
<head>
<title>TS3 Viewer</title>
2019-01-21 17:53:33 +00:00
<link rel="stylesheet" href="static/styles.css">
2019-01-17 21:09:41 +00:00
</head>
<body>
2019-01-21 17:53:33 +00:00
<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}}
2019-01-17 21:09:41 +00:00
</body>
</html>