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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@partial partials/header
|
@partial partials/header
|
||||||
<h1> Artists</h1>
|
<h1>Albums</h1>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
@for (.artists) |artist| {
|
@for (.albums) |album| {
|
||||||
<tr>
|
<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>
|
</tr>
|
||||||
}
|
}
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue