diff options
author | Alexandre Flament <alex@al-f.net> | 2022-03-13 22:15:27 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-03-13 22:22:02 +0100 |
commit | 1157462ff9fc08504297e259356ccbefb339965f (patch) | |
tree | b87c6f75cc657e1929fe32afa2b8fbc9f905c65d /searx/templates/oscar | |
parent | 59100e852573cbc01b602b1637b0d4a02a863a9d (diff) | |
download | searxng-1157462ff9fc08504297e259356ccbefb339965f.tar.gz searxng-1157462ff9fc08504297e259356ccbefb339965f.zip |
Various change on PR 930
Diffstat (limited to 'searx/templates/oscar')
-rw-r--r-- | searx/templates/oscar/info.html | 6 | ||||
-rw-r--r-- | searx/templates/oscar/navbar.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/oscar/info.html b/searx/templates/oscar/info.html index 3a696da50..0c2044adb 100644 --- a/searx/templates/oscar/info.html +++ b/searx/templates/oscar/info.html @@ -2,9 +2,9 @@ {% block title %}{{ active_page.title }} - {% endblock %} {% block content %} <ul class="nav nav-tabs"> -{% for pagename, page in all_pages('en') %} - <li {% if pagename == active_pagename %}class="active"{% endif %}> - <a href="{{pagename}}">{{page.title}}</a> + {% for pagename, page, locale in all_pages %} + <li> + <a href="{{ url_for('info', pagename=pagename, locale=locale) }}" {% if pagename == active_pagename %}class="active"{% endif %}>{{page.title}}</a> </li> {% endfor %} </ul> diff --git a/searx/templates/oscar/navbar.html b/searx/templates/oscar/navbar.html index 4c0ec0068..f5401c382 100644 --- a/searx/templates/oscar/navbar.html +++ b/searx/templates/oscar/navbar.html @@ -3,7 +3,7 @@ <a href="{{ url_for('index') }}">{{ instance_name }}</a>{{- "" -}} </span>{{- "" -}} <span class="{% if rtl %}pull-left{% else %}pull-right{% endif %}">{{- "" -}} - <a href="{{ url_for('info', pagename='about', locale=current_locale) }}">{{ _('about') }}</a>{{- "" -}} + <a href="{{ url_for('info', pagename='about') }}">{{ _('about') }}</a>{{- "" -}} <a href="{{ url_for('preferences') }}">{{ _('preferences') }}</a>{{- "" -}} </span>{{- "" -}} </div> |