Commit e940c6e2a3dd6cd030b78fe11fa198084ac0dfe1
Committed by
Luciano Prestes
1 parent
8cdcabac
Exists in
master
and in
51 other branches
Changing message preview include
Signed-off-by: Daniel Henrique <danielhmarinho@gmail.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com> Signed-off-by: Sergio Oliveira <seocam@seocam.com>
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html
1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
2 | -{% load i18n highlight superarchives %} | 2 | +{% load i18n tz highlight superarchives search_preview_templates %} |
3 | {% load static from staticfiles %} | 3 | {% load static from staticfiles %} |
4 | 4 | ||
5 | {% block title %}{% trans 'search'|title %}{% endblock %} | 5 | {% block title %}{% trans 'search'|title %}{% endblock %} |
@@ -80,7 +80,8 @@ | @@ -80,7 +80,8 @@ | ||
80 | <div class="col-md-12 col-lg-12"> | 80 | <div class="col-md-12 col-lg-12"> |
81 | <div class="container"> | 81 | <div class="container"> |
82 | {% for result in page.object_list %} | 82 | {% for result in page.object_list %} |
83 | - {% include "message-preview.html" %} | 83 | + {% get_search_preview_templates result as template_target %} |
84 | + {% include template_target %} | ||
84 | {% empty %} | 85 | {% empty %} |
85 | <ul class="list-unstyled"> | 86 | <ul class="list-unstyled"> |
86 | <li class="text-center"> | 87 | <li class="text-center"> |
@@ -144,4 +145,4 @@ | @@ -144,4 +145,4 @@ | ||
144 | 145 | ||
145 | </div> | 146 | </div> |
146 | </div> | 147 | </div> |
147 | -{% endblock main-content %} | ||
148 | \ No newline at end of file | 148 | \ No newline at end of file |
149 | +{% endblock main-content %} |