summaryrefslogtreecommitdiff
path: root/searx/templates
AgeCommit message (Collapse)Author
2021-11-15[build] /staticMarkus Heiser
2021-11-13[fix] simple theme: /preferences: add tokens fieldAlexandre Flament
include changes to display input text field in the preferences
2021-11-13[fix] delete trailing whitespaceMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-13[simple theme] update to ion icons 5 and drop webfontMrPaulBlack
* update from ionicons-npm to ionicons ver.5 * drop the webfont built by grunt for icons * built icons.html template for inlining icons with jinja2 into html * update icon to use mostly the outline version * add icons to categories and do not display them on mobile to save space * remove all legacy ion icon font files from simple theme * icons.html is added in this commit since make statc.build.restore requires git to know the file already * cleanup error-dialog
2021-11-13[build] /staticMarkus Heiser
2021-11-13[simple theme] replace old searx logo by searxng-wordmark.min.svgMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/473#issuecomment-962476683 Suggested-by: @MrPaulBlack https://github.com/searxng/searxng/pull/473#issuecomment-962579826 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-13[enh] minify searxng-wordmark.svg (HTMLMinifier)Markus Heiser
Command:: ./node_modules/.bin/html-minifier \ --remove-comments \ --collapse-whitespace \ src/svg/searxng-wordmark.svg \ -o ../../../templates/__common__/searxng-wordmark.min.svg - html-minifier: https://github.com/kangax/html-minifier - onilne: https://kangax.github.io/html-minifier - grunt: https://www.npmjs.com/package/grunt-contrib-htmlmin - grunt-contrib-htmlmin: https://github.com/gruntjs/grunt-contrib-htmlmin - npm: https://www.npmjs.com/package/html-minifier To test, rebuild your node environment:: make node.env Alternatives: - pretty-data: https://github.com/vkiryukhin/pretty-data - grunt: https://www.npmjs.com/package/grunt-xmlmin - grunt-xmlming: https://github.com/dtrunk90/grunt-xmlmin - npm: https://www.npmjs.com/package/grunt-xmlmin - minify-xml: https://github.com/kristian/minify-xml - no grunt package available - npm: https://www.npmjs.com/package/minify-xml src/svg/searxng-wordmark.svg': '../../../templates/__common__/searxng-wordmark.min.svg' Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-11[fix] scaling of result page on small screens by @ZetaTomMrPaulBlack
* thanks to https://github.com/ZetaTom for the fix! * set the width of the input#q element to 100% of the 1fr space of the grid layout * change the viewport meta tag to th recommended value (see: https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag#viewport_basics) * add a new @ultra-small-phone width of 20rem; when a device is smaller than that the search logo does not get displayed on the result page anymore
2021-11-05[fix] simple theme: disable hotkeys when they are not enabled in the preferencesAlexandre Flament
2021-11-05[fix] simple theme: fix open in a new tab preferenceAlexandre Flament
2021-10-29[mod] simple theme: SearXNG logoAlexandre Flament
2021-10-28[enh] simple theme: image detailAlexandre Flament
When an image is selected, the detail with the full size image is displayed on the right side of the screen (or full screen on tablet and phone). When Javascript is disabled, the thumbnail is a linked to the full size image, as it was before. When the image proxy is enabled, the full size image is also proxied, in consequence this commit increases the bandwidth usage of instances. The detail can be closed by the close button or the Esc key. It is possible to go to the next and previous images using the j and k keys or the button on the top right of the screen.
2021-10-27[simple theme] make url clickable and cleanup result article headerMrPaulBlack
* url in article head is clickable * url is bigger now 0.96em font * url is now left floating on tablet and phone * there is a 8px top and bottom margin on h3 result heading
2021-10-27[simple theme] add logo to search form on result pageMrPaulBlack
* rework search form as grid layout * remove various paddings and margins * add logo and link to index to search form * make categories bigger on phone
2021-10-15[fix] typos reported from weblate translatorsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-10-12[fix] templates: lang attribute of html uses hyphenAlexandre Flament
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-lang https://www.w3.org/TR/REC-xml/#sec-lang-tag
2021-10-09[template] move result url to top of articleMrPaulBlack
2021-10-02Merge pull request #367 from dalf/searxng-githubAlexandre Flament
SearXNG: .github, searxng-docker
2021-10-01SearXNG: simple themeAlexandre Flament
2021-10-01SearXNG: .github, searxng-dockerAlexandre Flament
2021-09-30SearXNG: oscar themeAlexandre Flament
2021-09-24[enh] themes: display the engine descriptionsAlexandre Flament
2021-09-24[preferences] remove checkbox class from query sectionMrPaulBlack
2021-09-24[preferences] reorder tabs in simple to match oscar themeMrPaulBlack
2021-09-24[preferences] cleanup whitespacesMrPaulBlack
2021-09-24[preferences] add special queries tab to preferencesMrPaulBlack
2021-09-21[theme] add newline at the end of the fileMrPaulBlack
2021-09-21[theme] remove categories, language and time range from indexMrPaulBlack
2021-09-12[theme] make engine stats clickableMrPaulBlack
2021-09-12[theme] link to engine stats in footerMrPaulBlack
2021-09-09[fix] remove references to transifexAlexandre Flament
2021-09-07[fix] oscar template - merge the two class attributes into oneMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703337237 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] simple theme - preferences: fix tooltip overflowMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703370358 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] oscar theme - preferences: rename col-checkbox/col-statMarkus Heiser
[1] https://github.com/searxng/searxng/pull/295#discussion_r703318053 [2] https://github.com/searxng/searxng/pull/295#discussion_r703337237 Suggested-by: @dalf [1] [2] Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] make oscar theme more CSP compliant - col-checkboxMarkus Heiser
Add col-checkbox in:: searx/static/themes/oscar/src/less/preferences.less Replaced style in file:: searx/templates/oscar/preferences.html Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] make oscar theme more CSP compliant - default-image-styleMarkus Heiser
Add default-image-style in:: searx/static/themes/oscar/src/less/result_templates.less Replaced style= in files:: ./oscar/result_templates/default.html:19: <img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content"> ./oscar/result_templates/files.html:24:<img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content"> Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] make /preferences more CSP compliant - simple & oscar themeMarkus Heiser
In simple & oscar theme remove ``style=`` properties which violates CSP but seem not to have a magnification in GUI (UX). Fixed files:: ./oscar/preferences.html:25:<td class="{{ label }}" style="padding: 2px">{{- "" -}} ./simple/preferences.html:39:<td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}} ./simple/preferences.html:77: <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability"> ./simple/preferences.html:258: <p class="text-muted" style="margin:20px 0;"> Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06[fix] make result template map more CSP compliant - simple & oscarMarkus Heiser
Add osm-map-box in:: searx/static/themes/__common__/less/result_templates.less Replaced sty= in files:: ./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div> ./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div> Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06[fix] make /preferences more CSP compliant - simple & oscar themeMarkus Heiser
in simple & oscar theme replace bar-graph's *styles* by CSP compliant implementation in:: searx/static/themes/__common__/less/stats.less Fixed files:: ./oscar/preferences.html:29: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}} ./oscar/preferences.html:30: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}} ./oscar/preferences.html:31: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}} ./simple/preferences.html:43: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}} ./simple/preferences.html:44: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}} ./simple/preferences.html:45: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}} Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-31Merge pull request #276 from dalf/simple_eslintMarkus Heiser
Simple theme: eslint and bug fix
2021-08-31[mod] simple theme: fix eslint errors, fix VIM keysAlexandre Flament
* VIM keys: fix the next page and previous pages (n, p keys) * Map: Enable the wikipedia map (the layer was initialized but not included)
2021-08-31[enh] new issue: include information from searx.versionAlexandre Flament
2021-07-30version based on the git repositoryAlexandre Flament
This commit remove the need to update the brand for GIT_URL and GIT_BRANCH: there are read from the git repository. It is possible to call python -m searx.version freeze to freeze the current version. Useful when the code is installed outside git (distro package, docker, etc...)
2021-07-21[mod] drop usage of the searx.brand namespace (templates & /config)Markus Heiser
In the templates and the /config (JSON) the usage of the 'brand.*' name space is replaced by 'searx.get_setting' function. - new_issue_url --> get_setting('brand.new_issue_url') - brand.GIT_URL --> get_setting('brand.git_url') - brand.PUBLIC_INSTANCES --> get_setting('brand.public_instances') - brand.DOCS_URL --> get_setting('brand.docs_url') - brand.ISSUE_URL --> get_setting('brand.issue_url') - brand.CONTACT_URL --> get_setting('general.contact_url', '') The macro 'new_issue' from searx/templates/*/messages/no_results.html is now imported with context:: {% from '__common__/new_issue.html' import new_issue with context %} To get *public instances URL* from context's 'get_setting()' function:: get_setting('brand.public_instances','') Macro's prototype does no longer need the 'new_issue_url' argument and has been changed to:: macro new_issue(engine_name, engine_reliability) Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-17[mod] oscar theme: /preferences : HTML detail order match visual tabsAlexandre Flament
First details about the general tab, then detail about UI tab, etc... No functionnal change
2021-06-17[mod] oscar theme /preferences: reorganize the preferencesAlexandre Flament
close #115
2021-06-09[fix] make simple/result_templates/map.html more CSP compliant [1]Markus Heiser
[1] https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-09[fix] openstreetmap - fix some minor whitespace & indentation issuesMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-09[enh] openstreetmap / map template: improve resultsAlexandre Flament
implements ideas described in #69 * update the engine * use wikidata * update map.html template
2021-06-02Merge pull request #124 from return42/searx-mergeAlexandre Flament
merge redis offline engine from searx