Commit 1c574f9f6da24cdc5448586b12c17e10c416304c

Authored by Matheus Fernandes
Committed by Luiz Oliveira
1 parent 220414c5

Set default description to thread search preview

Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
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>
... ...