aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-11-08 15:43:36 +0000
committerStephen Finucane <stephen.finucane@intel.com>2015-11-05 03:56:25 +0000
commit1b1d2972133ac4789ef1bb97f8bf2fc9b0a95cd2 (patch)
tree64b64b21df364c1815056f62184567747e0d9418
parentb0c57f4979b5f8e6f262ce85a9db39da98165147 (diff)
downloadpatchwork-1b1d2972133ac4789ef1bb97f8bf2fc9b0a95cd2.tar
patchwork-1b1d2972133ac4789ef1bb97f8bf2fc9b0a95cd2.tar.gz
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 <damien.lespiau@intel.com> Acked-by: Stephen Finucane <stephen.finucane@intel.com>
-rw-r--r--patchwork/templates/patchwork/patch-list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/patch-list.html
index 9de5c52..8f48dbc 100644
--- a/patchwork/templates/patchwork/patch-list.html
+++ b/patchwork/templates/patchwork/patch-list.html
@@ -152,7 +152,7 @@ $(document).ready(function() {
</td>
{% endif %}
<td><a href="{% url 'patchwork.views.patch.patch' patch_id=patch.id %}"
- >{{ patch.name|default:"[no subject]" }}</a></td>
+ >{{ patch.name|default:"[no subject]"|truncatechars:100 }}</a></td>
<td style="white-space: nowrap;">{{ patch|patch_tags }}</td>
<td>{{ patch.date|date:"Y-m-d" }}</td>
<td>{{ patch.submitter|personify:project }}</td>