[mod] rename "default" theme to "legacy"
commitbee7b497a300622f5ba2b619817f5c89c29ae871
authorAdam Tauber <asciimoo@gmail.com>
dateThu 22 Sep 2016, 23:51 (10 years ago)
parentaaf5d50
manage.sh+2−2
@@ -53,8 +53,8 @@ build_style() {
5353
5454styles() {
5555 echo '[!] Building styles'
56− build_style themes/default/less/style.less themes/default/css/style.css
57− build_style themes/default/less/style-rtl.less themes/default/css/style-rtl.css
56+ build_style themes/legacy/less/style.less themes/legacy/css/style.css
57+ build_style themes/legacy/less/style-rtl.less themes/legacy/css/style-rtl.css
5858 build_style themes/courgette/less/style.less themes/courgette/css/style.css
5959 build_style themes/courgette/less/style-rtl.less themes/courgette/css/style-rtl.css
6060 build_style less/bootstrap/bootstrap.less css/bootstrap.min.css
searx/settings_robot.yml+1−1
@@ -15,7 +15,7 @@ server:
1515
1616ui:
1717 themes_path : ""
18− default_theme : default
18+ default_theme : legacy
1919 default_locale : ""
2020
2121outgoing:
searx/static/themes/default/css/style-rtl.css → searx/static/themes/legacy/css/style-rtl.cssrenamed
The content is the same.
searx/static/themes/default/css/style.css → searx/static/themes/legacy/css/style.cssrenamed
The content is the same.
searx/static/themes/default/img/favicon.png → searx/static/themes/legacy/img/favicon.pngrenamed
Binary file not shown.
searx/static/themes/default/img/github_ribbon.png → searx/static/themes/legacy/img/github_ribbon.pngrenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_500px.ico → searx/static/themes/legacy/img/icons/icon_500px.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_bing.ico → searx/static/themes/legacy/img/icons/icon_bing.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_dailymotion.ico → searx/static/themes/legacy/img/icons/icon_dailymotion.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_deezer.ico → searx/static/themes/legacy/img/icons/icon_deezer.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_deviantart.ico → searx/static/themes/legacy/img/icons/icon_deviantart.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_digg.ico → searx/static/themes/legacy/img/icons/icon_digg.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_duckduckgo.ico → searx/static/themes/legacy/img/icons/icon_duckduckgo.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_flickr.ico → searx/static/themes/legacy/img/icons/icon_flickr.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_github.ico → searx/static/themes/legacy/img/icons/icon_github.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_google play apps.ico → searx/static/themes/legacy/img/icons/icon_google play apps.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_google play movies.ico → searx/static/themes/legacy/img/icons/icon_google play movies.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_google play music.ico → searx/static/themes/legacy/img/icons/icon_google play music.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_google.ico → searx/static/themes/legacy/img/icons/icon_google.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_kickass.ico → searx/static/themes/legacy/img/icons/icon_kickass.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_openstreetmap.ico → searx/static/themes/legacy/img/icons/icon_openstreetmap.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_searchcode code.ico → searx/static/themes/legacy/img/icons/icon_searchcode code.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_searchcode doc.ico → searx/static/themes/legacy/img/icons/icon_searchcode doc.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_searchcode.ico → searx/static/themes/legacy/img/icons/icon_searchcode.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_soundcloud.ico → searx/static/themes/legacy/img/icons/icon_soundcloud.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_stackoverflow.ico → searx/static/themes/legacy/img/icons/icon_stackoverflow.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_startpage.ico → searx/static/themes/legacy/img/icons/icon_startpage.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_subtitleseeker.ico → searx/static/themes/legacy/img/icons/icon_subtitleseeker.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_twitter.ico → searx/static/themes/legacy/img/icons/icon_twitter.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_vimeo.ico → searx/static/themes/legacy/img/icons/icon_vimeo.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_wikipedia.ico → searx/static/themes/legacy/img/icons/icon_wikipedia.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_yahoo.ico → searx/static/themes/legacy/img/icons/icon_yahoo.icorenamed
Binary file not shown.
searx/static/themes/default/img/icons/icon_youtube.ico → searx/static/themes/legacy/img/icons/icon_youtube.icorenamed
Binary file not shown.
searx/static/themes/default/img/preference-icon.png → searx/static/themes/legacy/img/preference-icon.pngrenamed
Binary file not shown.
searx/static/themes/default/img/search-icon.png → searx/static/themes/legacy/img/search-icon.pngrenamed
Binary file not shown.
searx/static/themes/default/img/searx.png → searx/static/themes/legacy/img/searx.pngrenamed
Binary file not shown.
searx/static/themes/default/img/searx_logo.svg → searx/static/themes/legacy/img/searx_logo.svgrenamed
The content is the same.
searx/static/themes/default/js/searx.js → searx/static/themes/legacy/js/searx.jsrenamed
The content is the same.
searx/static/themes/default/less/autocompleter.less → searx/static/themes/legacy/less/autocompleter.lessrenamed
The content is the same.
searx/static/themes/default/less/code.less → searx/static/themes/legacy/less/code.lessrenamed
The content is the same.
searx/static/themes/default/less/definitions.less → searx/static/themes/legacy/less/definitions.lessrenamed
The content is the same.
searx/static/themes/default/less/mixins.less → searx/static/themes/legacy/less/mixins.lessrenamed
The content is the same.
searx/static/themes/default/less/search.less → searx/static/themes/legacy/less/search.lessrenamed
The content is the same.
searx/static/themes/default/less/style-rtl.less → searx/static/themes/legacy/less/style-rtl.lessrenamed
The content is the same.
searx/static/themes/default/less/style.less → searx/static/themes/legacy/less/style.lessrenamed
The content is the same.
searx/templates/default/404.html → searx/templates/legacy/404.htmlrenamed+1−1
@@ -1,4 +1,4 @@
1−{% extends "default/base.html" %}
1+{% extends "legacy/base.html" %}
22{% block content %}
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
searx/templates/default/about.html → searx/templates/legacy/about.htmlrenamed+2−2
@@ -1,6 +1,6 @@
1−{% extends 'default/base.html' %}
1+{% extends 'legacy/base.html' %}
22{% block content %}
3−{% include 'default/github_ribbon.html' %}
3+{% include 'legacy/github_ribbon.html' %}
44<div class="row"{% if rtl %} dir="ltr"{% endif %}>
55 <h1>About <a href="{{ url_for('index') }}">searx</a></h1>
66
searx/templates/default/base.html → searx/templates/legacy/base.htmlrenamed
The content is the same.
searx/templates/default/categories.html → searx/templates/legacy/categories.htmlrenamed
The content is the same.
searx/templates/default/github_ribbon.html → searx/templates/legacy/github_ribbon.htmlrenamed
The content is the same.
searx/templates/default/index.html → searx/templates/legacy/index.htmlrenamed+3−3
@@ -1,8 +1,8 @@
1−{% extends "default/base.html" %}
1+{% extends "legacy/base.html" %}
22{% block content %}
33<div class="center">
44 <div class="title"><h1>searx</h1></div>
5− {% include 'default/search.html' %}
5+ {% include 'legacy/search.html' %}
66 <p class="top_margin">
77 {% if rtl %}
88 <a href="{{ url_for('preferences') }}" class="hmarg">{{ _('preferences') }}</a>
@@ -13,6 +13,6 @@
1313 {% endif %}
1414 </p>
1515</div>
16−{% include 'default/github_ribbon.html' %}
16+{% include 'legacy/github_ribbon.html' %}
1717{% endblock %}
1818
searx/templates/default/infobox.html → searx/templates/legacy/infobox.htmlrenamed
The content is the same.
searx/templates/default/opensearch.xml → searx/templates/legacy/opensearch.xmlrenamed
The content is the same.
searx/templates/default/opensearch_response_rss.xml → searx/templates/legacy/opensearch_response_rss.xmlrenamed
The content is the same.
searx/templates/default/preferences.html → searx/templates/legacy/preferences.htmlrenamed+2−2
@@ -1,4 +1,4 @@
1−{% extends "default/base.html" %}
1+{% extends "legacy/base.html" %}
22{% block head %} {% endblock %}
33{% block content %}
44<div class="row">
@@ -8,7 +8,7 @@
88 <fieldset>
99 <legend>{{ _('Default categories') }}</legend>
1010 {% set display_tooltip = false %}
11− {% include 'default/categories.html' %}
11+ {% include 'legacy/categories.html' %}
1212 </fieldset>
1313 <fieldset>
1414 <legend>{{ _('Search language') }}</legend>
searx/templates/default/result_templates/code.html → searx/templates/legacy/result_templates/code.htmlrenamed
The content is the same.
searx/templates/default/result_templates/default.html → searx/templates/legacy/result_templates/default.htmlrenamed
The content is the same.
searx/templates/default/result_templates/images.html → searx/templates/legacy/result_templates/images.htmlrenamed
The content is the same.
searx/templates/default/result_templates/map.html → searx/templates/legacy/result_templates/map.htmlrenamed
The content is the same.
searx/templates/default/result_templates/torrent.html → searx/templates/legacy/result_templates/torrent.htmlrenamed
The content is the same.
searx/templates/default/result_templates/videos.html → searx/templates/legacy/result_templates/videos.htmlrenamed
The content is the same.
searx/templates/default/results.html → searx/templates/legacy/results.htmlrenamed+5−5
@@ -1,10 +1,10 @@
1−{% extends "default/base.html" %}
1+{% extends "legacy/base.html" %}
22{% block title %}{{ q }} - {% endblock %}
33{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&format=rss&{% for category in selected_categories %}category_{{ category }}=1&{% endfor %}pageno={{ pageno }}">{% endblock %}
44{% block content %}
55<div class="preferences_container right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div>
66<div class="small search center">
7− {% include 'default/search.html' %}
7+ {% include 'legacy/search.html' %}
88</div>
99<div id="results">
1010 <div id="sidebar">
@@ -55,16 +55,16 @@
5555 {% if infoboxes %}
5656 <div id="infoboxes">
5757 {% for infobox in infoboxes %}
58− {% include 'default/infobox.html' %}
58+ {% include 'legacy/infobox.html' %}
5959 {% endfor %}
6060 </div>
6161 {% endif %}
6262
6363 {% for result in results %}
6464 {% if result['template'] %}
65− {% include get_result_template('default', result['template']) %}
65+ {% include get_result_template('legacy', result['template']) %}
6666 {% else %}
67− {% include 'default/result_templates/default.html' %}
67+ {% include 'legacy/result_templates/default.html' %}
6868 {% endif %}
6969 {% endfor %}
7070
searx/templates/default/search.html → searx/templates/legacy/search.htmlrenamed+1−1
@@ -4,5 +4,5 @@
44 <input type="submit" value="search" id="search_submit" />
55 </div>
66 {% set display_tooltip = true %}
7− {% include 'default/categories.html' %}
7+ {% include 'legacy/categories.html' %}
88</form>
searx/templates/default/stats.html → searx/templates/legacy/stats.htmlrenamed+1−1
@@ -1,4 +1,4 @@
1−{% extends "default/base.html" %}
1+{% extends "legacy/base.html" %}
22{% block head %} {% endblock %}
33{% block content %}
44<h2>{{ _('Engine stats') }}</h2>
searx/templates/pix-art/preferences.html+1−1
@@ -1,4 +1,4 @@
1−{% extends "default/base.html" %}
1+{% extends "legacy/base.html" %}
22{% block head %} {% endblock %}
33{% block content %}
44<div class="row">
searx/templates/pix-art/stats.html+1−1
@@ -1,4 +1,4 @@
1−{% extends "default/base.html" %}
1+{% extends "legacy/base.html" %}
22{% block head %} {% endblock %}
33{% block content %}
44<h2>{{ _('Engine stats') }}</h2>
tests/robot/test_basic.robot+2−2
@@ -67,7 +67,7 @@ Change theme
6767 Page Should Contain about
6868 Page Should Contain preferences
6969 Go To http://localhost:11111/preferences
70− List Selection Should Be theme default
70+ List Selection Should Be theme legacy
7171 Select From List theme oscar
7272 Submit Form id=search_form
7373 Location Should Be http://localhost:11111/
@@ -139,7 +139,7 @@ Block a plugin
139139 Page Should Contain about
140140 Page Should Contain preferences
141141 Go To http://localhost:11111/preferences
142− List Selection Should Be theme default
142+ List Selection Should Be theme legacy
143143 Select From List theme oscar
144144 Submit Form id=search_form
145145 Location Should Be http://localhost:11111/
tests/unit/test_webapp.py+2−2
@@ -44,7 +44,7 @@ class ViewsTestCase(SearxTestCase):
4444 webapp.Search.search = search_mock
4545
4646 def get_current_theme_name_mock(override=None):
47− return 'default'
47+ return 'legacy'
4848
4949 webapp.get_current_theme_name = get_current_theme_name_mock
5050
@@ -58,7 +58,7 @@ class ViewsTestCase(SearxTestCase):
5858 def test_index_html(self):
5959 result = self.app.post('/', data={'q': 'test'})
6060 self.assertIn(
61− '<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/default/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqa
61+ '<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/legacy/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqa
6262 result.data
6363 )
6464 self.assertIn(