From fb9eedbf40410a5558bfc03b4c50f7ff41b023b4 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 31 Jan 2022 11:24:45 +0100 Subject: [enh] introduce /help route Translation will be implemented in the future. For now the "en" in /help/en/ is hardcoded. --- searx/templates/simple/help.html | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 searx/templates/simple/help.html (limited to 'searx/templates/simple/help.html') diff --git a/searx/templates/simple/help.html b/searx/templates/simple/help.html new file mode 100644 index 000000000..0be59f495 --- /dev/null +++ b/searx/templates/simple/help.html @@ -0,0 +1,5 @@ +{% extends 'simple/page_with_header.html' %} +{% block title %}{{ page.title }} - {% endblock %} +{% block content %} +{{ page.content | safe }} +{% endblock %} -- cgit v1.2.3 From 14338e2c3b796b9dfb74430751d75067018a70fd Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 31 Jan 2022 12:42:04 +0100 Subject: [enh] generate navigation for help pages --- searx/templates/simple/help.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'searx/templates/simple/help.html') 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 %} +
    +{% for name, page in all_pages %} +
  • + {{page.title}} +
  • +{% endfor %} +
{{ page.content | safe }} {% endblock %} -- cgit v1.2.3