Commit 47e53072a74bb1c1e2262afa425777e81c85e71c
1 parent
6c96946e
Exists in
search_block
Set default description to thread search preview
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
colab/super_archives/templates/superarchives/thread_search_preview.html
... | ... | @@ -3,7 +3,9 @@ |
3 | 3 | <div class="row"> |
4 | 4 | {% datetime_format result.modified %} - <a href="{{result.modified_by_url}}">{{ result.modified_by }}</a><br> |
5 | 5 | <h4><a href="{{result.url}}">{{ result.title }}</a></h4> |
6 | - {{ result.latest_description|truncatewords:"85" }} <br> | |
6 | + {% with description as result.latest_description|truncatewords:"85" %} | |
7 | + {{description | default_if_none:"a"}}<br> | |
8 | + {% endwith %} | |
7 | 9 | {% trans "Registred in" %}: <strong>{% trans "Discussion" %}</strong> |
8 | 10 | <hr> |
9 | 11 | </div> | ... | ... |