logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 9f12605f7ebc9ca5575fc4ee9900e0e821366c4d
parent: e3957d6adf5298dbc009a0892f5c088c397c586b
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Thu,  1 Jan 2015 17:48:12 +0100

[enh] themes static content refactor

Diffstat:

Rsearx/static/courgette/css/style.css -> searx/static/themes/courgette/css/style.css0
Rsearx/static/courgette/img/bg-body-index.jpg -> searx/static/themes/courgette/img/bg-body-index.jpg0
Rsearx/static/courgette/img/favicon.png -> searx/static/themes/courgette/img/favicon.png0
Rsearx/static/courgette/img/github_ribbon.png -> searx/static/themes/courgette/img/github_ribbon.png0
Rsearx/static/courgette/img/icons/icon_dailymotion.ico -> searx/static/themes/courgette/img/icons/icon_dailymotion.ico0
Rsearx/static/courgette/img/icons/icon_deviantart.ico -> searx/static/themes/courgette/img/icons/icon_deviantart.ico0
Rsearx/static/courgette/img/icons/icon_github.ico -> searx/static/themes/courgette/img/icons/icon_github.ico0
Rsearx/static/courgette/img/icons/icon_kickass.ico -> searx/static/themes/courgette/img/icons/icon_kickass.ico0
Rsearx/static/courgette/img/icons/icon_soundcloud.ico -> searx/static/themes/courgette/img/icons/icon_soundcloud.ico0
Rsearx/static/courgette/img/icons/icon_stackoverflow.ico -> searx/static/themes/courgette/img/icons/icon_stackoverflow.ico0
Rsearx/static/courgette/img/icons/icon_twitter.ico -> searx/static/themes/courgette/img/icons/icon_twitter.ico0
Rsearx/static/courgette/img/icons/icon_vimeo.ico -> searx/static/themes/courgette/img/icons/icon_vimeo.ico0
Rsearx/static/courgette/img/icons/icon_wikipedia.ico -> searx/static/themes/courgette/img/icons/icon_wikipedia.ico0
Rsearx/static/courgette/img/icons/icon_youtube.ico -> searx/static/themes/courgette/img/icons/icon_youtube.ico0
Rsearx/static/courgette/img/preference-icon.png -> searx/static/themes/courgette/img/preference-icon.png0
Rsearx/static/courgette/img/search-icon.png -> searx/static/themes/courgette/img/search-icon.png0
Rsearx/static/courgette/img/searx-mobile.png -> searx/static/themes/courgette/img/searx-mobile.png0
Rsearx/static/courgette/img/searx.png -> searx/static/themes/courgette/img/searx.png0
Rsearx/static/courgette/img/searx_logo.svg -> searx/static/themes/courgette/img/searx_logo.svg0
Rsearx/static/courgette/js/mootools-autocompleter-1.1.2-min.js -> searx/static/themes/courgette/js/mootools-autocompleter-1.1.2-min.js0
Rsearx/static/courgette/js/mootools-core-1.4.5-min.js -> searx/static/themes/courgette/js/mootools-core-1.4.5-min.js0
Rsearx/static/courgette/js/searx.js -> searx/static/themes/courgette/js/searx.js0
Rsearx/static/default/css/style.css -> searx/static/themes/default/css/style.css0
Rsearx/static/default/img/favicon.png -> searx/static/themes/default/img/favicon.png0
Rsearx/static/default/img/github_ribbon.png -> searx/static/themes/default/img/github_ribbon.png0
Rsearx/static/default/img/icons/icon_dailymotion.ico -> searx/static/themes/default/img/icons/icon_dailymotion.ico0
Rsearx/static/default/img/icons/icon_deviantart.ico -> searx/static/themes/default/img/icons/icon_deviantart.ico0
Rsearx/static/default/img/icons/icon_github.ico -> searx/static/themes/default/img/icons/icon_github.ico0
Rsearx/static/default/img/icons/icon_kickass.ico -> searx/static/themes/default/img/icons/icon_kickass.ico0
Rsearx/static/default/img/icons/icon_soundcloud.ico -> searx/static/themes/default/img/icons/icon_soundcloud.ico0
Rsearx/static/default/img/icons/icon_stackoverflow.ico -> searx/static/themes/default/img/icons/icon_stackoverflow.ico0
Rsearx/static/default/img/icons/icon_twitter.ico -> searx/static/themes/default/img/icons/icon_twitter.ico0
Rsearx/static/default/img/icons/icon_vimeo.ico -> searx/static/themes/default/img/icons/icon_vimeo.ico0
Rsearx/static/default/img/icons/icon_wikipedia.ico -> searx/static/themes/default/img/icons/icon_wikipedia.ico0
Rsearx/static/default/img/icons/icon_youtube.ico -> searx/static/themes/default/img/icons/icon_youtube.ico0
Rsearx/static/default/img/preference-icon.png -> searx/static/themes/default/img/preference-icon.png0
Rsearx/static/default/img/search-icon.png -> searx/static/themes/default/img/search-icon.png0
Rsearx/static/default/img/searx.png -> searx/static/themes/default/img/searx.png0
Rsearx/static/default/img/searx_logo.svg -> searx/static/themes/default/img/searx_logo.svg0
Rsearx/static/default/js/mootools-autocompleter-1.1.2-min.js -> searx/static/themes/default/js/mootools-autocompleter-1.1.2-min.js0
Rsearx/static/default/js/mootools-core-1.4.5-min.js -> searx/static/themes/default/js/mootools-core-1.4.5-min.js0
Rsearx/static/default/js/searx.js -> searx/static/themes/default/js/searx.js0
Rsearx/static/default/less/autocompleter.less -> searx/static/themes/default/less/autocompleter.less0
Rsearx/static/default/less/definitions.less -> searx/static/themes/default/less/definitions.less0
Rsearx/static/default/less/mixins.less -> searx/static/themes/default/less/mixins.less0
Rsearx/static/default/less/search.less -> searx/static/themes/default/less/search.less0
Rsearx/static/default/less/style.less -> searx/static/themes/default/less/style.less0
Rsearx/static/oscar/.gitignore -> searx/static/themes/oscar/.gitignore0
Rsearx/static/oscar/README.rst -> searx/static/themes/oscar/README.rst 0
Rsearx/static/oscar/css/bootstrap.min.css -> searx/static/themes/oscar/css/bootstrap.min.css0
Rsearx/static/oscar/css/leaflet.min.css -> searx/static/themes/oscar/css/leaflet.min.css0
Rsearx/static/oscar/css/oscar.min.css -> searx/static/themes/oscar/css/oscar.min.css0
Rsearx/static/oscar/fonts/glyphicons-halflings-regular.eot -> searx/static/themes/oscar/fonts/glyphicons-halflings-regular.eot0
Rsearx/static/oscar/fonts/glyphicons-halflings-regular.svg -> searx/static/themes/oscar/fonts/glyphicons-halflings-regular.svg0
Rsearx/static/oscar/fonts/glyphicons-halflings-regular.ttf -> searx/static/themes/oscar/fonts/glyphicons-halflings-regular.ttf0
Rsearx/static/oscar/fonts/glyphicons-halflings-regular.woff -> searx/static/themes/oscar/fonts/glyphicons-halflings-regular.woff0
Rsearx/static/oscar/gruntfile.js -> searx/static/themes/oscar/gruntfile.js0
Rsearx/static/oscar/img/favicon.png -> searx/static/themes/oscar/img/favicon.png0
Rsearx/static/oscar/img/icons/README.md -> searx/static/themes/oscar/img/icons/README.md0
Rsearx/static/oscar/img/icons/amazon.png -> searx/static/themes/oscar/img/icons/amazon.png0
Rsearx/static/oscar/img/icons/dailymotion.png -> searx/static/themes/oscar/img/icons/dailymotion.png0
Rsearx/static/oscar/img/icons/deviantart.png -> searx/static/themes/oscar/img/icons/deviantart.png0
Rsearx/static/oscar/img/icons/facebook.png -> searx/static/themes/oscar/img/icons/facebook.png0
Rsearx/static/oscar/img/icons/flickr.png -> searx/static/themes/oscar/img/icons/flickr.png0
Rsearx/static/oscar/img/icons/github.png -> searx/static/themes/oscar/img/icons/github.png0
Rsearx/static/oscar/img/icons/kickass.png -> searx/static/themes/oscar/img/icons/kickass.png0
Rsearx/static/oscar/img/icons/openstreetmap.png -> searx/static/themes/oscar/img/icons/openstreetmap.png0
Rsearx/static/oscar/img/icons/photon.png -> searx/static/themes/oscar/img/icons/photon.png0
Rsearx/static/oscar/img/icons/searchcode code.png -> searx/static/themes/oscar/img/icons/searchcode code.png0
Rsearx/static/oscar/img/icons/searchcode doc.png -> searx/static/themes/oscar/img/icons/searchcode doc.png0
Rsearx/static/oscar/img/icons/soundcloud.png -> searx/static/themes/oscar/img/icons/soundcloud.png0
Rsearx/static/oscar/img/icons/stackoverflow.png -> searx/static/themes/oscar/img/icons/stackoverflow.png0
Rsearx/static/oscar/img/icons/twitter.png -> searx/static/themes/oscar/img/icons/twitter.png0
Rsearx/static/oscar/img/icons/vimeo.png -> searx/static/themes/oscar/img/icons/vimeo.png0
Rsearx/static/oscar/img/icons/wikipedia.png -> searx/static/themes/oscar/img/icons/wikipedia.png0
Rsearx/static/oscar/img/icons/youtube.png -> searx/static/themes/oscar/img/icons/youtube.png0
Rsearx/static/oscar/img/loader.gif -> searx/static/themes/oscar/img/loader.gif0
Rsearx/static/oscar/img/map/layers-2x.png -> searx/static/themes/oscar/img/map/layers-2x.png0
Rsearx/static/oscar/img/map/layers.png -> searx/static/themes/oscar/img/map/layers.png0
Rsearx/static/oscar/img/map/marker-icon-2x-green.png -> searx/static/themes/oscar/img/map/marker-icon-2x-green.png0
Rsearx/static/oscar/img/map/marker-icon-2x-orange.png -> searx/static/themes/oscar/img/map/marker-icon-2x-orange.png0
Rsearx/static/oscar/img/map/marker-icon-2x-red.png -> searx/static/themes/oscar/img/map/marker-icon-2x-red.png0
Rsearx/static/oscar/img/map/marker-icon-2x.png -> searx/static/themes/oscar/img/map/marker-icon-2x.png0
Rsearx/static/oscar/img/map/marker-icon-green.png -> searx/static/themes/oscar/img/map/marker-icon-green.png0
Rsearx/static/oscar/img/map/marker-icon-orange.png -> searx/static/themes/oscar/img/map/marker-icon-orange.png0
Rsearx/static/oscar/img/map/marker-icon-red.png -> searx/static/themes/oscar/img/map/marker-icon-red.png0
Rsearx/static/oscar/img/map/marker-icon.png -> searx/static/themes/oscar/img/map/marker-icon.png0
Rsearx/static/oscar/img/map/marker-shadow.png -> searx/static/themes/oscar/img/map/marker-shadow.png0
Rsearx/static/oscar/img/searx_logo.png -> searx/static/themes/oscar/img/searx_logo.png0
Rsearx/static/oscar/js/bootstrap.min.js -> searx/static/themes/oscar/js/bootstrap.min.js0
Rsearx/static/oscar/js/html5shiv.min.js -> searx/static/themes/oscar/js/html5shiv.min.js0
Rsearx/static/oscar/js/jquery-1.11.1.min.js -> searx/static/themes/oscar/js/jquery-1.11.1.min.js0
Rsearx/static/oscar/js/leaflet-0.7.3.min.js -> searx/static/themes/oscar/js/leaflet-0.7.3.min.js0
Rsearx/static/oscar/js/require-2.1.15.min.js -> searx/static/themes/oscar/js/require-2.1.15.min.js0
Rsearx/static/oscar/js/respond.min.js -> searx/static/themes/oscar/js/respond.min.js0
Rsearx/static/oscar/js/searx.min.js -> searx/static/themes/oscar/js/searx.min.js0
Rsearx/static/oscar/js/searx_src/00_requirejs_config.js -> searx/static/themes/oscar/js/searx_src/00_requirejs_config.js0
Rsearx/static/oscar/js/searx_src/autocompleter.js -> searx/static/themes/oscar/js/searx_src/autocompleter.js0
Rsearx/static/oscar/js/searx_src/element_modifiers.js -> searx/static/themes/oscar/js/searx_src/element_modifiers.js0
Rsearx/static/oscar/js/searx_src/leaflet_map.js -> searx/static/themes/oscar/js/searx_src/leaflet_map.js0
Rsearx/static/oscar/js/typeahead.bundle.min.js -> searx/static/themes/oscar/js/typeahead.bundle.min.js0
Rsearx/static/oscar/less/bootstrap/.csscomb.json -> searx/static/themes/oscar/less/bootstrap/.csscomb.json0
Rsearx/static/oscar/less/bootstrap/.csslintrc -> searx/static/themes/oscar/less/bootstrap/.csslintrc0
Rsearx/static/oscar/less/bootstrap/alerts.less -> searx/static/themes/oscar/less/bootstrap/alerts.less0
Rsearx/static/oscar/less/bootstrap/badges.less -> searx/static/themes/oscar/less/bootstrap/badges.less0
Rsearx/static/oscar/less/bootstrap/bootstrap.less -> searx/static/themes/oscar/less/bootstrap/bootstrap.less0
Rsearx/static/oscar/less/bootstrap/breadcrumbs.less -> searx/static/themes/oscar/less/bootstrap/breadcrumbs.less0
Rsearx/static/oscar/less/bootstrap/button-groups.less -> searx/static/themes/oscar/less/bootstrap/button-groups.less0
Rsearx/static/oscar/less/bootstrap/buttons.less -> searx/static/themes/oscar/less/bootstrap/buttons.less0
Rsearx/static/oscar/less/bootstrap/carousel.less -> searx/static/themes/oscar/less/bootstrap/carousel.less0
Rsearx/static/oscar/less/bootstrap/close.less -> searx/static/themes/oscar/less/bootstrap/close.less0
Rsearx/static/oscar/less/bootstrap/code.less -> searx/static/themes/oscar/less/bootstrap/code.less0
Rsearx/static/oscar/less/bootstrap/component-animations.less -> searx/static/themes/oscar/less/bootstrap/component-animations.less0
Rsearx/static/oscar/less/bootstrap/dropdowns.less -> searx/static/themes/oscar/less/bootstrap/dropdowns.less0
Rsearx/static/oscar/less/bootstrap/forms.less -> searx/static/themes/oscar/less/bootstrap/forms.less0
Rsearx/static/oscar/less/bootstrap/glyphicons.less -> searx/static/themes/oscar/less/bootstrap/glyphicons.less0
Rsearx/static/oscar/less/bootstrap/grid.less -> searx/static/themes/oscar/less/bootstrap/grid.less0
Rsearx/static/oscar/less/bootstrap/input-groups.less -> searx/static/themes/oscar/less/bootstrap/input-groups.less0
Rsearx/static/oscar/less/bootstrap/jumbotron.less -> searx/static/themes/oscar/less/bootstrap/jumbotron.less0
Rsearx/static/oscar/less/bootstrap/labels.less -> searx/static/themes/oscar/less/bootstrap/labels.less0
Rsearx/static/oscar/less/bootstrap/list-group.less -> searx/static/themes/oscar/less/bootstrap/list-group.less0
Rsearx/static/oscar/less/bootstrap/media.less -> searx/static/themes/oscar/less/bootstrap/media.less0
Rsearx/static/oscar/less/bootstrap/mixins.less -> searx/static/themes/oscar/less/bootstrap/mixins.less0
Rsearx/static/oscar/less/bootstrap/mixins/alerts.less -> searx/static/themes/oscar/less/bootstrap/mixins/alerts.less0
Rsearx/static/oscar/less/bootstrap/mixins/background-variant.less -> searx/static/themes/oscar/less/bootstrap/mixins/background-variant.less0
Rsearx/static/oscar/less/bootstrap/mixins/border-radius.less -> searx/static/themes/oscar/less/bootstrap/mixins/border-radius.less0
Rsearx/static/oscar/less/bootstrap/mixins/buttons.less -> searx/static/themes/oscar/less/bootstrap/mixins/buttons.less0
Rsearx/static/oscar/less/bootstrap/mixins/center-block.less -> searx/static/themes/oscar/less/bootstrap/mixins/center-block.less0
Rsearx/static/oscar/less/bootstrap/mixins/clearfix.less -> searx/static/themes/oscar/less/bootstrap/mixins/clearfix.less0
Rsearx/static/oscar/less/bootstrap/mixins/forms.less -> searx/static/themes/oscar/less/bootstrap/mixins/forms.less0
Rsearx/static/oscar/less/bootstrap/mixins/gradients.less -> searx/static/themes/oscar/less/bootstrap/mixins/gradients.less0
Rsearx/static/oscar/less/bootstrap/mixins/grid-framework.less -> searx/static/themes/oscar/less/bootstrap/mixins/grid-framework.less0
Rsearx/static/oscar/less/bootstrap/mixins/grid.less -> searx/static/themes/oscar/less/bootstrap/mixins/grid.less0
Rsearx/static/oscar/less/bootstrap/mixins/hide-text.less -> searx/static/themes/oscar/less/bootstrap/mixins/hide-text.less0
Rsearx/static/oscar/less/bootstrap/mixins/image.less -> searx/static/themes/oscar/less/bootstrap/mixins/image.less0
Rsearx/static/oscar/less/bootstrap/mixins/labels.less -> searx/static/themes/oscar/less/bootstrap/mixins/labels.less0
Rsearx/static/oscar/less/bootstrap/mixins/list-group.less -> searx/static/themes/oscar/less/bootstrap/mixins/list-group.less0
Rsearx/static/oscar/less/bootstrap/mixins/nav-divider.less -> searx/static/themes/oscar/less/bootstrap/mixins/nav-divider.less0
Rsearx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less -> searx/static/themes/oscar/less/bootstrap/mixins/nav-vertical-align.less0
Rsearx/static/oscar/less/bootstrap/mixins/opacity.less -> searx/static/themes/oscar/less/bootstrap/mixins/opacity.less0
Rsearx/static/oscar/less/bootstrap/mixins/pagination.less -> searx/static/themes/oscar/less/bootstrap/mixins/pagination.less0
Rsearx/static/oscar/less/bootstrap/mixins/panels.less -> searx/static/themes/oscar/less/bootstrap/mixins/panels.less0
Rsearx/static/oscar/less/bootstrap/mixins/progress-bar.less -> searx/static/themes/oscar/less/bootstrap/mixins/progress-bar.less0
Rsearx/static/oscar/less/bootstrap/mixins/reset-filter.less -> searx/static/themes/oscar/less/bootstrap/mixins/reset-filter.less0
Rsearx/static/oscar/less/bootstrap/mixins/resize.less -> searx/static/themes/oscar/less/bootstrap/mixins/resize.less0
Rsearx/static/oscar/less/bootstrap/mixins/responsive-visibility.less -> searx/static/themes/oscar/less/bootstrap/mixins/responsive-visibility.less0
Rsearx/static/oscar/less/bootstrap/mixins/size.less -> searx/static/themes/oscar/less/bootstrap/mixins/size.less0
Rsearx/static/oscar/less/bootstrap/mixins/tab-focus.less -> searx/static/themes/oscar/less/bootstrap/mixins/tab-focus.less0
Rsearx/static/oscar/less/bootstrap/mixins/table-row.less -> searx/static/themes/oscar/less/bootstrap/mixins/table-row.less0
Rsearx/static/oscar/less/bootstrap/mixins/text-emphasis.less -> searx/static/themes/oscar/less/bootstrap/mixins/text-emphasis.less0
Rsearx/static/oscar/less/bootstrap/mixins/text-overflow.less -> searx/static/themes/oscar/less/bootstrap/mixins/text-overflow.less0
Rsearx/static/oscar/less/bootstrap/mixins/vendor-prefixes.less -> searx/static/themes/oscar/less/bootstrap/mixins/vendor-prefixes.less0
Rsearx/static/oscar/less/bootstrap/modals.less -> searx/static/themes/oscar/less/bootstrap/modals.less0
Rsearx/static/oscar/less/bootstrap/navbar.less -> searx/static/themes/oscar/less/bootstrap/navbar.less0
Rsearx/static/oscar/less/bootstrap/navs.less -> searx/static/themes/oscar/less/bootstrap/navs.less0
Rsearx/static/oscar/less/bootstrap/normalize.less -> searx/static/themes/oscar/less/bootstrap/normalize.less0
Rsearx/static/oscar/less/bootstrap/pager.less -> searx/static/themes/oscar/less/bootstrap/pager.less0
Rsearx/static/oscar/less/bootstrap/pagination.less -> searx/static/themes/oscar/less/bootstrap/pagination.less0
Rsearx/static/oscar/less/bootstrap/panels.less -> searx/static/themes/oscar/less/bootstrap/panels.less0
Rsearx/static/oscar/less/bootstrap/popovers.less -> searx/static/themes/oscar/less/bootstrap/popovers.less0
Rsearx/static/oscar/less/bootstrap/print.less -> searx/static/themes/oscar/less/bootstrap/print.less0
Rsearx/static/oscar/less/bootstrap/progress-bars.less -> searx/static/themes/oscar/less/bootstrap/progress-bars.less0
Rsearx/static/oscar/less/bootstrap/responsive-embed.less -> searx/static/themes/oscar/less/bootstrap/responsive-embed.less0
Rsearx/static/oscar/less/bootstrap/responsive-utilities.less -> searx/static/themes/oscar/less/bootstrap/responsive-utilities.less0
Rsearx/static/oscar/less/bootstrap/scaffolding.less -> searx/static/themes/oscar/less/bootstrap/scaffolding.less0
Rsearx/static/oscar/less/bootstrap/tables.less -> searx/static/themes/oscar/less/bootstrap/tables.less0
Rsearx/static/oscar/less/bootstrap/theme.less -> searx/static/themes/oscar/less/bootstrap/theme.less0
Rsearx/static/oscar/less/bootstrap/thumbnails.less -> searx/static/themes/oscar/less/bootstrap/thumbnails.less0
Rsearx/static/oscar/less/bootstrap/tooltip.less -> searx/static/themes/oscar/less/bootstrap/tooltip.less0
Rsearx/static/oscar/less/bootstrap/type.less -> searx/static/themes/oscar/less/bootstrap/type.less0
Rsearx/static/oscar/less/bootstrap/typeahead.less -> searx/static/themes/oscar/less/bootstrap/typeahead.less0
Rsearx/static/oscar/less/bootstrap/utilities.less -> searx/static/themes/oscar/less/bootstrap/utilities.less0
Rsearx/static/oscar/less/bootstrap/variables.less -> searx/static/themes/oscar/less/bootstrap/variables.less0
Rsearx/static/oscar/less/bootstrap/wells.less -> searx/static/themes/oscar/less/bootstrap/wells.less0
Rsearx/static/oscar/less/oscar/checkbox.less -> searx/static/themes/oscar/less/oscar/checkbox.less0
Rsearx/static/oscar/less/oscar/cursor.less -> searx/static/themes/oscar/less/oscar/cursor.less0
Rsearx/static/oscar/less/oscar/footer.less -> searx/static/themes/oscar/less/oscar/footer.less0
Rsearx/static/oscar/less/oscar/infobox.less -> searx/static/themes/oscar/less/oscar/infobox.less0
Rsearx/static/oscar/less/oscar/oscar.less -> searx/static/themes/oscar/less/oscar/oscar.less0
Rsearx/static/oscar/less/oscar/results.less -> searx/static/themes/oscar/less/oscar/results.less0
Rsearx/static/oscar/less/oscar/search.less -> searx/static/themes/oscar/less/oscar/search.less0
Rsearx/static/oscar/package.json -> searx/static/themes/oscar/package.json0
Msearx/utils.py18+++++++++++-------
Msearx/webapp.py11++++++++---
184 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/searx/static/courgette/css/style.css b/searx/static/themes/courgette/css/style.css diff --git a/searx/static/courgette/img/bg-body-index.jpg b/searx/static/themes/courgette/img/bg-body-index.jpg Binary files differ. diff --git a/searx/static/courgette/img/favicon.png b/searx/static/themes/courgette/img/favicon.png Binary files differ. diff --git a/searx/static/courgette/img/github_ribbon.png b/searx/static/themes/courgette/img/github_ribbon.png Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_dailymotion.ico b/searx/static/themes/courgette/img/icons/icon_dailymotion.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_deviantart.ico b/searx/static/themes/courgette/img/icons/icon_deviantart.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_github.ico b/searx/static/themes/courgette/img/icons/icon_github.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_kickass.ico b/searx/static/themes/courgette/img/icons/icon_kickass.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_soundcloud.ico b/searx/static/themes/courgette/img/icons/icon_soundcloud.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_stackoverflow.ico b/searx/static/themes/courgette/img/icons/icon_stackoverflow.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_twitter.ico b/searx/static/themes/courgette/img/icons/icon_twitter.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_vimeo.ico b/searx/static/themes/courgette/img/icons/icon_vimeo.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_wikipedia.ico b/searx/static/themes/courgette/img/icons/icon_wikipedia.ico Binary files differ. diff --git a/searx/static/courgette/img/icons/icon_youtube.ico b/searx/static/themes/courgette/img/icons/icon_youtube.ico Binary files differ. diff --git a/searx/static/courgette/img/preference-icon.png b/searx/static/themes/courgette/img/preference-icon.png Binary files differ. diff --git a/searx/static/courgette/img/search-icon.png b/searx/static/themes/courgette/img/search-icon.png Binary files differ. diff --git a/searx/static/courgette/img/searx-mobile.png b/searx/static/themes/courgette/img/searx-mobile.png Binary files differ. diff --git a/searx/static/courgette/img/searx.png b/searx/static/themes/courgette/img/searx.png Binary files differ. diff --git a/searx/static/courgette/img/searx_logo.svg b/searx/static/themes/courgette/img/searx_logo.svg diff --git a/searx/static/courgette/js/mootools-autocompleter-1.1.2-min.js b/searx/static/themes/courgette/js/mootools-autocompleter-1.1.2-min.js diff --git a/searx/static/courgette/js/mootools-core-1.4.5-min.js b/searx/static/themes/courgette/js/mootools-core-1.4.5-min.js diff --git a/searx/static/courgette/js/searx.js b/searx/static/themes/courgette/js/searx.js diff --git a/searx/static/default/css/style.css b/searx/static/themes/default/css/style.css diff --git a/searx/static/default/img/favicon.png b/searx/static/themes/default/img/favicon.png Binary files differ. diff --git a/searx/static/default/img/github_ribbon.png b/searx/static/themes/default/img/github_ribbon.png Binary files differ. diff --git a/searx/static/default/img/icons/icon_dailymotion.ico b/searx/static/themes/default/img/icons/icon_dailymotion.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_deviantart.ico b/searx/static/themes/default/img/icons/icon_deviantart.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_github.ico b/searx/static/themes/default/img/icons/icon_github.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_kickass.ico b/searx/static/themes/default/img/icons/icon_kickass.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_soundcloud.ico b/searx/static/themes/default/img/icons/icon_soundcloud.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_stackoverflow.ico b/searx/static/themes/default/img/icons/icon_stackoverflow.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_twitter.ico b/searx/static/themes/default/img/icons/icon_twitter.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_vimeo.ico b/searx/static/themes/default/img/icons/icon_vimeo.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_wikipedia.ico b/searx/static/themes/default/img/icons/icon_wikipedia.ico Binary files differ. diff --git a/searx/static/default/img/icons/icon_youtube.ico b/searx/static/themes/default/img/icons/icon_youtube.ico Binary files differ. diff --git a/searx/static/default/img/preference-icon.png b/searx/static/themes/default/img/preference-icon.png Binary files differ. diff --git a/searx/static/default/img/search-icon.png b/searx/static/themes/default/img/search-icon.png Binary files differ. diff --git a/searx/static/default/img/searx.png b/searx/static/themes/default/img/searx.png Binary files differ. diff --git a/searx/static/default/img/searx_logo.svg b/searx/static/themes/default/img/searx_logo.svg diff --git a/searx/static/default/js/mootools-autocompleter-1.1.2-min.js b/searx/static/themes/default/js/mootools-autocompleter-1.1.2-min.js diff --git a/searx/static/default/js/mootools-core-1.4.5-min.js b/searx/static/themes/default/js/mootools-core-1.4.5-min.js diff --git a/searx/static/default/js/searx.js b/searx/static/themes/default/js/searx.js diff --git a/searx/static/default/less/autocompleter.less b/searx/static/themes/default/less/autocompleter.less diff --git a/searx/static/default/less/definitions.less b/searx/static/themes/default/less/definitions.less diff --git a/searx/static/default/less/mixins.less b/searx/static/themes/default/less/mixins.less diff --git a/searx/static/default/less/search.less b/searx/static/themes/default/less/search.less diff --git a/searx/static/default/less/style.less b/searx/static/themes/default/less/style.less diff --git a/searx/static/oscar/.gitignore b/searx/static/themes/oscar/.gitignore diff --git a/searx/static/oscar/README.rst b/searx/static/themes/oscar/README.rst diff --git a/searx/static/oscar/css/bootstrap.min.css b/searx/static/themes/oscar/css/bootstrap.min.css diff --git a/searx/static/oscar/css/leaflet.min.css b/searx/static/themes/oscar/css/leaflet.min.css diff --git a/searx/static/oscar/css/oscar.min.css b/searx/static/themes/oscar/css/oscar.min.css diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.eot b/searx/static/themes/oscar/fonts/glyphicons-halflings-regular.eot Binary files differ. diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.svg b/searx/static/themes/oscar/fonts/glyphicons-halflings-regular.svg diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.ttf b/searx/static/themes/oscar/fonts/glyphicons-halflings-regular.ttf Binary files differ. diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.woff b/searx/static/themes/oscar/fonts/glyphicons-halflings-regular.woff Binary files differ. diff --git a/searx/static/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js diff --git a/searx/static/oscar/img/favicon.png b/searx/static/themes/oscar/img/favicon.png Binary files differ. diff --git a/searx/static/oscar/img/icons/README.md b/searx/static/themes/oscar/img/icons/README.md diff --git a/searx/static/oscar/img/icons/amazon.png b/searx/static/themes/oscar/img/icons/amazon.png Binary files differ. diff --git a/searx/static/oscar/img/icons/dailymotion.png b/searx/static/themes/oscar/img/icons/dailymotion.png Binary files differ. diff --git a/searx/static/oscar/img/icons/deviantart.png b/searx/static/themes/oscar/img/icons/deviantart.png Binary files differ. diff --git a/searx/static/oscar/img/icons/facebook.png b/searx/static/themes/oscar/img/icons/facebook.png Binary files differ. diff --git a/searx/static/oscar/img/icons/flickr.png b/searx/static/themes/oscar/img/icons/flickr.png Binary files differ. diff --git a/searx/static/oscar/img/icons/github.png b/searx/static/themes/oscar/img/icons/github.png Binary files differ. diff --git a/searx/static/oscar/img/icons/kickass.png b/searx/static/themes/oscar/img/icons/kickass.png Binary files differ. diff --git a/searx/static/oscar/img/icons/openstreetmap.png b/searx/static/themes/oscar/img/icons/openstreetmap.png Binary files differ. diff --git a/searx/static/oscar/img/icons/photon.png b/searx/static/themes/oscar/img/icons/photon.png Binary files differ. diff --git a/searx/static/oscar/img/icons/searchcode code.png b/searx/static/themes/oscar/img/icons/searchcode code.png Binary files differ. diff --git a/searx/static/oscar/img/icons/searchcode doc.png b/searx/static/themes/oscar/img/icons/searchcode doc.png Binary files differ. diff --git a/searx/static/oscar/img/icons/soundcloud.png b/searx/static/themes/oscar/img/icons/soundcloud.png Binary files differ. diff --git a/searx/static/oscar/img/icons/stackoverflow.png b/searx/static/themes/oscar/img/icons/stackoverflow.png Binary files differ. diff --git a/searx/static/oscar/img/icons/twitter.png b/searx/static/themes/oscar/img/icons/twitter.png Binary files differ. diff --git a/searx/static/oscar/img/icons/vimeo.png b/searx/static/themes/oscar/img/icons/vimeo.png Binary files differ. diff --git a/searx/static/oscar/img/icons/wikipedia.png b/searx/static/themes/oscar/img/icons/wikipedia.png Binary files differ. diff --git a/searx/static/oscar/img/icons/youtube.png b/searx/static/themes/oscar/img/icons/youtube.png Binary files differ. diff --git a/searx/static/oscar/img/loader.gif b/searx/static/themes/oscar/img/loader.gif Binary files differ. diff --git a/searx/static/oscar/img/map/layers-2x.png b/searx/static/themes/oscar/img/map/layers-2x.png Binary files differ. diff --git a/searx/static/oscar/img/map/layers.png b/searx/static/themes/oscar/img/map/layers.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon-2x-green.png b/searx/static/themes/oscar/img/map/marker-icon-2x-green.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon-2x-orange.png b/searx/static/themes/oscar/img/map/marker-icon-2x-orange.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon-2x-red.png b/searx/static/themes/oscar/img/map/marker-icon-2x-red.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon-2x.png b/searx/static/themes/oscar/img/map/marker-icon-2x.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon-green.png b/searx/static/themes/oscar/img/map/marker-icon-green.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon-orange.png b/searx/static/themes/oscar/img/map/marker-icon-orange.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon-red.png b/searx/static/themes/oscar/img/map/marker-icon-red.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-icon.png b/searx/static/themes/oscar/img/map/marker-icon.png Binary files differ. diff --git a/searx/static/oscar/img/map/marker-shadow.png b/searx/static/themes/oscar/img/map/marker-shadow.png Binary files differ. diff --git a/searx/static/oscar/img/searx_logo.png b/searx/static/themes/oscar/img/searx_logo.png Binary files differ. diff --git a/searx/static/oscar/js/bootstrap.min.js b/searx/static/themes/oscar/js/bootstrap.min.js diff --git a/searx/static/oscar/js/html5shiv.min.js b/searx/static/themes/oscar/js/html5shiv.min.js diff --git a/searx/static/oscar/js/jquery-1.11.1.min.js b/searx/static/themes/oscar/js/jquery-1.11.1.min.js diff --git a/searx/static/oscar/js/leaflet-0.7.3.min.js b/searx/static/themes/oscar/js/leaflet-0.7.3.min.js diff --git a/searx/static/oscar/js/require-2.1.15.min.js b/searx/static/themes/oscar/js/require-2.1.15.min.js diff --git a/searx/static/oscar/js/respond.min.js b/searx/static/themes/oscar/js/respond.min.js diff --git a/searx/static/oscar/js/searx.min.js b/searx/static/themes/oscar/js/searx.min.js diff --git a/searx/static/oscar/js/searx_src/00_requirejs_config.js b/searx/static/themes/oscar/js/searx_src/00_requirejs_config.js diff --git a/searx/static/oscar/js/searx_src/autocompleter.js b/searx/static/themes/oscar/js/searx_src/autocompleter.js diff --git a/searx/static/oscar/js/searx_src/element_modifiers.js b/searx/static/themes/oscar/js/searx_src/element_modifiers.js diff --git a/searx/static/oscar/js/searx_src/leaflet_map.js b/searx/static/themes/oscar/js/searx_src/leaflet_map.js diff --git a/searx/static/oscar/js/typeahead.bundle.min.js b/searx/static/themes/oscar/js/typeahead.bundle.min.js diff --git a/searx/static/oscar/less/bootstrap/.csscomb.json b/searx/static/themes/oscar/less/bootstrap/.csscomb.json diff --git a/searx/static/oscar/less/bootstrap/.csslintrc b/searx/static/themes/oscar/less/bootstrap/.csslintrc diff --git a/searx/static/oscar/less/bootstrap/alerts.less b/searx/static/themes/oscar/less/bootstrap/alerts.less diff --git a/searx/static/oscar/less/bootstrap/badges.less b/searx/static/themes/oscar/less/bootstrap/badges.less diff --git a/searx/static/oscar/less/bootstrap/bootstrap.less b/searx/static/themes/oscar/less/bootstrap/bootstrap.less diff --git a/searx/static/oscar/less/bootstrap/breadcrumbs.less b/searx/static/themes/oscar/less/bootstrap/breadcrumbs.less diff --git a/searx/static/oscar/less/bootstrap/button-groups.less b/searx/static/themes/oscar/less/bootstrap/button-groups.less diff --git a/searx/static/oscar/less/bootstrap/buttons.less b/searx/static/themes/oscar/less/bootstrap/buttons.less diff --git a/searx/static/oscar/less/bootstrap/carousel.less b/searx/static/themes/oscar/less/bootstrap/carousel.less diff --git a/searx/static/oscar/less/bootstrap/close.less b/searx/static/themes/oscar/less/bootstrap/close.less diff --git a/searx/static/oscar/less/bootstrap/code.less b/searx/static/themes/oscar/less/bootstrap/code.less diff --git a/searx/static/oscar/less/bootstrap/component-animations.less b/searx/static/themes/oscar/less/bootstrap/component-animations.less diff --git a/searx/static/oscar/less/bootstrap/dropdowns.less b/searx/static/themes/oscar/less/bootstrap/dropdowns.less diff --git a/searx/static/oscar/less/bootstrap/forms.less b/searx/static/themes/oscar/less/bootstrap/forms.less diff --git a/searx/static/oscar/less/bootstrap/glyphicons.less b/searx/static/themes/oscar/less/bootstrap/glyphicons.less diff --git a/searx/static/oscar/less/bootstrap/grid.less b/searx/static/themes/oscar/less/bootstrap/grid.less diff --git a/searx/static/oscar/less/bootstrap/input-groups.less b/searx/static/themes/oscar/less/bootstrap/input-groups.less diff --git a/searx/static/oscar/less/bootstrap/jumbotron.less b/searx/static/themes/oscar/less/bootstrap/jumbotron.less diff --git a/searx/static/oscar/less/bootstrap/labels.less b/searx/static/themes/oscar/less/bootstrap/labels.less diff --git a/searx/static/oscar/less/bootstrap/list-group.less b/searx/static/themes/oscar/less/bootstrap/list-group.less diff --git a/searx/static/oscar/less/bootstrap/media.less b/searx/static/themes/oscar/less/bootstrap/media.less diff --git a/searx/static/oscar/less/bootstrap/mixins.less b/searx/static/themes/oscar/less/bootstrap/mixins.less diff --git a/searx/static/oscar/less/bootstrap/mixins/alerts.less b/searx/static/themes/oscar/less/bootstrap/mixins/alerts.less diff --git a/searx/static/oscar/less/bootstrap/mixins/background-variant.less b/searx/static/themes/oscar/less/bootstrap/mixins/background-variant.less diff --git a/searx/static/oscar/less/bootstrap/mixins/border-radius.less b/searx/static/themes/oscar/less/bootstrap/mixins/border-radius.less diff --git a/searx/static/oscar/less/bootstrap/mixins/buttons.less b/searx/static/themes/oscar/less/bootstrap/mixins/buttons.less diff --git a/searx/static/oscar/less/bootstrap/mixins/center-block.less b/searx/static/themes/oscar/less/bootstrap/mixins/center-block.less diff --git a/searx/static/oscar/less/bootstrap/mixins/clearfix.less b/searx/static/themes/oscar/less/bootstrap/mixins/clearfix.less diff --git a/searx/static/oscar/less/bootstrap/mixins/forms.less b/searx/static/themes/oscar/less/bootstrap/mixins/forms.less diff --git a/searx/static/oscar/less/bootstrap/mixins/gradients.less b/searx/static/themes/oscar/less/bootstrap/mixins/gradients.less diff --git a/searx/static/oscar/less/bootstrap/mixins/grid-framework.less b/searx/static/themes/oscar/less/bootstrap/mixins/grid-framework.less diff --git a/searx/static/oscar/less/bootstrap/mixins/grid.less b/searx/static/themes/oscar/less/bootstrap/mixins/grid.less diff --git a/searx/static/oscar/less/bootstrap/mixins/hide-text.less b/searx/static/themes/oscar/less/bootstrap/mixins/hide-text.less diff --git a/searx/static/oscar/less/bootstrap/mixins/image.less b/searx/static/themes/oscar/less/bootstrap/mixins/image.less diff --git a/searx/static/oscar/less/bootstrap/mixins/labels.less b/searx/static/themes/oscar/less/bootstrap/mixins/labels.less diff --git a/searx/static/oscar/less/bootstrap/mixins/list-group.less b/searx/static/themes/oscar/less/bootstrap/mixins/list-group.less diff --git a/searx/static/oscar/less/bootstrap/mixins/nav-divider.less b/searx/static/themes/oscar/less/bootstrap/mixins/nav-divider.less diff --git a/searx/static/oscar/less/bootstrap/mixins/nav-vertical-align.less b/searx/static/themes/oscar/less/bootstrap/mixins/nav-vertical-align.less diff --git a/searx/static/oscar/less/bootstrap/mixins/opacity.less b/searx/static/themes/oscar/less/bootstrap/mixins/opacity.less diff --git a/searx/static/oscar/less/bootstrap/mixins/pagination.less b/searx/static/themes/oscar/less/bootstrap/mixins/pagination.less diff --git a/searx/static/oscar/less/bootstrap/mixins/panels.less b/searx/static/themes/oscar/less/bootstrap/mixins/panels.less diff --git a/searx/static/oscar/less/bootstrap/mixins/progress-bar.less b/searx/static/themes/oscar/less/bootstrap/mixins/progress-bar.less diff --git a/searx/static/oscar/less/bootstrap/mixins/reset-filter.less b/searx/static/themes/oscar/less/bootstrap/mixins/reset-filter.less diff --git a/searx/static/oscar/less/bootstrap/mixins/resize.less b/searx/static/themes/oscar/less/bootstrap/mixins/resize.less diff --git a/searx/static/oscar/less/bootstrap/mixins/responsive-visibility.less b/searx/static/themes/oscar/less/bootstrap/mixins/responsive-visibility.less diff --git a/searx/static/oscar/less/bootstrap/mixins/size.less b/searx/static/themes/oscar/less/bootstrap/mixins/size.less diff --git a/searx/static/oscar/less/bootstrap/mixins/tab-focus.less b/searx/static/themes/oscar/less/bootstrap/mixins/tab-focus.less diff --git a/searx/static/oscar/less/bootstrap/mixins/table-row.less b/searx/static/themes/oscar/less/bootstrap/mixins/table-row.less diff --git a/searx/static/oscar/less/bootstrap/mixins/text-emphasis.less b/searx/static/themes/oscar/less/bootstrap/mixins/text-emphasis.less diff --git a/searx/static/oscar/less/bootstrap/mixins/text-overflow.less b/searx/static/themes/oscar/less/bootstrap/mixins/text-overflow.less diff --git a/searx/static/oscar/less/bootstrap/mixins/vendor-prefixes.less b/searx/static/themes/oscar/less/bootstrap/mixins/vendor-prefixes.less diff --git a/searx/static/oscar/less/bootstrap/modals.less b/searx/static/themes/oscar/less/bootstrap/modals.less diff --git a/searx/static/oscar/less/bootstrap/navbar.less b/searx/static/themes/oscar/less/bootstrap/navbar.less diff --git a/searx/static/oscar/less/bootstrap/navs.less b/searx/static/themes/oscar/less/bootstrap/navs.less diff --git a/searx/static/oscar/less/bootstrap/normalize.less b/searx/static/themes/oscar/less/bootstrap/normalize.less diff --git a/searx/static/oscar/less/bootstrap/pager.less b/searx/static/themes/oscar/less/bootstrap/pager.less diff --git a/searx/static/oscar/less/bootstrap/pagination.less b/searx/static/themes/oscar/less/bootstrap/pagination.less diff --git a/searx/static/oscar/less/bootstrap/panels.less b/searx/static/themes/oscar/less/bootstrap/panels.less diff --git a/searx/static/oscar/less/bootstrap/popovers.less b/searx/static/themes/oscar/less/bootstrap/popovers.less diff --git a/searx/static/oscar/less/bootstrap/print.less b/searx/static/themes/oscar/less/bootstrap/print.less diff --git a/searx/static/oscar/less/bootstrap/progress-bars.less b/searx/static/themes/oscar/less/bootstrap/progress-bars.less diff --git a/searx/static/oscar/less/bootstrap/responsive-embed.less b/searx/static/themes/oscar/less/bootstrap/responsive-embed.less diff --git a/searx/static/oscar/less/bootstrap/responsive-utilities.less b/searx/static/themes/oscar/less/bootstrap/responsive-utilities.less diff --git a/searx/static/oscar/less/bootstrap/scaffolding.less b/searx/static/themes/oscar/less/bootstrap/scaffolding.less diff --git a/searx/static/oscar/less/bootstrap/tables.less b/searx/static/themes/oscar/less/bootstrap/tables.less diff --git a/searx/static/oscar/less/bootstrap/theme.less b/searx/static/themes/oscar/less/bootstrap/theme.less diff --git a/searx/static/oscar/less/bootstrap/thumbnails.less b/searx/static/themes/oscar/less/bootstrap/thumbnails.less diff --git a/searx/static/oscar/less/bootstrap/tooltip.less b/searx/static/themes/oscar/less/bootstrap/tooltip.less diff --git a/searx/static/oscar/less/bootstrap/type.less b/searx/static/themes/oscar/less/bootstrap/type.less diff --git a/searx/static/oscar/less/bootstrap/typeahead.less b/searx/static/themes/oscar/less/bootstrap/typeahead.less diff --git a/searx/static/oscar/less/bootstrap/utilities.less b/searx/static/themes/oscar/less/bootstrap/utilities.less diff --git a/searx/static/oscar/less/bootstrap/variables.less b/searx/static/themes/oscar/less/bootstrap/variables.less diff --git a/searx/static/oscar/less/bootstrap/wells.less b/searx/static/themes/oscar/less/bootstrap/wells.less diff --git a/searx/static/oscar/less/oscar/checkbox.less b/searx/static/themes/oscar/less/oscar/checkbox.less diff --git a/searx/static/oscar/less/oscar/cursor.less b/searx/static/themes/oscar/less/oscar/cursor.less diff --git a/searx/static/oscar/less/oscar/footer.less b/searx/static/themes/oscar/less/oscar/footer.less diff --git a/searx/static/oscar/less/oscar/infobox.less b/searx/static/themes/oscar/less/oscar/infobox.less diff --git a/searx/static/oscar/less/oscar/oscar.less b/searx/static/themes/oscar/less/oscar/oscar.less diff --git a/searx/static/oscar/less/oscar/results.less b/searx/static/themes/oscar/less/oscar/results.less diff --git a/searx/static/oscar/less/oscar/search.less b/searx/static/themes/oscar/less/oscar/search.less diff --git a/searx/static/oscar/package.json b/searx/static/themes/oscar/package.json diff --git a/searx/utils.py b/searx/utils.py @@ -73,11 +73,9 @@ class HTMLTextExtractor(HTMLParser): self.tags = [] def handle_starttag(self, tag, attrs): - print tag self.tags.append(tag) def handle_endtag(self, tag): - print tag,tag if tag != self.tags[-1]: raise Exception("invalid html") self.tags.pop() @@ -156,11 +154,17 @@ def get_themes(root): """Returns available themes list.""" static_path = os.path.join(root, 'static') - static_names = set(os.listdir(static_path)) templates_path = os.path.join(root, 'templates') - templates_names = set(os.listdir(templates_path)) - themes = [] - for name in static_names.intersection(templates_names): - themes += [name] + themes = os.listdir(os.path.join(static_path, 'themes')) return static_path, templates_path, themes + + +def get_static_files(base_path): + static_files = set() + base_path_length = len(base_path+'/static') + 1 + for directory, _, files in os.walk(os.path.join(base_path, 'static')): + for filename in files: + f = os.path.join(directory[base_path_length:], filename) + static_files.add(f) + return static_files diff --git a/searx/webapp.py b/searx/webapp.py @@ -38,7 +38,8 @@ from searx.engines import ( categories, engines, get_engines_stats, engine_shortcuts ) from searx.utils import ( - UnicodeWriter, highlight_content, html_to_text, get_themes + UnicodeWriter, highlight_content, html_to_text, get_themes, + get_static_files ) from searx.version import VERSION_STRING from searx.languages import language_codes @@ -55,6 +56,8 @@ static_path, templates_path, themes =\ default_theme = settings['server'].get('default_theme', 'default') +static_files = get_static_files(searx_dir) + app = Flask( __name__, static_folder=static_path, @@ -123,9 +126,11 @@ def get_current_theme_name(override=None): def url_for_theme(endpoint, override_theme=None, **values): - if endpoint == 'static' and values.get('filename', None): + if endpoint == 'static' and values.get('filename'): theme_name = get_current_theme_name(override=override_theme) - values['filename'] = "{}/{}".format(theme_name, values['filename']) + filename_with_theme = "themes/{}/{}".format(theme_name, values['filename']) + if filename_with_theme in static_files: + values['filename'] = filename_with_theme return url_for(endpoint, **values)