summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-31 12:42:04 +0100
committerMartin Fischer <martin@push-f.com>2022-02-01 06:29:22 +0100
commit14338e2c3b796b9dfb74430751d75067018a70fd (patch)
treeb2cf32f5c9269e3c16ce56372a9d5fc22838a257 /searx/templates
parentc53c295573d6261be682cc506eefd5d8f0c04e07 (diff)
downloadsearxng-14338e2c3b796b9dfb74430751d75067018a70fd.tar.gz
searxng-14338e2c3b796b9dfb74430751d75067018a70fd.zip
[enh] generate navigation for help pages
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/oscar/help.html7
-rw-r--r--searx/templates/simple/help.html7
2 files changed, 14 insertions, 0 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 %}