Merge branch '201-escape-track-name' into 'develop'

Resolve "tiny encoding issue for track name"

Closes #201

See merge request funkwhale/funkwhale!193
This commit is contained in:
Eliot Berriot 2018-05-15 16:40:35 +00:00
commit 82034f118d
3 changed files with 9 additions and 4 deletions

View File

@ -361,7 +361,7 @@ class Track(APIModelMixin):
import_tags
]
objects = TrackQuerySet.as_manager()
tags = TaggableManager()
tags = TaggableManager(blank=True)
class Meta:
ordering = ['album', 'position']

View File

@ -0,0 +1 @@
Fixed escaping issue of track name in playlist modal (#201)

View File

@ -7,9 +7,7 @@
<div class="description">
<template v-if="track">
<h4 class="ui header">{{ $t('Current track') }}</h4>
<div>
{{ $t('"{%title%}" by {%artist%}', { title: track.title, artist: track.artist.name }) }}
</div>
<div v-html='trackDisplay'></div>
<div class="ui divider"></div>
</template>
@ -112,6 +110,12 @@ export default {
let p = _.sortBy(this.playlists, [(e) => { return e.modification_date }])
p.reverse()
return p
},
trackDisplay () {
return this.$t('"{%title%}" by {%artist%}', {
title: this.track.title,
artist: this.track.artist.name }
)
}
},
watch: {