mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[mod] source code url: GIT_URL + '/tree/' + GIT_BRANCH
The link 'Source code' in the footer should link to the branch URL: GIT_URL + '/tree/' + GIT_BRANCH This URL fits at least for github and gitlab. BTW clear the naming and replace: - `searx_git_url` and `searx_git_branch` by `GIT_URL` and `GIT_BRANCH` - 'searx_version' by 'searxng_version' Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
2455f1d06a
commit
3e9fc7934f
4 changed files with 12 additions and 12 deletions
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="description" content="SearXNG — a privacy-respecting, hackable metasearch engine">
|
<meta name="description" content="SearXNG — a privacy-respecting, hackable metasearch engine">
|
||||||
<meta name="keywords" content="SearXNG, search, search engine, metasearch, meta search">
|
<meta name="keywords" content="SearXNG, search, search engine, metasearch, meta search">
|
||||||
<meta name="generator" content="searxng/{{ searx_version }}">
|
<meta name="generator" content="searxng/{{ searxng_version }}">
|
||||||
<meta name="referrer" content="no-referrer">
|
<meta name="referrer" content="no-referrer">
|
||||||
<meta name="robots" content="noarchive">
|
<meta name="robots" content="noarchive">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
@ -51,8 +51,8 @@
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
{{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searx_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
|
{{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searxng_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
|
||||||
<a href="{{ searx_git_url }}">{{ _('Source code') }}</a> |
|
<a href="{{ GIT_URL + '/tree/' + GIT_BRANCH }}">{{ _('Source code') }}</a> |
|
||||||
<a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a> |
|
<a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a> |
|
||||||
<a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a> |
|
<a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a> |
|
||||||
<a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>{% if get_setting('general.contact_url') %} |
|
<a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>{% if get_setting('general.contact_url') %} |
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
<textarea name="body" class="issue-hide">{{- '' -}}
|
<textarea name="body" class="issue-hide">{{- '' -}}
|
||||||
|
|
||||||
**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
|
**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
|
||||||
{% if searx_git_url and searx_git_url != 'unknow' %}
|
{% if GIT_URL and GIT_URL != 'unknow' %}
|
||||||
Repository: {{ searx_git_url }}
|
Repository: {{ GIT_URL }}
|
||||||
Branch: {{ searx_git_branch }}
|
Branch: {{ GIT_BRANCH }}
|
||||||
Version: {{ searx_version }}
|
Version: {{ searxng_version }}
|
||||||
<!-- Check if these values are correct -->
|
<!-- Check if these values are correct -->
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -61,8 +61,8 @@ _NOTSET = _NotSetClass()
|
||||||
|
|
||||||
def searx_useragent() -> str:
|
def searx_useragent() -> str:
|
||||||
"""Return the searx User Agent"""
|
"""Return the searx User Agent"""
|
||||||
return 'searx/{searx_version} {suffix}'.format(
|
return 'searx/{searxng_version} {suffix}'.format(
|
||||||
searx_version=VERSION_TAG, suffix=settings['outgoing']['useragent_suffix']
|
searxng_version=VERSION_TAG, suffix=settings['outgoing']['useragent_suffix']
|
||||||
).strip()
|
).strip()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -448,8 +448,9 @@ def render(template_name: str, **kwargs):
|
||||||
# values from settings
|
# values from settings
|
||||||
kwargs['search_formats'] = [x for x in settings['search']['formats'] if x != 'html']
|
kwargs['search_formats'] = [x for x in settings['search']['formats'] if x != 'html']
|
||||||
kwargs['instance_name'] = get_setting('general.instance_name')
|
kwargs['instance_name'] = get_setting('general.instance_name')
|
||||||
kwargs['searx_version'] = VERSION_STRING
|
kwargs['searxng_version'] = VERSION_STRING
|
||||||
kwargs['searx_git_url'] = GIT_URL
|
kwargs['GIT_URL'] = GIT_URL
|
||||||
|
kwargs['GIT_BRANCH'] = GIT_BRANCH # url: GIT_URL + '/tree/' + GIT_BRANCH
|
||||||
kwargs['get_setting'] = get_setting
|
kwargs['get_setting'] = get_setting
|
||||||
kwargs['get_pretty_url'] = get_pretty_url
|
kwargs['get_pretty_url'] = get_pretty_url
|
||||||
|
|
||||||
|
@ -1241,7 +1242,6 @@ def stats():
|
||||||
engine_stats = engine_stats,
|
engine_stats = engine_stats,
|
||||||
engine_reliabilities = engine_reliabilities,
|
engine_reliabilities = engine_reliabilities,
|
||||||
selected_engine_name = selected_engine_name,
|
selected_engine_name = selected_engine_name,
|
||||||
searx_git_branch = GIT_BRANCH,
|
|
||||||
# fmt: on
|
# fmt: on
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue