diff --git a/front/src/components/audio/ChannelCard.vue b/front/src/components/audio/ChannelCard.vue index c7490023e5be731c202e11ed1fb4b3e83cffa60c..99b7e63aee21b9b85006ad2f8b76b2510c6c46ce 100644 --- a/front/src/components/audio/ChannelCard.vue +++ b/front/src/components/audio/ChannelCard.vue @@ -13,11 +13,14 @@ </strong> <div class="description"> <translate class="meta ellipsis" translate-context="Content/Channel/Paragraph" + key="1" + v-if="object.artist.content_category === 'podcast'" translate-plural="%{ count } episodes" :translate-n="object.artist.tracks_count" :translate-params="{count: object.artist.tracks_count}"> %{ count } episode </translate> + <translate key="2" v-else translate-context="*/*/*" :translate-params="{count: object.artist.tracks_count}" :translate-n="object.artist.tracks_count" translate-plural="%{ count } tracks">%{ count } track</translate> <tags-list label-classes="tiny" :truncate-size="20" :limit="2" :show-more="false" :tags="object.artist.tags"></tags-list> </div> diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index 614f9be44af9a1678b606910bfdd9353613c2693..c9e24bc32ace96f6ca828ecdd2da3af09b5c2018 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -103,11 +103,19 @@ </router-link> </div> </div> + <template v-if="isSerie"> + <div class="ui hidden divider"></div> + <rendered-description + v-if="object.description" + :content="object.description" + :can-update="false"></rendered-description> + <router-link v-else-if="$store.state.auth.authenticated && object.is_local" :to="{name: 'library.albums.edit', params: {id: object.id }}"> + <i class="pencil icon"></i> + <translate translate-context="Content/*/Button.Label/Verb">Add a description…</translate> + </router-link> + + </template> </div> - <rendered-description - v-if="isSerie" - :content="object.description" - :can-update="false"></rendered-description> <div class="nine wide column"> <router-view v-if="object" :is-serie="isSerie" :artist="artist" :discs="discs" @libraries-loaded="libraries = $event" :object="object" object-type="album" :key="$route.fullPath"></router-view> </div> diff --git a/front/src/components/library/TrackDetail.vue b/front/src/components/library/TrackDetail.vue index ffc4be8183b9037153b9fc9a43c3a9a08d17a8e3..b0590d6658b18caacd935dd8f81d0637b720317f 100644 --- a/front/src/components/library/TrackDetail.vue +++ b/front/src/components/library/TrackDetail.vue @@ -7,7 +7,8 @@ <img class="image" v-if="cover && cover.original" v-lazy="$store.getters['instance/absoluteUrl'](cover.square_crop)"> <template v-if="upload"> <h3 class="ui header"> - <translate translate-context="Content/*/*">Track Details</translate> + <translate key="1" v-if="track.artist.content_category === 'music'" translate-context="Content/*/*">Track Details</translate> + <translate key="2" v-else translate-context="Content/*/*">Episode Details</translate> </h3> <table class="ui basic table"> <tbody> @@ -78,7 +79,8 @@ </tr> <tr v-if="track.album"> <td> - <translate translate-context="*/*/*/Noun">Album</translate> + <translate key="1" v-if="track.album.artist.content_category === 'music'" translate-context="*/*/*/Noun">Album</translate> + <translate key="2" v-else translate-context="*/*/*">Serie</translate> </td> <td class="right aligned"> <router-link :to="{name: 'library.albums.detail', params: {id: track.album.id}}">