1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-06 18:33:38 +02:00

Add alphabetical artist overview (#26)

This commit is contained in:
Arne Schlüter 2018-10-16 11:05:16 +02:00 committed by GitHub
commit 10f2e32ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 11 deletions

View file

@ -20,12 +20,17 @@
(def start [(url-for ::routes/library) "Start"])
(defmethod breadcrumbs ::routes/artist.overview [_ _]
[bulma-breadcrumbs start "Artists"])
(defmethod breadcrumbs ::routes/artist.detail [_ {:keys [artist]}]
[bulma-breadcrumbs start
[(url-for ::routes/artist.overview) "Artists"]
(:name artist)])
(defmethod breadcrumbs ::routes/album.detail [_ {:keys [album]}]
[bulma-breadcrumbs start
[(url-for ::routes/artist.overview) "Artists"]
[(url-for ::routes/artist.detail {:id (:artistId album)}) (:artist album)]
(:name album)])