Update header partial and remoev table partial

Long overdue
This commit is contained in:
mitteneer 2025-05-31 14:47:52 -04:00
parent 3777b818e3
commit 906ba6d2e5
2 changed files with 4 additions and 22 deletions

View file

@ -1,7 +1,11 @@
<a class="header-link" href="/">Zuletzt</a>
<a class="header-link" href="/artists">Artists</a>
<a class="header-link" href="/albums">Albums</a>
<a class="header-link" href="/songs">Songs</a>
<a class="header-link" href="/scrobbles">Scrobbles</a>
<a class="header-link" href="/concerts">Concerts</a>
<a class="header-link" href="/collection">Collection</a>
<a class="header-link" href="/ratings">Ratings</a>
<a class="header-link" href="/lists">Lists</a>
<a class="header-link" href="/groups">Groups</a>
<hr>

View file

@ -1,22 +0,0 @@
@args table_data: *ZmplValue, table_headers: *ZmplValue
<table>
<tr>
@for (table_headers) |text| {
<th>{{text}}</th>
}
</tr>
@for (table_data) |value| {
<tr>
<td class=cell>{{value.track}}</td>
<td class=cell>
@for (value.get("artists").?) |artist| {
{{artist}}
}
</td>
<td class=cell>{{value.album}}</td>
<td class=cell>{{value.date}}</td>
</tr>
}
</table>