diff options
| author | pw3t <romain@berthor.fr> | 2014-01-13 22:24:05 +0100 |
|---|---|---|
| committer | pw3t <romain@berthor.fr> | 2014-01-16 22:03:43 +0100 |
| commit | fdb6fac214c2fb5bdc6c27492bc45c6694483fb4 (patch) | |
| tree | 98e9ed98db33ea1f0254ee731d762b907e988f9a /searx/templates/result_templates/default.html | |
| parent | cf8f444e8597bf527ef4bfc691b6d45d5704f77f (diff) | |
[ehn] Add possibility to add icon in results (more ugly html / css, need fix)
Diffstat (limited to 'searx/templates/result_templates/default.html')
| -rw-r--r-- | searx/templates/result_templates/default.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/searx/templates/result_templates/default.html b/searx/templates/result_templates/default.html index 48c0775ae..3f2d0f360 100644 --- a/searx/templates/result_templates/default.html +++ b/searx/templates/result_templates/default.html @@ -1,5 +1,14 @@ <div class="result {{ result.class }}"> - <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3> + + {% if result['favicon'] %} + <div style="float:left; margin:2px;"> + <img width="24" height="24" src="static/img/icon_{{result['favicon']}}.png" alt="{{result['favicon']}}.png" title="{{result['favicon']}}.png" /> + </div> + {% endif %} + + <div> + <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3></br> <p class="content">{% if result.content %}{{ result.content|safe }}<br />{% endif %}</p> <p class="url">{{ result.pretty_url }}</p> + </div> </div> |