summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/templates/oscar/help.html7
-rw-r--r--searx/templates/simple/help.html7
-rwxr-xr-xsearx/webapp.py4
3 files changed, 17 insertions, 1 deletions
diff --git a/searx/templates/oscar/help.html b/searx/templates/oscar/help.html
index 7865f6649..bf311fb4a 100644
--- a/searx/templates/oscar/help.html
+++ b/searx/templates/oscar/help.html
@@ -1,5 +1,12 @@
{% extends "oscar/base.html" %}
{% block title %}{{ page.title }} - {% endblock %}
{% block content %}
+<ul class="nav nav-tabs">
+{% for name, page in all_pages %}
+ <li {% if name == page_filename %}class="active"{% endif %}>
+ <a href="{{name}}">{{page.title}}</a>
+ </li>
+{% endfor %}
+</ul>
{{ page.content | safe }}
{% endblock %}
diff --git a/searx/templates/simple/help.html b/searx/templates/simple/help.html
index 0be59f495..5f571ae01 100644
--- a/searx/templates/simple/help.html
+++ b/searx/templates/simple/help.html
@@ -1,5 +1,12 @@
{% extends 'simple/page_with_header.html' %}
{% block title %}{{ page.title }} - {% endblock %}
{% block content %}
+<ul class="tabs">
+{% for name, page in all_pages %}
+ <li>
+ <a href="{{name}}" {% if name == page_filename %}class="active"{% endif %}>{{page.title}}</a>
+ </li>
+{% endfor %}
+</ul>
{{ page.content | safe }}
{% endblock %}
diff --git a/searx/webapp.py b/searx/webapp.py
index bd296cddc..5e05f9781 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -889,7 +889,9 @@ def help_page(pagename):
if page is None:
flask.abort(404)
- return render('help.html', page=user_help.PAGES[pagename])
+ return render(
+ 'help.html', page=user_help.PAGES[pagename], all_pages=user_help.PAGES.items(), page_filename=pagename
+ )
@app.route('/autocompleter', methods=['GET', 'POST'])