Commit Graph

62 Commits (98cab4cf754752e8a615b7b6c2685021592889a7)

Author SHA1 Message Date
Alexandre Flament 988910d451 [fix] templates: lang attribute of html uses hyphen
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-lang
https://www.w3.org/TR/REC-xml/#sec-lang-tag
3 years ago
Alexandre Flament df06dddc04 SearXNG: oscar theme 3 years ago
MrPaulBlack 48d4296caa [theme] link to engine stats in footer 3 years ago
Alexandre Flament 4b43775c91 version based on the git repository
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...)
3 years ago
Markus Heiser 3f638ed196 [mod] drop usage of the searx.brand namespace (templates & /config)
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>
3 years ago
Alexandre Flament 04b34c70b8 More branding 3 years ago
Alexandre Flament 7a0fbdecc4 [enh] oscar: image thumbnail layout
Adjust thumbnail sizes to fill the container width
3 years ago
Alexandre Flament 6553c79029 [mod] replace /translations.js by embedded JSON
In webapp.py, there is a new function "get_translations" lists available translations

Close #2064
3 years ago
Alexandre Flament 44407353ef [mod] oscar: get leaflet and jquery from NPM
easy to upgrade (package.json)
3 years ago
Alexandre Flament eda3b513ac [mod] oscar: remove polyfills for Internet Explorer 3 years ago
Alexandre Flament bdb41bea7b [mod] theme: remove require-2.1.15.min.js
See https://github.com/requirejs/requirejs/issues/1816

requirejs loads one file: leaflet.

This commit:
* removes requirejs
* load leaflet using <script src...> HTML tag in searx/templates/oscar/base.html
3 years ago
Alexandre Flament 14c7cc0e11 [mod] Makefile: make CONTACT_URL optional 4 years ago
BBaoVanC 19fce74443
Add link to contact instance maintainer to footer of each page (#2391) 4 years ago
Alexandre Flament bfdad7bc0f [fix] opensearch.xml URL contains method and autocomplete parameters
When the user add searx as a search engine, the browser loads the /opensearch.xml URL without the cookies.
Without the query parameters, the user preferences are ignored (method and autocomplete).

In addition, opensearch.xml is modified to support automatic updates,
see https://developer.mozilla.org/en-US/docs/Web/OpenSearch
4 years ago
Adam Tauber c7b75fc818 [fix] rewrite overflow:none as none is an invalid property - $350 4 years ago
Noémi Ványi 02c6710564 Make Oscar theme scalable 4 years ago
Adam Tauber ec48447361 [fix] change lang attribute of the html to match the current locale - #350 4 years ago
Adam Tauber 4ca0d8cb0f [enh] add translatable strings to javascript - closes #461 4 years ago
Adam Tauber de1b08a941 [enh] add unique class for each endpoint - closes #1133 4 years ago
Markus Heiser 3381471933 brands: add ISSUE_URL
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser 04c687403e [fix] brands: add variables from build env to jinja templating
We have some variables in the build environment which are also needed in the
templating process.  Theses variables are relavant if one creates a fork with
its own branding.  We treat these variables under the term 'brands'.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Dalf 88f9ac58f4 [mod] move public instance list to https://searx.space 4 years ago
Dalf f34ac58752 [mod] tidy oscar HTML output 5 years ago
Dalf 6fbba63c83 oscar and simple themes: no inline script (allow A+ Content-Security-Policy) 5 years ago
Noémi Ványi 4f4dcdf38f add links to footers of oscar and simple themes
Links:
 * Source code
 * Issue tracker
 * List of public instances

Closes #1071
7 years ago
Adam Tauber e060aedc16 [enh] make custom oscar option configurable from url 7 years ago
Adam Tauber b3974fc880 [fix] do not show glyph icons if noscript is enabled - #838 8 years ago
Adam Tauber 832cf37a97 [enh] display errors
also tried flask's flash feature but flask creates session cookies if it
isn't flushed. Avoiding session cookies to preserve privacy
8 years ago
Adam Tauber 9782633054 [fix] menu without js - closes #747 8 years ago
Noémi Ványi 4bd44cd98f uncapitalize searx in templates 8 years ago
Adam Tauber a7260ac497 [fix] do not replace image href urls - closes #594
These lines were added to fix a js image load issue (#535) what i cannot reproduce.
Hopefully we don't see it again
8 years ago
Adam Tauber f496dc353d [enh] oscar theme redesign added
The original code made by @logico-dev (#559)
8 years ago
Adam Tauber d27f7a1b07 [fix] clear image link if javascript enabled - closes #535 8 years ago
Adam Tauber e893d94185 [fix] docs url mod to prevent http redirect 8 years ago
Adam Tauber 6130f9a59f Merge pull request #473 from GreenLunar/patch-2
Update link to documentation page
8 years ago
Adam Tauber 0fbd705259 [enh] settings option to change instance name - closes #450 8 years ago
GreenLunar e01ef3bee1 Update link to documentation page 9 years ago
Alexandre Flament ada5993f61 [fix] #264 : implementation using Referrer Policy (Editor’s Draft, 3 March 2015)
see http://w3c.github.io/webappsec/specs/referrer-policy/
9 years ago
Adam Tauber dd84814b68 [enh] plugins: client side dependency support 9 years ago
Cqoicebordel bbb5e23551 Remove whitespace caused by Jinja commands
Adding this conf change will remove every newline created by a Jinja command (`{% %}`). It can save a bit of bandwidth.
10 years ago
Adam Tauber df9cf9d09b Merge branch 'rtl' of github.com:Cqoicebordel/searx 10 years ago
Thomas Pointhuber 1f00ce8527 Revert: [enh] add new bootstrap-themes to oscar-template 10 years ago
Thomas Pointhuber 016a0ffe8a [enh] show js warning only if menu can't be used or inside preferences 10 years ago
Thomas Pointhuber 096ffd0659 [enh] add new bootstrap-themes to oscar-template 10 years ago
Thomas Pointhuber de6064994e [enh] show text "Start search" instead of icon, if javascript is disabled 10 years ago
Thomas Pointhuber 525833bea7 [enh] disable js-based links if no js is available 10 years ago
Thomas Pointhuber 5bfaabeb6b [enh] add nojs support into oscar-template 10 years ago
Thomas Pointhuber 29a526ff0e [enh] add rss-link which can be detected by browsers 10 years ago
Thomas Pointhuber e687f5c290 [enh][oscar_template] split js-files and compile them together 10 years ago
Adam Tauber 075a5fe898 Merge pull request #127 from pointhi/template_oscar_map
Template oscar, add map support
10 years ago