trakr/public/html/dashboard.html

28 lines
541 B
HTML
Raw Normal View History

2023-12-22 21:29:33 +01:00
<!DOCTYPE html>
<html>
<head>
<title>Dashboard</title>
</head>
<body>
<h1>Tracking Pixel Dashboard</h1>
<table>
<tr>
<th>Title</th>
<th>Total Views</th>
<th>Unique Views</th>
<th>Link</th>
</tr>
{{range .}}
<tr>
<td>{{.Title}}</td>
<td>{{.TotalViews}}</td>
<td>{{.UniqueViews}}</td>
<td><a href="/p/{{.UUID}}" target="_blank">link</a></td>
</tr>
{{end}}
</table>
</body>
</html>