beautify, truncate playlist title

This commit is contained in:
Terry Geng 2020-02-08 18:42:14 +08:00
parent c5fa90b78d
commit d4706df2fc

View File

@ -19,9 +19,9 @@
</div>
<div class="playlist-artwork">
{% if 'title' in m and m['title'].strip() %}
<b>{{ m['title']|truncate(50) }}</b>
<b>{{ m['title']|truncate(45) }}</b>
{% elif 'url' in m %}
<b>{{ m['url']|truncate(50) }}</b>
<b>{{ m['url']|truncate(45) }}</b>
{% endif %}
<span class="badge badge-secondary">{{ m['type'].capitalize() }}</span>
<br>