Move upload.zig to the new table partial
This commit is contained in:
parent
52fefc9ba5
commit
f69ffb2b37
1 changed files with 6 additions and 5 deletions
|
|
@ -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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue