Move upload.zig to the new table partial

This commit is contained in:
mitteneer 2025-05-15 20:22:34 -04:00
parent 52fefc9ba5
commit f69ffb2b37

View file

@ -1,15 +1,16 @@
@zig {
const ColumnChoices = []const enum{song, album, artist, artistlist, scrobbles, date};
const columns: ColumnChoices = &.{.song, .artistlist, .album, .date};
}
<html> <html>
<head> <head>
<link rel="stylesheet" href="styles.css">
<meta charset="UTF-8"> <meta charset="UTF-8">
</head> </head>
<body> <body>
@partial partials/header @partial partials/header
<h1>File Uploaded Successfully</h1> <h1>File Uploaded Successfully</h1>
<h2>Scrobbles Added</h2> <h2>Scrobbles Added</h2>
@partial partials/newtable(T: ColumnChoices, table_data: .scrobbles, columns: columns)
@partial partials/table(table_data: .scrobbles, table_headers: .upload_table, table_context: .context)
</body> </body>
</html> </html>