Commit 3839871710172954c6aedbdeb5013f0bc40ed3ec
1 parent
e483699e
Exists in
master
and in
2 other branches
Moved content from message-preview to search template
Signed-off-by: Daniel Henrique <danielhmarinho@gmail.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Signed-off-by: Sergio Oliveira <seocam@seocam.com>
Showing
2 changed files
with
3 additions
and
5 deletions
Show diff stats
colab/search/templates/message-preview.html
colab/search/templates/search/search.html
1 | 1 | {% extends "base.html" %} |
2 | -{% load i18n highlight superarchives %} | |
2 | +{% load i18n tz highlight superarchives search_preview_templates %} | |
3 | 3 | {% load static from staticfiles %} |
4 | 4 | |
5 | 5 | {% block title %}{% trans 'search'|title %}{% endblock %} |
... | ... | @@ -70,7 +70,8 @@ We must use STATIC_URL because we have a language composing the URL |
70 | 70 | <div class="col-md-10 col-lg-10"> |
71 | 71 | <ul class="list-unstyled"> |
72 | 72 | {% for result in page.object_list %} |
73 | - {% include "message-preview.html" %} | |
73 | + {% get_search_preview_templates result as template_target %} | |
74 | + {% include template_target %} | |
74 | 75 | {% empty %} |
75 | 76 | <li class="text-center"> |
76 | 77 | {% trans "No results for your search." %} | ... | ... |