From adc0fd4d5e05b4bdb15ec2b98fd04c1f0ffae653 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Wed, 12 Aug 2020 22:15:44 +0200 Subject: [PATCH] Changed PlaceList description to not cus description < threshold. --- lostplaces/lostplaces_app/templates/place/place_list.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lostplaces/lostplaces_app/templates/place/place_list.html b/lostplaces/lostplaces_app/templates/place/place_list.html index 3971247..fe9460b 100644 --- a/lostplaces/lostplaces_app/templates/place/place_list.html +++ b/lostplaces/lostplaces_app/templates/place/place_list.html @@ -24,7 +24,13 @@
-

{{place.description|truncatechars:210|truncatewords:-1}}

+

+ {% if place.description|length > 210 %} + {{place.description|truncatechars:210|truncatewords:-1}} + {% else %} + {{place.description}} + {% endif %} +