diff options
| author | MrPaulBlack <paul@paulgo.io> | 2021-11-13 10:42:07 +0100 |
|---|---|---|
| committer | MrPaulBlack <paul@paulgo.io> | 2021-11-13 10:42:07 +0100 |
| commit | 566dfe33307e33e4cb54dc6eae17fb373a09684e (patch) | |
| tree | 606e48f0b83a833fbad7aa166bd5a0858fbd4090 /searx/templates/simple/results.html | |
| parent | 8877512e20edf86221b1de66808e2ab284770844 (diff) | |
[simple theme] update to ion icons 5 and drop webfont
* update from ionicons-npm to ionicons ver.5
* drop the webfont built by grunt for icons
* built icons.html template for inlining icons with jinja2 into html
* update icon to use mostly the outline version
* add icons to categories and do not display them on mobile to save space
* remove all legacy ion icon font files from simple theme
* icons.html is added in this commit since make statc.build.restore requires git to know the file already
* cleanup error-dialog
Diffstat (limited to 'searx/templates/simple/results.html')
| -rw-r--r-- | searx/templates/simple/results.html | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 59874dab3..59de1ee0d 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -1,5 +1,5 @@ {% extends "simple/base.html" %} -{% from 'simple/macros.html' import icon, icon_small %} +{% from 'simple/icons.html' import icon, icon_big, icon_small %} {% macro engine_data_form(engine_data) -%} {% for engine_name, kv_data in engine_data.items() %} {% for k, v in kv_data.items() %} @@ -10,7 +10,7 @@ {% block title %}{% if method == 'GET' %}{{- q|e -}} -{% endif %}{% endblock %} {% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&categories={{ selected_categories|join(",") | replace(' ','+') }}&pageno={{ pageno }}&time_range={{ time_range }}&language={{ current_language }}&safesearch={{ safesearch }}&format=rss">{% endblock %} {% block content %} -<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon('navicon-round') }}</a></nav> +<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon_big('menu-outline') }}</a></nav> {% include 'simple/search.html' %} {% if results and results|map(attribute='template')|unique|list|count == 1 %} @@ -42,14 +42,17 @@ {% if unresponsive_engines and results|length >= 1 %} <div class="dialog-error" role="alert"> - <p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results') }}:</p> - {%- for engine_name, error_type in unresponsive_engines -%} - <p>{{- engine_name }} ( - <a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}"> + {{ icon_big('warning') }} + <div> + <p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results') }}:</p> + {%- for engine_name, error_type in unresponsive_engines -%} + <p>{{- engine_name }} ( + <a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}"> {{- error_type -}} - </a> ){{- '' -}} - </p> - {% endfor %} + </a> ){{- '' -}} + </p> + {% endfor %} + </div> </div> {% endif %} @@ -141,7 +144,7 @@ {% endif %} </div> <div id="backToTop"> - <a href="#">{{ icon_small('chevron-up') }}</a> + <a href="#">{{ icon_small('chevron-up-outline') }}</a> </div> {% if paging %} <nav id="pagination"> |