summaryrefslogtreecommitdiff
path: root/searx/templates
AgeCommit message (Collapse)Author
2024-11-29[feat] search: shift/ctrl click a category to select multiple categoriesBnyro
2024-11-25[mod] add CSS (LESS) to xsl style to view rss in browserMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-11-25[refactor] <type> element isn't a part of the RSS 2.0 spec [1]Markus Heiser
[1] https://cyber.harvard.edu/rss/rss.html Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-11-25[feat] rss: add xsl style to view rss in browserBnyro
2024-11-25[chore] rss: rename from searx to SearXNGBnyro
2024-11-24[chore] *: fix typos detected by typos-cliBnyro
2024-10-26[build] /staticMarkus Heiser
2024-10-16[build] /staticmrpaulblack
2024-10-05[mod] favicons: simplify RTL in template & CSSMarkus Heiser
Comes from a sughgestion in: - https://github.com/searxng/searxng/pull/3727#issuecomment-2388998803 Suggested-by: Bnyro <bnyro@tutanota.com> Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-10-05[mod] Revision of the favicon solutionMarkus Heiser
All favicons implementations have been documented and moved to the Python package: searx.favicons There is a configuration (based on Pydantic) for the favicons and all its components: searx.favicons.config A solution for caching favicons has been implemented: searx.favicon.cache If the favicon is already in the cache, the returned URL is a data URL [1] (something like `data:image/png;base64,...`). By generating a data url from the FaviconCache, additional HTTP roundtripps via the favicon_proxy are saved: favicons.proxy.favicon_url The favicon proxy service now sets a HTTP header "Cache-Control: max-age=...": favicons.proxy.favicon_proxy The resolvers now also provide the mime type (data, mime): searx.favicon.resolvers [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-10-05[feat] add favicons to result urlsBrock Vojkovic
2024-10-03[refactor] simple theme: *.less - replace hardcoded colorsBnyro
Closes: https://github.com/searxng/searxng/issues/3842
2024-10-03[feat] simple theme: pure black theme styleBnyro
2024-09-21[fix] simple template: drop useless ``aria-labelledby`` attributesMarkus
This patch removes the ``aria-labelledby`` attributes for which there is no tag with the corresponding ID. Reported-by: @glanham-jr https://github.com/searxng/searxng/issues/3793#issuecomment-2351689483 Signed-off-by: Markus <markus@venom.fritz.box>
2024-09-21[fix] simple template: macro checkbox_onoff_reversedMarkus
In its previous implementation, the macro ``checkbox_onoff_reversed`` always created an ``aria-labelledby`` attribute, even if there was no descriptive tag with the generated ID (used as the value of the ``aria-labelledby``). Before this patch, the Nu-HTML-Checker [1] reported 255 issues of this type:: The aria-labelledby attribute must point to an element in the same document. (255) [1] https://validator.w3.org/nu/ Signed-off-by: Markus <markus@venom.fritz.box>
2024-09-21[fix] simple template: add ID to elements used for aria-labelledbyMarkus
The ``aria-labelledby`` [1] attribute identifies the element that labels the element it is applied to. The templates ``infinite_scroll.html`` and ``search_on_category_select.html`` define a ``aria-labelledby`` at the <input> tag but miss the id in the <div> with the description. [1] https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby Signed-off-by: Markus <markus@venom.fritz.box>
2024-09-21[fix] Removes ``/>`` ending tags for void HTML elementsMarkus
continuation of commit: 0b832f19b Signed-off-by: Markus <markus@venom.fritz.box>
2024-09-15[fix] Removes ``/>`` ending tags for void HTML elementsGrant Lanham
Removes ``/>`` ending tags for void elements [1] and replaces them with ``>``. Part of the larger cleanup to cleanup invalid HTML throughout the codebase [2]. [1] https://html.spec.whatwg.org/multipage/syntax.html#void-elements [2] https://github.com/searxng/searxng/issues/3793
2024-09-14[fix] search: crash when no engines are used to searchBnyro
2024-09-03[mod] enable calculator and allow plugin on public instancesMarkus Heiser
Remove quirks that prevented the Calculator from being used on public instances. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-09-03[feat] results: show response timesGenericMale
2024-08-28[fix] search: don't show categories without active engineGenericMale
2024-07-28[fix] fix issues in the language menue introduced by PR #3645Markus Heiser
In my review of [1] I tried to reformat the template code of the language menue whereby I have made two mistakes. - default language was added twice - in the 'Auto-detect' item a hard coded `[auto]` was implemented where the `search_language` variable was needed. [1] https://github.com/searxng/searxng/issues/3645 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-07-27[feat] videos template: support for view countBnyro
2024-07-27[fix] products template: don't quote html tags in result.contentMarkus Heiser
The result.content field is *safe* HTML, tags to highlight search terms are intended. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-07-14[mod] UX: flush flag icon to right in language select option valuesGrant Lanham
If the flag icon is first, it prevents easily searching the select list on the keyboard. By moving the icon fully to the right, this will enable a user to search the select list. Closes: https://github.com/searxng/searxng/issues/3645
2024-06-15[perf] torrents.html, files.html: don't parse and re-format filesizeBnyro
2024-05-16[mod] simple theme: drop img_src from default resultsMarkus Heiser
The use of img_src AND thumbnail in the default results makes no sense (only a thumbnail is needed). In the current state this is rather confusing, because img_src is displayed like a thumbnail (small) and thumbnail is displayed like an image (large). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-05-15[mod] package.html template: additional links (a python dict)Daniel Kukula
- Closes: https://github.com/searxng/searxng/issues/3456
2024-05-09[feat] plugins: new calculator pluginBnyro
2024-05-04[fix] respect user preferences to open links in new tab for short answersYaksh Bariya
Previously only result urls were set to open in new tab by default, this should make the behaviour consistent. Also adds the missing rel="noreferrer" to the anchor tag. Although this should not be needed as long as the `referrer-policy: no-referrer` header is set, it's always nice to play safer than to have to say sorry. For example some reverse proxy configurations might strip off unwhitelisted headers in which case it's nice to have this set.
2024-04-27improve "search existing issues from github" linkJinyuan Huang
2024-04-27[feat] preferences: button to enable/disable all enginesBnyro
2024-04-27[fix] ionic.io/ionicons - add back missing class="ionicon"Markus Heiser
Seems to me svg2jinja added the class in the past .. but no longer in new builds / this patch adds the class back by using addAttributesToSVGElement [1]. To test this patch use: $ ./manage themes.simple $ cat searx/templates/simple/icons.html and check `class="ionicon"` is in the outer `<svg ..>` tags. [1] https://svgo.dev/docs/plugins/add-attributes-to-svg-elements/ [2] https://ionic.io/ionicons Closes: https://github.com/searxng/searxng/issues/3383 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-04-18[feat] template: add apple-touch-icon in html headermrpaulblack
* this makes it possible to add SearXNG to iOS devices homescreen with a proper icon
2024-04-08[fix] new builds of icons.html do miss class="ionicon"Markus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-04-08[build] /staticMarkus Heiser
2024-02-25[feat] images: show resolution inside the image and fix image details overflowBnyro
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2024-02-25[refactor] images: add resolution, image format and filesize fieldsBnyro
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2024-02-25[feat] templates: add package result templateBnyro
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2024-02-25[fix] opensearxh.xml: firefox v123 does not except self-URI (URL with param)Markus Heiser
Before this patch we had a address in the rel-self-template with params [1]: GET:: <Url method="GET" rel="self" template="/opensearch.xml?method=GET&amp;autocomplete=google" type="application/opensearchdescription+xml"/> POST:: <Url method="POST" rel="self" template="/opensearch.xml?method=POST&amp;autocomplete=google" type="application/opensearchdescription+xml"/> The first one (GET) is no longer accepted by firefox since v123, the latter one was always been wrong (since it mixes GET params with a POST request). Since Firefox v123 a template syntax [2] in the rel-self-template is no longer supported / Firefox will report an error:: Firefox could not download the search plugin from: http://127.0.0.1:8888//opensearch.xml?method=GET&autocomplete=google This patch reduce the URL to:: template="http://127.0.0.1:8888/opensearch.xml" [1] https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md#url-rel-values [2] https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md#opensearch-url-template-syntax Closes: https://github.com/searxng/searxng/issues/3227 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-02-10[mod] footer: i18n for the link names in the footerMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-02-10[feat] footer: support for custom entriesBnyro
2024-02-01[fix] remove missing link icon macroallixx
2024-01-31Remove rtl exceptionHermógenes Oliveira
This right-to-left exception doesn't seem to be called for.
2024-01-31Fix media exposure toggleHermógenes Oliveira
Make initially hidden and the toggle button consistent.
2024-01-31Provide template for results in file categoryHermógenes Oliveira
This is used, for instance, by the recoll engine.
2024-01-31[fix] justify engines/cached/proxied verticallyallixx
2024-01-29[feat] preferences: button to copy input to restore preferences hashBnyro
2023-12-23[mod] simplify no results on pages > 1 to "There are no more results."Markus Heiser
BTW: remove not needed whitespaces in the generated HTML Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>