[fix] correct kv template formatting and remove internal data

Slightly modified merge of commit [ea7ccf24] from searx.

[ea7ccf24] https://github.com/searx/searx/commit/ea7ccf24

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Adam Tauber 2021-05-30 19:20:46 +02:00 committed by Markus Heiser
parent e0af67f0af
commit e33858d6ef
2 changed files with 3 additions and 3 deletions

View file

@ -1,8 +1,8 @@
{% from 'oscar/macros.html' import result_footer, result_footer_rtl with context %} {% from 'oscar/macros.html' import result_footer, result_footer_rtl with context %}
<div class="panel panel-default"> <div class="result result-default">
<table class="table table-responsive table-bordered table-condensed"> <table class="table table-responsive table-bordered table-condensed">
{% for key, value in result.items() %} {% for key, value in result.items() %}
{% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions'] %} {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions', 'pretty_url', 'parsed_url'] %}
{% continue %} {% continue %}
{% endif %} {% endif %}
<tr> <tr>

View file

@ -1,6 +1,6 @@
<table> <table>
{% for key, value in result.items() %} {% for key, value in result.items() %}
{% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions'] %} {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions', 'pretty_url', 'parsed_url'] %}
{% continue %} {% continue %}
{% endif %} {% endif %}
<tr> <tr>