Commit 190b57ccdbed6fecc4764c71f70b044eaa61037c

Authored by Sergio Oliveira
1 parent 4c3b20b3

Truncating message preview

src/super_archives/templates/message-preview.html
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 25
26 {% if result.description %} 26 {% if result.description %}
27 <!-- a striptags filter was raising an error here because using with highlight --> 27 <!-- a striptags filter was raising an error here because using with highlight -->
28 - <span class="quiet">- {% if query %}{% highlight result.description with query max_length "150" %}{% else %}{{ result.description }}{% endif %}</span> 28 + <span class="quiet">- {% if query %}{% highlight result.description with query max_length "150" %}{% else %}{{ result.description|truncatechars:150 }}{% endif %}</span>
29 {% endif %} 29 {% endif %}
30 30
31 {% if result.fullname or result.modified %} 31 {% if result.fullname or result.modified %}