From: Damien Lespiau Date: Sat, 8 Nov 2014 15:43:36 +0000 (+0000) Subject: patch-list: Limit the number of chars to 100 for the patch subject X-Git-Tag: v1.1.0~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b1d2972133ac4789ef1bb97f8bf2fc9b0a95cd2;p=thirdparty%2Fpatchwork.git patch-list: Limit the number of chars to 100 for the patch subject It can happen that people send a patch with a huge subject, by mistake. Make sure it can interfere too much with the list of patches. As an email subject can include extra words compared to a patch subject (list header, tags, ...) let's have a slightly larger limit than 72 or 80. Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/patch-list.html index 9de5c529..8f48dbc9 100644 --- a/patchwork/templates/patchwork/patch-list.html +++ b/patchwork/templates/patchwork/patch-list.html @@ -152,7 +152,7 @@ $(document).ready(function() { {% endif %} {{ patch.name|default:"[no subject]" }} + >{{ patch.name|default:"[no subject]"|truncatechars:100 }} {{ patch|patch_tags }} {{ patch.date|date:"Y-m-d" }} {{ patch.submitter|personify:project }}