From 47e53072a74bb1c1e2262afa425777e81c85e71c Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Thu, 29 Oct 2015 10:17:09 -0200 Subject: [PATCH] Set default description to thread search preview --- colab/super_archives/templates/superarchives/thread_search_preview.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/colab/super_archives/templates/superarchives/thread_search_preview.html b/colab/super_archives/templates/superarchives/thread_search_preview.html index 9f6d3c1..0c96e43 100644 --- a/colab/super_archives/templates/superarchives/thread_search_preview.html +++ b/colab/super_archives/templates/superarchives/thread_search_preview.html @@ -3,7 +3,9 @@
{% datetime_format result.modified %} - {{ result.modified_by }}

{{ result.title }}

- {{ result.latest_description|truncatewords:"85" }}
+ {% with description as result.latest_description|truncatewords:"85" %} + {{description | default_if_none:"a"}}
+ {% endwith %} {% trans "Registred in" %}: {% trans "Discussion" %}
-- libgit2 0.21.2