From ce2dae9048de405a424b6c50723103bbc9484e91 Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Thu, 6 Feb 2020 10:45:56 +0800 Subject: [PATCH] truncate title if too long --- templates/playlist.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/playlist.html b/templates/playlist.html index 56fa489..41453e0 100644 --- a/templates/playlist.html +++ b/templates/playlist.html @@ -19,9 +19,9 @@
{% if 'title' in m and m['title'].strip() %} - {{ m['title'] }} + {{ m['title']|truncate(50) }} {% elif 'url' in m %} - {{ m['url']|truncate(30) }} + {{ m['url']|truncate(50) }} {% endif %} {{ m['type'].capitalize() }}