48 lines
No EOL
1.1 KiB
Text
48 lines
No EOL
1.1 KiB
Text
<html>
|
|
<head>
|
|
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
|
|
<meta charset="UTF-8">
|
|
</head>
|
|
<body>
|
|
@partial partials/header
|
|
<h1>{{.artist}}</h1>
|
|
<h2>Albums</h2>
|
|
<table id="myTable">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th><th>Scrobbles</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@for (.albums) |album| {
|
|
<tr>
|
|
<td class=cell><a href="/albums/{{album.url}}">{{album.name}}</a></td>
|
|
<td class=cell>{{album.scrobbles}}</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<h2>Albums Featured On</h2>
|
|
<table id="myTable">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th><th>Scrobbles</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@for (.appears) |album| {
|
|
<tr>
|
|
<td class=cell><a href="/albums/{{album.url}}">{{album.name}}</a></td>
|
|
<td class=cell>{{album.scrobbles}}</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
<table>
|
|
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest" type="text/javascript"></script>
|
|
<script>
|
|
const dataTable = new simpleDatatables.DataTable("#myTable", {
|
|
searchable: false,
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |