From 1b1d2972133ac4789ef1bb97f8bf2fc9b0a95cd2 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sat, 8 Nov 2014 15:43:36 +0000 Subject: [PATCH] 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 --- patchwork/templates/patchwork/patch-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }} -- 2.47.3