diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2023-06-02 19:55:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 19:55:43 +0200 |
| commit | 1541f8660eeccd7eb426bb655f28217033770eb3 (patch) | |
| tree | 3f4e4735a35e18d61eccd6d94f7dbb7923546727 /searx/templates/simple/page_with_header.html | |
| parent | d289a8b22515e36d015b51c95bce716427329ca5 (diff) | |
| parent | b867c39ce0b4c0c15451aef27b071b1718ef1d50 (diff) | |
Merge pull request #2481 / [mod] template preferences: split into elements
HINT: this patch has no functional change / it is the preparation for following changes and bugfixes
Over the years, the preferences template became an unmanageable beast. To make the source code more readable the monolith is splitted into elements. The splitting into elements also has the advantage that a new template can make use of them.
The reversed checkbox is a quirk that is only used in the prefereces and must be eliminated in the long term. For this the macro 'checkbox_onoff_reversed' was added to the preferences.html template. The 'checkbox' macro is also a quirk of the preferences.html we don't want to use in other templates (it is an input-checkbox in a HTML form that was misused for status display).
Diffstat (limited to 'searx/templates/simple/page_with_header.html')
| -rw-r--r-- | searx/templates/simple/page_with_header.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/searx/templates/simple/page_with_header.html b/searx/templates/simple/page_with_header.html index d4466b612..719553a38 100644 --- a/searx/templates/simple/page_with_header.html +++ b/searx/templates/simple/page_with_header.html @@ -1,5 +1,7 @@ -{% set body_class = "page_with_header" %} -{% extends "simple/base.html" %} -{% block header %} -<a href="{{ url_for('index') }}"><img class="logo" src="{{ url_for('static', filename='img/searxng.png') }}" alt="SearXNG"></a> -{% endblock %} +{%- set body_class = "page_with_header" -%} +{%- extends "simple/base.html" -%} +{%- block header -%} + <a href="{{ url_for('index') }}">{{- '' -}} + <img class="logo" src="{{ url_for('static', filename='img/searxng.png') }}" alt="SearXNG">{{- '' -}} + </a>{{- '' -}} +{%- endblock -%} |