diff options
author | Alexandre Flament <alex@al-f.net> | 2022-06-13 21:10:44 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-06-25 20:31:40 +0200 |
commit | 6e2b5f3d5ad95fe87fe58734a6730b9ed46ac6c0 (patch) | |
tree | 87d5e7521a0007c3be0a6813182e42f79bd9ac2c /searx/templates | |
parent | 4bedd7465c278bdb760160dc324ba2c989d26e77 (diff) | |
download | searxng-6e2b5f3d5ad95fe87fe58734a6730b9ed46ac6c0.tar.gz searxng-6e2b5f3d5ad95fe87fe58734a6730b9ed46ac6c0.zip |
Theme: add Help and Donate links in all pages
Close https://github.com/searxng/searxng/issues/931
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/base.html | 16 | ||||
-rw-r--r-- | searx/templates/simple/info.html | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index c40183fdd..05662e1d2 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -40,10 +40,18 @@ </div> {% endif %} - {% block linkto_preferences %} - {% from 'simple/icons.html' import icon_big %} - <nav id="linkto_preferences"><a href="{{ url_for('preferences') }}" aria-label="{{ _('preferences') }}">{{ icon_big('menu-outline') }}</a></nav> - {% endblock %} + <nav id="links_on_top"> + {%- from 'simple/icons.html' import icon_big -%} + {%- block linkto_about -%} + <a href="{{ url_for('info', pagename='about') }}" class="link_on_top_about">{{ icon_big('help-circle-outline') }}<span>{{ _('About') }}</span></a> + {%- endblock -%} + {%- block linkto_donate -%} + <a href="{{ url_for('info', pagename='donate') }}" class="link_on_top_donate">{{ icon_big('heart-outline') }}<span>{{ _('Donate') }}</span></a> + {%- endblock -%} + {%- block linkto_preferences -%} + <a href="{{ url_for('preferences') }}" aria-label="{{ _('preferences') }}" class="link_on_top_preferences">{{ icon_big('menu-outline') }}</a> + {%- endblock -%} + </nav> {% block header %} {% endblock %} {% block content %} diff --git a/searx/templates/simple/info.html b/searx/templates/simple/info.html index b94ad0037..52b29b0ad 100644 --- a/searx/templates/simple/info.html +++ b/searx/templates/simple/info.html @@ -1,5 +1,7 @@ {% extends 'simple/page_with_header.html' %} {% block title %}{{ active_page.title }} - {% endblock %} +{% block linkto_about %}{% endblock %} +{% block linkto_donate %}{% endblock %} {% block content %} <ul class="tabs"> {% for pagename, locale, page in all_pages %} |