From df917890e35f154ede61a835346a4b9fb4e0b4c7 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Fri, 22 Sep 2017 05:10:26 -0700 Subject: [PATCH] Added genres to track pages --- app/Models/Track.php | 3 ++- public/templates/tracks/show.html | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/Track.php b/app/Models/Track.php index a30e539d..e18f4922 100644 --- a/app/Models/Track.php +++ b/app/Models/Track.php @@ -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' => [ diff --git a/public/templates/tracks/show.html b/public/templates/tracks/show.html index 528c3c6b..4329ee1c 100644 --- a/public/templates/tracks/show.html +++ b/public/templates/tracks/show.html @@ -17,6 +17,8 @@