1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-18 02:10:12 +01:00
searxng/searx/templates/oscar/messages
Markus Heiser 3f638ed196 [mod] drop usage of the searx.brand namespace (templates & /config)
In the templates and the /config (JSON) the usage of the 'brand.*' name
space is replaced by 'searx.get_setting' function.

- new_issue_url          --> get_setting('brand.new_issue_url')
- brand.GIT_URL          --> get_setting('brand.git_url')
- brand.PUBLIC_INSTANCES --> get_setting('brand.public_instances')
- brand.DOCS_URL         --> get_setting('brand.docs_url')
- brand.ISSUE_URL        --> get_setting('brand.issue_url')
- brand.CONTACT_URL      --> get_setting('general.contact_url', '')

The macro 'new_issue' from searx/templates/*/messages/no_results.html
is now imported with context::

    {% from '__common__/new_issue.html' import new_issue with context %}

To get *public instances URL* from context's 'get_setting()' function::

    get_setting('brand.public_instances','')

Macro's prototype does no longer need the 'new_issue_url' argument and has been
changed to::

    macro new_issue(engine_name, engine_reliability)

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-21 13:38:28 +02:00
..
first_time.html oscar template: update translation files 2014-10-05 14:40:47 +02:00
no_cookies.html [enh] oscar template: using table instead of container-fluid to show cookies 2015-06-05 09:07:59 +02:00
no_data_available.html oscar template: update messages 2014-10-05 14:40:46 +02:00
no_results.html [mod] drop usage of the searx.brand namespace (templates & /config) 2021-07-21 13:38:28 +02:00
save_settings_successfull.html oscar template: update translation files 2014-10-05 14:40:47 +02:00
unknow_error.html oscar template: update translation files 2014-10-05 14:40:47 +02:00