Fix albums index function
Not as fragile as I thought
This commit is contained in:
parent
8a70239170
commit
829b46cc63
1 changed files with 3 additions and 3 deletions
|
|
@ -5,13 +5,13 @@
|
|||
</head>
|
||||
<body>
|
||||
@partial partials/header
|
||||
<h1> Artists</h1>
|
||||
<h1>Albums</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
@for (.artists) |artist| {
|
||||
@for (.albums) |album| {
|
||||
<tr>
|
||||
<td class=cell><a href="/artists/{{artist.url}}">{{artist.name}}</a></td>
|
||||
<td class=cell><a href="/albums/{{album.url}}">{{album.name}}</a></td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue