Fix #676: overescaping issue in notifications and album page

This commit is contained in:
Eliot Berriot 2019-01-26 13:13:48 +01:00
parent 22a38260e6
commit baa18bbdc7
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 9 additions and 10 deletions

View file

@ -10,13 +10,7 @@
<i class="circular inverted sound yellow icon"></i>
<div class="content">
{{ album.title }}
<translate
tag="div"
translate-plural="Album containing %{ count } tracks, by %{ artist }"
:translate-n="album.tracks.length"
:translate-params="{count: album.tracks.length, artist: album.artist.name}">
Album containing %{ count } track, by %{ artist }
</translate>
<div v-html="subtitle"></div>
</div>
<div class="ui buttons">
<router-link class="ui button" :to="{name: 'library.artists.detail', params: {id: album.artist.id }}">
@ -184,6 +178,10 @@ export default {
this.$store.getters["instance/absoluteUrl"](this.album.cover.original) +
")"
)
},
subtitle () {
let msg = this.$ngettext('Album containing %{ count } track, by %{ artist }', 'Album containing %{ count } tracks, by %{ artist }', this.album.tracks.length)
return this.$gettextInterpolate(msg, {count: this.album.tracks.length, artist: this.album.artist.name})
}
},
watch: {