From f2812c67ce50f6c661aa25f1b8db9005f1569d07 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 2 Oct 2018 19:23:10 +0200 Subject: [PATCH 1/3] Fixed a small pluralization issue (#542) --- front/src/components/audio/album/Card.vue | 4 ++-- front/src/views/content/libraries/Card.vue | 4 ++-- front/src/views/content/remote/Card.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index 0c5a7c803..a439a16b6 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -38,7 +38,7 @@
- Show 1 more track + Show %{ count } more track Collapse @@ -52,7 +52,7 @@ - 1 track + %{ count } track
diff --git a/front/src/views/content/libraries/Card.vue b/front/src/views/content/libraries/Card.vue index 12d6d7d5f..6b327f370 100644 --- a/front/src/views/content/libraries/Card.vue +++ b/front/src/views/content/libraries/Card.vue @@ -36,8 +36,8 @@ {{ library.size | humanSize }} - {{ library.uploads_count }} - 1 track + + %{ count } track
diff --git a/front/src/views/content/remote/Card.vue b/front/src/views/content/remote/Card.vue index 48f5896ad..862a9a69a 100644 --- a/front/src/views/content/remote/Card.vue +++ b/front/src/views/content/remote/Card.vue @@ -24,7 +24,7 @@
- 1 tracks + %{ count } tracks
diff --git a/front/src/components/library/Album.vue b/front/src/components/library/Album.vue index 7ee5ae068..03d83e064 100644 --- a/front/src/components/library/Album.vue +++ b/front/src/components/library/Album.vue @@ -45,6 +45,14 @@
+
+

+ User libraries +

+ + This album is present in the following libraries: + +
@@ -55,6 +63,7 @@ import logger from '@/logging' import backend from '@/audio/backend' import PlayButton from '@/components/audio/PlayButton' import TrackTable from '@/components/audio/track/Table' +import LibraryWidget from '@/components/federation/LibraryWidget' const FETCH_URL = 'albums/' @@ -62,7 +71,8 @@ export default { props: ['id'], components: { PlayButton, - TrackTable + TrackTable, + LibraryWidget }, data () { return { diff --git a/front/src/components/library/Artist.vue b/front/src/components/library/Artist.vue index ee9c625e1..fe74f6f17 100644 --- a/front/src/components/library/Artist.vue +++ b/front/src/components/library/Artist.vue @@ -56,6 +56,14 @@ +
+

+ User libraries +

+ + This artist is present in the following libraries: + +
@@ -69,6 +77,7 @@ import AlbumCard from '@/components/audio/album/Card' import RadioButton from '@/components/radios/Button' import PlayButton from '@/components/audio/PlayButton' import TrackTable from '@/components/audio/track/Table' +import LibraryWidget from '@/components/federation/LibraryWidget' export default { props: ['id'], @@ -76,7 +85,8 @@ export default { AlbumCard, RadioButton, PlayButton, - TrackTable + TrackTable, + LibraryWidget }, data () { return { diff --git a/front/src/components/library/Track.vue b/front/src/components/library/Track.vue index 1ede2218b..75d5f650d 100644 --- a/front/src/components/library/Track.vue +++ b/front/src/components/library/Track.vue @@ -118,6 +118,14 @@ +
+

+ User libraries +

+ + This track is present in the following libraries: + +
@@ -131,6 +139,7 @@ import logger from '@/logging' import PlayButton from '@/components/audio/PlayButton' import TrackFavoriteIcon from '@/components/favorites/TrackFavoriteIcon' import TrackPlaylistIcon from '@/components/playlists/TrackPlaylistIcon' +import LibraryWidget from '@/components/federation/LibraryWidget' const FETCH_URL = 'tracks/' @@ -139,7 +148,8 @@ export default { components: { PlayButton, TrackPlaylistIcon, - TrackFavoriteIcon + TrackFavoriteIcon, + LibraryWidget }, data () { return { diff --git a/front/src/views/content/remote/Card.vue b/front/src/views/content/remote/Card.vue index 862a9a69a..9cbaf857f 100644 --- a/front/src/views/content/remote/Card.vue +++ b/front/src/views/content/remote/Card.vue @@ -26,7 +26,7 @@ %{ count } tracks -
+