diff --git a/src/app/views/partials/_newtable.zmpl b/src/app/views/partials/_newtable.zmpl new file mode 100644 index 0000000..bee43c1 --- /dev/null +++ b/src/app/views/partials/_newtable.zmpl @@ -0,0 +1,55 @@ +@args table_data *ZmplValue, table_headers: []enum{Song, Album, Artist, Scrobbles, Date} + +
| Artist(s) | + }, + inline else => |other| { + const h = @tagName(other); +{{h}} | + }, + } + } +} +|||
|---|---|---|---|---|
| + {{data.name}} + | + }, + .Album => { ++ {{data.name}} + | + }, + .Artist => { ++ @for (data.get("artist_info").?) |ai| { + {{ai.name}} + } + | + }, + .Scrobbles => { +{{data.scrobbles}} | + }, + .Date =>{ +{{data.date}} | + } + }; + } + } +} +