summaryrefslogtreecommitdiff
path: root/searx/__init__.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-07-18 15:38:52 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-21 13:38:28 +0200
commit3f638ed196cdd98d933d6e70dffe374e2d2456dc (patch)
tree7122666af397be3a3dc210f6ec109ca7c0a4528d /searx/__init__.py
parentc9220de690f0081777cf43acb547f2b3818fd8fe (diff)
downloadsearxng-3f638ed196cdd98d933d6e70dffe374e2d2456dc.tar.gz
searxng-3f638ed196cdd98d933d6e70dffe374e2d2456dc.zip
[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>
Diffstat (limited to 'searx/__init__.py')
0 files changed, 0 insertions, 0 deletions