mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[ehn] Add a 'featured result feature'm putting on top of the reasults ddg definitions and wikipedia (ugly html / css)
[ehn] Add a templates for videos, so the thumbnails all have the same side
This commit is contained in:
parent
ad72c16050
commit
cf8f444e85
6 changed files with 53 additions and 6 deletions
7
searx/templates/result_templates/videos.html
Normal file
7
searx/templates/result_templates/videos.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<div class="result">
|
||||
<p>
|
||||
<h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
|
||||
<a href="{{ result.url }}"><img width="300" height="170" src="{{ result.thumbnail }}" title={{ result.title }} alt=" {{ result.title }}"/></a>
|
||||
<p class="url">{{ result.url }}</p>
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -9,9 +9,24 @@
|
|||
{% if suggestions %}
|
||||
<div id="suggestions"><span>Suggestions: </span>{% for suggestion in suggestions %}<form method="post" action="/"><input type="hidden" name="q" value="{{suggestion}}"><input type="submit" value="{{ suggestion }}" /></form>{% endfor %}</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div id ="result_count">
|
||||
Number of results: {{ number_of_results }}
|
||||
</div>
|
||||
{% if featured_results %}
|
||||
<div id="fr">
|
||||
|
||||
{% for result in featured_results %}
|
||||
{% if result['template'] %}
|
||||
{% include 'result_templates/'+result['template'] %}
|
||||
{% else %}
|
||||
{% include 'result_templates/default.html' %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% for result in results %}
|
||||
{% if result['template'] %}
|
||||
{% include 'result_templates/'+result['template'] %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue