summaryrefslogtreecommitdiff
path: root/searx/templates/__common__
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-07-21 14:27:49 +0200
committerGitHub <noreply@github.com>2021-07-21 14:27:49 +0200
commit4f0d232a3dc95042be809d6fa6e93ca746156658 (patch)
tree4155de82568afd651558cb91a5d59aa256577a19 /searx/templates/__common__
parent17e028e57928f7925a2d1ee1177d28ff33ff8487 (diff)
parent19abaf272def8faee5e7d3652d95413c3256d638 (diff)
Merge pull request #213 from return42/drop-brand
[mod] drop searx.brand namespace
Diffstat (limited to 'searx/templates/__common__')
-rw-r--r--searx/templates/__common__/about.html14
-rw-r--r--searx/templates/__common__/new_issue.html6
2 files changed, 11 insertions, 9 deletions
diff --git a/searx/templates/__common__/about.html b/searx/templates/__common__/about.html
index 72c7b133f..96ebab28a 100644
--- a/searx/templates/__common__/about.html
+++ b/searx/templates/__common__/about.html
@@ -11,7 +11,7 @@
<p>More about SearXNG ...</p>
<ul>
- <li><a href="{{ brand.GIT_URL }}">github</a></li>
+ <li><a href="{{ get_setting('brand.git_url') }}">SearXNG sources</a></li>
<li><a href="https://www.transifex.com/projects/p/searx/">transifex</a></li>
</ul>
@@ -30,7 +30,8 @@
</li>
<li>
SearXNG is free software, the code is 100% open and you can help to make
- it better. See more on <a href="{{ brand.GIT_URL }}">github</a>.
+ it better. See more on <a href="{{ get_setting('brand.git_url')
+ }}">SearXNG sources</a>.
</li>
</ul>
@@ -80,10 +81,11 @@
<p>
SearXNG appreciates your concern regarding logs, so take the code from
- the <a href="{{ brand.GIT_URL }}">SearXNG project</a> and run it yourself!
+ the <a href="{{ get_setting('brand.git_url') }}">SearXNG project</a> and
+ run it yourself!
</p>
<p>
- Add your instance to this <a href="{{ brand.PUBLIC_INSTANCES }}"> list of
+ Add your instance to this <a href="{{ get_setting('brand.public_instances') }}"> list of
public instances</a> to help other people reclaim their privacy and make the
Internet freer! The more decentralized the Internet is, the more freedom we
have!
@@ -92,8 +94,8 @@
<h2>Where are the docs & code of this instance?</h2>
<p>
- See the <a href="{{ brand.DOCS_URL }}">{{ brand.DOCS_URL }}</a>
- and <a href="{{ brand.GIT_URL }}">{{ brand.GIT_URL }}</a>
+ See the <a href="{{ get_setting('brand.docs_url') }}">SearXNG docs</a>
+ and <a href="{{ get_setting('brand.git_url') }}">SearXNG sources</a>
</p>
</div>
diff --git a/searx/templates/__common__/new_issue.html b/searx/templates/__common__/new_issue.html
index 1b28804af..c741a049f 100644
--- a/searx/templates/__common__/new_issue.html
+++ b/searx/templates/__common__/new_issue.html
@@ -1,5 +1,5 @@
-{% macro new_issue(new_issue_url, engine_name, engine_reliability) %}
-<form action="{{ new_issue_url }}" method="GET">
+{% macro new_issue(engine_name, engine_reliability) %}
+<form action="{{ get_setting('brand.new_issue_url') }}" method="GET">
<input name="title" type="hidden" value="Bug: {{ engine_name }} engine">
<input name="labels" type="hidden" value="bug">
<input name="template" type="hidden" value="bug-report.md">
@@ -52,6 +52,6 @@ or manually by executing the searx/webapp.py file? -->
{{-'\n '}}* {{ test_name }}: {% for result in results%}`{{ result }}`,{% endfor -%}
{%- endfor -%}
</textarea>
- <button type="submit" class="github-issue-button" title="{{ new_issue_url }}">{{ _('Submit a new issue on Github including the above information') }}</button>
+ <button type="submit" class="github-issue-button" title="{{ get_setting('brand.new_issue_url') }}">{{ _('Submit a new issue on Github including the above information') }}</button>
</form>
{% endmacro %}