mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-21 20:48:00 +01:00
Added genres to track pages
This commit is contained in:
parent
8eaa22733b
commit
df917890e3
2 changed files with 4 additions and 1 deletions
|
@ -555,7 +555,8 @@ class Track extends Model implements Searchable, Commentable, Favouritable
|
|||
[
|
||||
'id' => (int) $track->genre->id,
|
||||
'slug' => $track->genre->slug,
|
||||
'name' => $track->genre->name
|
||||
'name' => $track->genre->name,
|
||||
'url' => $track->genre->url,
|
||||
] : null,
|
||||
'track_type_id' => $track->track_type_id,
|
||||
'covers' => [
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
</div>
|
||||
|
||||
<ul class="stats">
|
||||
<li ng-if="track.genre">Genre: <strong><a href="{{::track.genre.url}}">{{::track.genre.name}}</a></strong></li>
|
||||
<li ng-if="!track.genre">Genre: <strong>Unknown</strong></li>
|
||||
<li>Published: <strong>{{formatPublishedDate(track)}}</strong></li>
|
||||
<li>Views: <strong>{{::track.stats.views}}</strong></li>
|
||||
<li>Plays: <strong>{{::track.stats.plays}}</strong></li>
|
||||
|
|
Loading…
Reference in a new issue