diff options
| author | Martin Fischer <martin@push-f.com> | 2022-01-04 18:00:45 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2022-01-05 11:03:44 +0100 |
| commit | a4c2cfb837a3f92e2c0f0b8a0bac7a6e03499640 (patch) | |
| tree | c522af821c7584896998ebc74569e9a534fc5ef5 /searx/webapp.py | |
| parent | b38036d519c8b74d7be972e7b730b50f92fa8db4 (diff) | |
[enh] change categories_as_tabs from a list to a dict
The tab icon names are currently hard coded in the templates.
This commit lets us introduce an icon property in the future, e.g:
categories_as_tabs:
general:
icon: search-outline
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index b40aa912e..f2957a944 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -439,7 +439,7 @@ def render(template_name, override_theme=None, **kwargs): kwargs['query_in_title'] = request.preferences.get_value('query_in_title') kwargs['safesearch'] = str(request.preferences.get_value('safesearch')) kwargs['theme'] = get_current_theme_name(override=override_theme) - kwargs['categories_as_tabs'] = settings['categories_as_tabs'] + kwargs['categories_as_tabs'] = list(settings['categories_as_tabs'].keys()) kwargs['categories'] = _get_enable_categories(categories.keys()) kwargs['OTHER_CATEGORY'] = OTHER_CATEGORY |