mirror of
https://github.com/riwiwa/muzi.git
synced 2025-12-30 04:35:26 -08:00
changed project structure, began web development
This commit is contained in:
35
templates/history.gohtml
Normal file
35
templates/history.gohtml
Normal file
@@ -0,0 +1,35 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css">
|
||||
<title>
|
||||
muzi | history
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
Scrobbles: {{.Content}}<br><br>
|
||||
<div class=history>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Artist</th>
|
||||
<th>Title</th>
|
||||
<th>Timestamp</th>
|
||||
</tr>
|
||||
{{$artists := .Artists}}
|
||||
{{$times := .Times}}
|
||||
{{range $index, $title := .Titles}}
|
||||
<tr>
|
||||
<td>{{index $artists $index}}</td>
|
||||
<td>{{$title}}</td>
|
||||
<td>{{index $times $index}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
</div>
|
||||
{{$page := .Page}}
|
||||
<div class=page_buttons>
|
||||
<a href="http://10.0.0.36:1234/history?page={{Sub $page 1}}">Prev Page</a>
|
||||
<a href="http://10.0.0.36:1234/history?page={{Add $page 1}}">Next Page</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user