Quickly add genre component

This commit is contained in:
2017-10-11 00:33:43 +02:00
parent 331458edbd
commit 11c64405eb
10 changed files with 136 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
<div class="container">
<h1>{{genreName}}</h1>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Artist</th>
<th>Album</th>
<th>Album Artist</th>
<th>Play Count</th>
<th>Genre</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let song of songs | sortBy : 'Track Number'">
<td>{{song['Track Number'] ? (("0" + song['Track Number']).slice(-2)) : "--"}}</td>
<td>{{song.Name}}</td>
<td><a [routerLink]="['/artist', song.Artist]">{{song.Artist}}</a></td>
<td><a [routerLink]="['/album', song.Album]">{{song.Album}}</a></td>
<td>{{song['Album Artist']}}</td>
<td>{{song['Play Count']}}</td>
<td>{{song.Genre}}</td>
</tr>
</tbody>
</table>
</div>