on master help sign in
Add link to contact instance maintainer to footer of each page (#2391)
commit19fce74443b7183917ef67bfebf36432e0d1e1e8 authorBBaoVanC <github@bbaovanc.com> dateFri 18 Dec 2020, 02:53 (6 years ago) parent5c6a540
5 files changed+10−2
Makefile+4 searx/brand.py+1 searx/templates/oscar/base.html+2−1 searx/templates/simple/base.html+2−1 utils/brand.env+1
Makefile+4
@@ -6,6 +6,7 @@ export GIT_URL=https://github.com/searx/searx
66export GIT_BRANCH=master
77export SEARX_URL=https://searx.me
88export DOCS_URL=https://searx.github.io/searx
9+export CONTACT_URL=mailto:contact@example.com
910# END Makefile setup
1011
1112include utils/makefile.include
@@ -46,6 +47,7 @@ help-min:
4647 @echo ' SEARX_URL = $(SEARX_URL)'
4748 @echo ' GIT_URL = $(GIT_URL)'
4849 @echo ' DOCS_URL = $(DOCS_URL)'
50+ @echo ' CONTACT_URL = $(CONTACT_URL)'
4951 @echo ''
5052 @$(MAKE) -e -s make-help
5153
@@ -124,6 +126,7 @@ buildenv:
124126 $(Q)echo "SEARX_URL = '$(SEARX_URL)'" >> searx/brand.py
125127 $(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
126128 $(Q)echo "PUBLIC_INSTANCES = 'https://searx.space'" >> searx/brand.py
129+ $(Q)echo "CONTACT_URL = '$(CONTACT_URL)'" >> searx/brand.py
127130 $(Q)echo "build utils/brand.env"
128131 $(Q)echo "export GIT_URL='$(GIT_URL)'" > utils/brand.env
129132 $(Q)echo "export GIT_BRANCH='$(GIT_BRANCH)'" >> utils/brand.env
@@ -131,6 +134,7 @@ buildenv:
131134 $(Q)echo "export SEARX_URL='$(SEARX_URL)'" >> utils/brand.env
132135 $(Q)echo "export DOCS_URL='$(DOCS_URL)'" >> utils/brand.env
133136 $(Q)echo "export PUBLIC_INSTANCES='https://searx.space'" >> utils/brand.env
137+ $(Q)echo "export CONTACT_URL='$(CONTACT_URL)'" >> utils/brand.env
134138
135139
136140# node / npm
searx/brand.py+1
@@ -4,3 +4,4 @@ ISSUE_URL = 'https://github.com/searx/searx/issues'
44SEARX_URL = 'https://searx.me'
55DOCS_URL = 'https://searx.github.io/searx'
66PUBLIC_INSTANCES = 'https://searx.space'
7+CONTACT_URL = 'mailto:contact@example.com'
searx/templates/oscar/base.html+2−1
@@ -88,7 +88,8 @@
8888 {{ _('Powered by') }} <a href="{{ brand.DOCS_URL }}">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
8989 <a href="{{ brand.GIT_URL }}">{{ _('Source code') }}</a> |
9090 <a href="{{ brand.ISSUE_URL }}">{{ _('Issue tracker') }}</a> |
91− <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>
91+ <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a> |
92+ <a href="{{ brand.CONTACT_URL }}">{{ _('Contact instance maintainer') }}</a>
9293 </small>
9394 </p>
9495 </div>
searx/templates/simple/base.html+2−1
@@ -54,7 +54,8 @@
5454 {{ _('Powered by') }} <a href="{{ url_for('about') }}">searx</a> - {{ searx_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
5555 <a href="{{ brand.GIT_URL }}">{{ _('Source code') }}</a> |
5656 <a href="{{ brand.ISSUE_URL }}">{{ _('Issue tracker') }}</a> |
57− <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>
57+ <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a> |
58+ <a href="{{ brand.CONTACT_URL }}">{{ _('Contact instance maintainer') }}</a>
5859 </p>
5960 </footer>
6061 <!--[if gte IE 9]>-->
utils/brand.env+1
@@ -4,3 +4,4 @@ export ISSUE_URL='https://github.com/searx/searx/issues'
44export SEARX_URL='https://searx.me'
55export DOCS_URL='https://searx.github.io/searx'
66export PUBLIC_INSTANCES='https://searx.space'
7+export CONTACT_URL='mailto:contact@example.com'