tsviewer/templates/index.html

33 lines
678 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-02-03 23:54:14 +00:00
<div class="content">
<h2>Online Members</h2>
<ul>
{{range .Clients}}
<li>{{.Nickname}}</li>
{{end}}
</ul>
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-02-03 23:54:14 +00:00
</div>
2019-01-17 21:09:41 +00:00
</body>
</html>