mirror of https://github.com/searxng/searxng
[enh] generate navigation for help pages
parent
c53c295573
commit
14338e2c3b
@ -1,5 +1,12 @@
|
|||||||
{% extends "oscar/base.html" %}
|
{% extends "oscar/base.html" %}
|
||||||
{% block title %}{{ page.title }} - {% endblock %}
|
{% block title %}{{ page.title }} - {% endblock %}
|
||||||
{% block content %}
|
{% 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 }}
|
{{ page.content | safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
{% extends 'simple/page_with_header.html' %}
|
{% extends 'simple/page_with_header.html' %}
|
||||||
{% block title %}{{ page.title }} - {% endblock %}
|
{% block title %}{{ page.title }} - {% endblock %}
|
||||||
{% block content %}
|
{% 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 }}
|
{{ page.content | safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue