truncate title if too long
This commit is contained in:
parent
c998bf5708
commit
ce2dae9048
@ -19,9 +19,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="playlist-artwork">
|
<div class="playlist-artwork">
|
||||||
{% if 'title' in m and m['title'].strip() %}
|
{% if 'title' in m and m['title'].strip() %}
|
||||||
<b>{{ m['title'] }}</b>
|
<b>{{ m['title']|truncate(50) }}</b>
|
||||||
{% elif 'url' in m %}
|
{% elif 'url' in m %}
|
||||||
<b>{{ m['url']|truncate(30) }}</b>
|
<b>{{ m['url']|truncate(50) }}</b>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="badge badge-secondary">{{ m['type'].capitalize() }}</span>
|
<span class="badge badge-secondary">{{ m['type'].capitalize() }}</span>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user