summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-10-13 00:33:26 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2019-10-13 00:33:26 +0200
commitc46444aa9722ac4e9faded36caa4b7f844d3452d (patch)
tree159b34a8f4af8d728073d00b09ad904c6fd8cb00
parenta4299460548f9558f4c5f2bcca94fac800f3d0de (diff)
downloadarchweb-c46444aa9722ac4e9faded36caa4b7f844d3452d.tar.gz
archweb-c46444aa9722ac4e9faded36caa4b7f844d3452d.zip
devel: truncate description of todolist overview
Some todolists have an elaborate description which takes up a lot of space, limit these two 50 words.
-rw-r--r--templates/devel/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html
index cba57210..5adec682 100644
--- a/templates/devel/index.html
+++ b/templates/devel/index.html
@@ -140,7 +140,7 @@
title="View todo list: {{ todo.name }}">{{ todo.name }}</a></td>
<td>{{ todo.created|date }}</td>
<td>{{ todo.creator.get_full_name }}</td>
- <td class="wrap">{{ todo.description|urlize }}</td>
+ <td class="wrap">{{ todo.description|urlize|truncatewords:"50" }}</td>
<td>{{ todo.pkg_count }}</td>
<td>{{ todo.incomplete_count }}</td>
</tr>