diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-10-13 09:28:42 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-10-20 10:18:33 +0200 |
| commit | 937165853185ca16b0da6f72bc42bd1487ea0dcb (patch) | |
| tree | 70da1dce7cb51d0f59cd36392103e8f33318f379 /searx/templates/simple/result_templates/default.html | |
| parent | ee6d4f322f4bda18759ffb99380a06923424695b (diff) | |
[mod] typification of SearXNG: add new result type File
This PR adds a new result type: File
Python class: searx/result_types/file.py
Jinja template: searx/templates/simple/result_templates/file.html
CSS (less) client/simple/src/less/result_types/file.less
Class 'File' (singular) replaces template 'files.html' (plural). The renaming
was carried out because there is only one file (singular) in a result. Not to be
confused with the category 'files' where in multiple results can exist.
As mentioned in issue [1], the class '.category-files' was removed from the CSS
and the stylesheet was adopted in result_types/file.less (there based on the
templates and no longer based on the category).
[1] https://github.com/searxng/searxng/issues/5198
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/result_templates/default.html')
| -rw-r--r-- | searx/templates/simple/result_templates/default.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/result_templates/default.html b/searx/templates/simple/result_templates/default.html index 8a6329248..dcf6ad142 100644 --- a/searx/templates/simple/result_templates/default.html +++ b/searx/templates/simple/result_templates/default.html @@ -3,7 +3,7 @@ {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} {% if result.iframe_src -%} -<p class="altlink"><a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-media-{{ index }}" data-btn-text-collapsed="{{ _('show media') }}" data-btn-text-not-collapsed="{{ _('hide media') }}">{{ icon('music-note') }} {{ _('show media') }}</a></p> +<p class="altlink"><a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-media-{{ index }}" data-btn-text-collapsed="{{ _('show media') }}" data-btn-text-not-collapsed="{{ _('hide media') }}">{{ icon('play') }} {{ _('show media') }}</a></p> {%- endif %} {%- if result.content %} <p class="content"> |