summaryrefslogtreecommitdiff
path: root/searx/templates/simple/macros.html
diff options
context:
space:
mode:
authorMrPaulBlack <paul@paulgo.io>2021-11-13 10:42:07 +0100
committerMrPaulBlack <paul@paulgo.io>2021-11-13 10:42:07 +0100
commit566dfe33307e33e4cb54dc6eae17fb373a09684e (patch)
tree606e48f0b83a833fbad7aa166bd5a0858fbd4090 /searx/templates/simple/macros.html
parent8877512e20edf86221b1de66808e2ab284770844 (diff)
downloadsearxng-566dfe33307e33e4cb54dc6eae17fb373a09684e.tar.gz
searxng-566dfe33307e33e4cb54dc6eae17fb373a09684e.zip
[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/macros.html')
-rw-r--r--searx/templates/simple/macros.html11
1 files changed, 1 insertions, 10 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index 92c6c9ef2..26aa71891 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -1,12 +1,3 @@
-<!-- Draw glyphicon icon from bootstrap-theme -->
-{% macro icon(action, alt) -%}
- <span title="{{ alt }}" class="ion-icon-big ion-{{ action }}"></span>
-{%- endmacro %}
-
-{% macro icon_small(action) -%}
- <span class="ion-icon ion-{{ action }}"></span>
-{%- endmacro %}
-
<!-- Draw favicon -->
{% macro draw_favicon(favicon) -%}
<img width="14" height="14" class="favicon" src="{{ url_for('static', filename='themes/simple/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
@@ -43,7 +34,7 @@
{%- macro result_sub_footer(result, proxify) -%}
<div class="engines">
{% for engine in result.engines %}<span>{{ engine }}</span>{% endfor %}
- {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "cache_link") }}&lrm; {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %}
+ {{ result_link("https://web.archive.org/web/" + result.url, icon_small('ellipsis-vertical-outline') + _('cached'), "cache_link") }}&lrm; {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %}
</div>{{- '' -}}
<div class="break"></div>{{- '' -}}
{%- endmacro -%}