mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[mod] source code url: add 'general.git_url_format' to settings.yml
Suggested-by: @dalf https://github.com/searxng/searxng/pull/1295#issuecomment-1152608817 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
3e9fc7934f
commit
830224c261
5 changed files with 7 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ from markdown_it import MarkdownIt
|
|||
|
||||
from .. import get_setting
|
||||
from ..compat import cached_property
|
||||
from ..version import GIT_URL
|
||||
from ..version import GIT_URL, GIT_BRANCH
|
||||
from ..locales import LOCALE_NAMES
|
||||
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ class InfoPage:
|
|||
return '[%s](%s)' % (query, url)
|
||||
|
||||
ctx = {}
|
||||
ctx['GIT_URL'] = GIT_URL
|
||||
ctx['GIT_URL'] = get_setting('general.git_url_format').format(GIT_URL=GIT_URL, GIT_BRANCH=GIT_BRANCH)
|
||||
ctx['get_setting'] = get_setting
|
||||
ctx['link'] = _md_link
|
||||
ctx['search'] = _md_search
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue