Commit 190b57ccdbed6fecc4764c71f70b044eaa61037c
1 parent
4c3b20b3
Exists in
master
and in
39 other branches
Truncating message preview
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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 %} |