subscribe-bot/web/templates/index.html

50 lines
1.4 KiB
HTML
Raw Normal View History

2020-10-14 19:08:38 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>subscribe-bot</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-10-14 20:09:03 +00:00
<link rel="stylesheet" href="/static/main.css" />
2020-10-14 19:08:38 +00:00
</head>
<body>
2020-10-14 20:09:03 +00:00
<div class="container">
<h1 class="title">
<a href="/">subscribe-bot</a>
</h1>
<div class="nav-bar">
<a href="/">home</a>
{{ if .LoggedIn }}
<a href="/logout">logout</a>
{{ else }}
<a href="/login">login</a>
{{ end }}
</div>
2020-10-14 19:08:38 +00:00
<p>Maps:</p>
2020-10-14 19:56:56 +00:00
<table class="table-auto">
<thead>
<th>Mapper</th>
<th>Title</th>
<th>Links</th>
</thead>
{{ range .Beatmapsets }}
2020-10-14 19:56:56 +00:00
<tbody>
<td>
2020-10-14 20:09:03 +00:00
<a href="https://osu.ppy.sh/u/{{ .UserID }}" target="_blank">{{ .Creator }}</a>
</td>
<td>{{ .Artist }} - {{ .Title }}</td>
<td>
<a href="https://osu.ppy.sh/s/{{ .ID }}" target="_blank">osu</a>
2020-10-14 19:56:56 +00:00
</td>
</tbody>
2020-10-14 19:08:38 +00:00
{{ end }}
2020-10-14 19:56:56 +00:00
</table>
2020-10-14 19:08:38 +00:00
</div>
</body>
</html>