diff --git a/colab/accounts/templates/search/user_search_preview.html b/colab/accounts/templates/search/user_search_preview.html index 19e6a19..67edf11 100644 --- a/colab/accounts/templates/search/user_search_preview.html +++ b/colab/accounts/templates/search/user_search_preview.html @@ -7,11 +7,19 @@
-

{{ result.name }}

+ + + {% if query %} +

{% highlight result.name with query %}

+ {% else %} +

{{ result.name }}

+ {% endif %} + +
{% trans "Since" %}: {% date_format result.date_joined %}
{% trans "Registered in" %}: {% trans "User" %}

-
\ No newline at end of file + diff --git a/colab/super_archives/templates/search/thread_search_preview.html b/colab/super_archives/templates/search/thread_search_preview.html index 6286d61..155561d 100644 --- a/colab/super_archives/templates/search/thread_search_preview.html +++ b/colab/super_archives/templates/search/thread_search_preview.html @@ -2,10 +2,30 @@
- {% datetime_format result.modified %} - {{ result.modified_by }}
-

{{ result.title }}

+ {% datetime_format result.modified %} - + + {% if query %} + {% highlight result.modified_by with query max_length "1000" %} + {% else %} + {{result.modified_by }} + {% endif %} + +
+ + {% if query %} +

{% highlight result.title with query max_length "1000"%}

+ {% else %} +

{{ result.title }}

+ {% endif %} + {% with result.latest_description|truncatewords:"85" as description %} - {{description | default_if_none:"a"}}
+ + {% if query %} + {% highlight description with query max_length "1000" %}
+ {% else %} + {{description | default_if_none:"a"}}
+ {% endif %} + {% endwith %} {% trans "Registred in" %}: {% trans "Discussion" %}
-- libgit2 0.21.2