Commit 6b80fcaec84e0cf7ee23579135ae692e22a2bc0b

Authored by Matheus Fernandes
1 parent 91b87b28
Exists in colab_search

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,7 +3,9 @@
3 <div class="row"> 3 <div class="row">
4 {% datetime_format result.modified %} - <a href="{{result.modified_by_url}}">{{ result.modified_by }}</a><br> 4 {% datetime_format result.modified %} - <a href="{{result.modified_by_url}}">{{ result.modified_by }}</a><br>
5 <h4><a href="{{result.url}}">{{ result.title }}</a></h4> 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 {% trans "Registred in" %}: <strong>{% trans "Discussion" %}</strong> 9 {% trans "Registred in" %}: <strong>{% trans "Discussion" %}</strong>
8 <hr> 10 <hr>
9 </div> 11 </div>