SearXNG: simple theme

This commit is contained in:
Alexandre Flament 2021-10-01 16:33:31 +02:00
parent 458575c221
commit 74b0830362
21 changed files with 96 additions and 165 deletions

View File

@ -158,6 +158,6 @@
} }
}; };
w.searx.ImageLayout = ImageLayout; w.searxng.ImageLayout = ImageLayout;
}(window, document)); }(window, document));

View File

@ -23,5 +23,3 @@ window.searxng = (function(d) {
translations: JSON.parse(script.getAttribute('data-translations')) translations: JSON.parse(script.getAttribute('data-translations'))
}; };
})(document); })(document);
window.searx = {};

View File

@ -103,6 +103,6 @@ $(document).ready(function(){
/** /**
* Layout images according to their sizes * Layout images according to their sizes
*/ */
searxng.image_thumbnail_layout = new searx.ImageLayout('#main_results', '#main_results .result-images', 'img.img-thumbnail', 15, 200); searxng.image_thumbnail_layout = new searxng.ImageLayout('#main_results', '#main_results .result-images', 'img.img-thumbnail', 15, 200);
searxng.image_thumbnail_layout.watch(); searxng.image_thumbnail_layout.watch();
}); });

View File

@ -1 +0,0 @@
js/searx_src/autocomplete.js

View File

@ -72,8 +72,8 @@ module.exports = function(grunt) {
separator: ';' separator: ';'
}, },
files: { files: {
'js/searx.head.js': ['src/js/head/*.js'], 'js/searxng.head.js': ['src/js/head/*.js'],
'js/searx.js': ['src/js/main/*.js', '../__common__/js/*.js', './node_modules/autocomplete-js/dist/autocomplete.js'] 'js/searxng.js': ['src/js/main/*.js', '../__common__/js/*.js', './node_modules/autocomplete-js/dist/autocomplete.js']
} }
} }
}, },
@ -90,8 +90,8 @@ module.exports = function(grunt) {
}, },
dist: { dist: {
files: { files: {
'js/searx.head.min.js': ['js/searx.head.js'], 'js/searxng.head.min.js': ['js/searxng.head.js'],
'js/searx.min.js': ['js/searx.js'] 'js/searxng.min.js': ['js/searxng.js']
} }
} }
}, },
@ -165,8 +165,8 @@ module.exports = function(grunt) {
paths: ["less"], paths: ["less"],
}, },
files: { files: {
"css/searx.css": "src/less/style.less", "css/searxng.css": "src/less/style.less",
"css/searx-rtl.css": "src/less/style-rtl.less" "css/searxng-rtl.css": "src/less/style-rtl.less"
} }
}, },
production: { production: {
@ -181,8 +181,8 @@ module.exports = function(grunt) {
sourceMapRootpath: '../', sourceMapRootpath: '../',
}, },
files: { files: {
"css/searx.min.css": "src/less/style.less", "css/searxng.min.css": "src/less/style.less",
"css/searx-rtl.min.css": "src/less/style-rtl.less" "css/searxng-rtl.min.css": "src/less/style-rtl.less"
} }
}, },
}, },

View File

@ -1,20 +1,9 @@
/** /**
* searx is free software: you can redistribute it and/or modify * @license
* it under the terms of the GNU Affero General Public License as published by * (C) Copyright Contributors to the SearXNG project.
* the Free Software Foundation, either version 3 of the License, or * (C) Copyright Contributors to the searx project (2014 - 2021).
* (at your option) any later version. * SPDX-License-Identifier: AGPL-3.0-or-later
* */
* searx is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with searx. If not, see < http://www.gnu.org/licenses/ >.
*
* (C) 2019 by Alexandre Flament
*
*/
/* global DocumentTouch:readonly */ /* global DocumentTouch:readonly */
(function(w, d) { (function(w, d) {
'use strict'; 'use strict';
@ -26,7 +15,7 @@
})(); })();
// try to detect touch screen // try to detect touch screen
w.searx = { w.searxng = {
touch: (("ontouchstart" in w) || w.DocumentTouch && document instanceof DocumentTouch) || false, touch: (("ontouchstart" in w) || w.DocumentTouch && document instanceof DocumentTouch) || false,
method: script.getAttribute('data-method'), method: script.getAttribute('data-method'),
autocompleter: script.getAttribute('data-autocompleter') === 'true', autocompleter: script.getAttribute('data-autocompleter') === 'true',
@ -37,5 +26,5 @@
}; };
// update the css // update the css
d.getElementsByTagName("html")[0].className = (w.searx.touch)?"js touch":"js"; d.getElementsByTagName("html")[0].className = (w.searxng.touch)?"js touch":"js";
})(window, document); })(window, document);

View File

@ -1,21 +1,10 @@
/** /**
* searx is free software: you can redistribute it and/or modify * @license
* it under the terms of the GNU Affero General Public License as published by * (C) Copyright Contributors to the SearXNG project.
* the Free Software Foundation, either version 3 of the License, or * (C) Copyright Contributors to the searx project (2014 - 2021).
* (at your option) any later version. * SPDX-License-Identifier: AGPL-3.0-or-later
* */
* searx is distributed in the hope that it will be useful, window.searxng = (function(w, d) {
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with searx. If not, see < http://www.gnu.org/licenses/ >.
*
* (C) 2017 by Alexandre Flament, <alex@al-f.net>
*
*/
window.searx = (function(w, d) {
'use strict'; 'use strict';
@ -45,9 +34,9 @@ window.searx = (function(w, d) {
} }
} }
var searx = window.searx || {}; var searxng = window.searxng || {};
searx.on = function(obj, eventType, callback, useCapture) { searxng.on = function(obj, eventType, callback, useCapture) {
useCapture = useCapture || false; useCapture = useCapture || false;
if (typeof obj !== 'string') { if (typeof obj !== 'string') {
// obj HTMLElement, HTMLDocument // obj HTMLElement, HTMLDocument
@ -62,7 +51,7 @@ window.searx = (function(w, d) {
} }
}; };
searx.ready = function(callback) { searxng.ready = function(callback) {
if (document.readyState != 'loading') { if (document.readyState != 'loading') {
callback.call(w); callback.call(w);
} else { } else {
@ -70,7 +59,7 @@ window.searx = (function(w, d) {
} }
}; };
searx.http = function(method, url) { searxng.http = function(method, url) {
var req = new XMLHttpRequest(), var req = new XMLHttpRequest(),
resolve = function() {}, resolve = function() {},
reject = function() {}, reject = function() {},
@ -109,8 +98,8 @@ window.searx = (function(w, d) {
return promise; return promise;
}; };
searx.loadStyle = function(src) { searxng.loadStyle = function(src) {
var path = searx.static_path + src, var path = searxng.static_path + src,
id = "style_" + src.replace('.', '_'), id = "style_" + src.replace('.', '_'),
s = d.getElementById(id); s = d.getElementById(id);
if (s === null) { if (s === null) {
@ -123,8 +112,8 @@ window.searx = (function(w, d) {
} }
}; };
searx.loadScript = function(src, callback) { searxng.loadScript = function(src, callback) {
var path = searx.static_path + src, var path = searxng.static_path + src,
id = "script_" + src.replace('.', '_'), id = "script_" + src.replace('.', '_'),
s = d.getElementById(id); s = d.getElementById(id);
if (s === null) { if (s === null) {
@ -147,17 +136,17 @@ window.searx = (function(w, d) {
} }
}; };
searx.insertBefore = function (newNode, referenceNode) { searxng.insertBefore = function (newNode, referenceNode) {
referenceNode.parentNode.insertBefore(newNode, referenceNode); referenceNode.parentNode.insertBefore(newNode, referenceNode);
}; };
searx.insertAfter = function(newNode, referenceNode) { searxng.insertAfter = function(newNode, referenceNode) {
referenceNode.parentNode.insertAfter(newNode, referenceNode.nextSibling); referenceNode.parentNode.insertAfter(newNode, referenceNode.nextSibling);
}; };
searx.on('.close', 'click', function() { searxng.on('.close', 'click', function() {
this.parentNode.classList.add('invisible'); this.parentNode.classList.add('invisible');
}); });
return searx; return searxng;
})(window, document); })(window, document);

View File

@ -1,12 +1,13 @@
/*global searx*/ /* SPDX-License-Identifier: AGPL-3.0-or-later */
/*global searxng*/
searx.ready(function() { searxng.ready(function() {
searx.on('.result', 'click', function() { searxng.on('.result', 'click', function() {
highlightResult(this)(true); highlightResult(this)(true);
}); });
searx.on('.result a', 'focus', function(e) { searxng.on('.result a', 'focus', function(e) {
var el = e.target; var el = e.target;
while (el !== undefined) { while (el !== undefined) {
if (el.classList.contains('result')) { if (el.classList.contains('result')) {
@ -118,7 +119,7 @@ searx.ready(function() {
} }
}; };
searx.on(document, "keydown", function(e) { searxng.on(document, "keydown", function(e) {
// check for modifiers so we don't break browser's hotkeys // check for modifiers so we don't break browser's hotkeys
if (Object.prototype.hasOwnProperty.call(vimKeys, e.keyCode) && !e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey) { if (Object.prototype.hasOwnProperty.call(vimKeys, e.keyCode) && !e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey) {
var tagName = e.target.tagName.toLowerCase(); var tagName = e.target.tagName.toLowerCase();

View File

@ -1,28 +1,12 @@
/** /* SPDX-License-Identifier: AGPL-3.0-or-later */
* searx is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* searx is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with searx. If not, see < http://www.gnu.org/licenses/ >.
*
* (C) 2014 by Thomas Pointhuber, <thomas.pointhuber@gmx.at>
* (C) 2017 by Alexandre Flament, <alex@al-f.net>
*/
/* global L */ /* global L */
(function (w, d, searx) { (function (w, d, searxng) {
'use strict'; 'use strict';
searx.ready(function () { searxng.ready(function () {
searx.on('.searx_init_map', 'click', function(event) { searxng.on('.searxng_init_map', 'click', function(event) {
// no more request // no more request
this.classList.remove("searx_init_map"); this.classList.remove("searxng_init_map");
// //
var leaflet_target = this.dataset.leafletTarget; var leaflet_target = this.dataset.leafletTarget;
@ -32,8 +16,8 @@
var map_boundingbox = JSON.parse(this.dataset.mapBoundingbox); var map_boundingbox = JSON.parse(this.dataset.mapBoundingbox);
var map_geojson = JSON.parse(this.dataset.mapGeojson); var map_geojson = JSON.parse(this.dataset.mapGeojson);
searx.loadStyle('css/leaflet.css'); searxng.loadStyle('css/leaflet.css');
searx.loadScript('js/leaflet.js', function() { searxng.loadScript('js/leaflet.js', function() {
var map_bounds = null; var map_bounds = null;
if(map_boundingbox) { if(map_boundingbox) {
var southWest = L.latLng(map_boundingbox[0], map_boundingbox[2]); var southWest = L.latLng(map_boundingbox[0], map_boundingbox[2]);
@ -87,4 +71,4 @@
event.preventDefault(); event.preventDefault();
}); });
}); });
})(window, document, window.searx); })(window, document, window.searxng);

View File

@ -1,16 +1,17 @@
(function (w, d, searx) { /* SPDX-License-Identifier: AGPL-3.0-or-later */
(function (w, d, searxng) {
'use strict'; 'use strict';
searx.ready(function() { searxng.ready(function() {
let engine_descriptions = null; let engine_descriptions = null;
function load_engine_descriptions() { function load_engine_descriptions() {
if (engine_descriptions == null) { if (engine_descriptions == null) {
searx.http("GET", "engine_descriptions.json").then(function(content) { searxng.http("GET", "engine_descriptions.json").then(function(content) {
engine_descriptions = JSON.parse(content); engine_descriptions = JSON.parse(content);
for (const [engine_name, description] of Object.entries(engine_descriptions)) { for (const [engine_name, description] of Object.entries(engine_descriptions)) {
let elements = d.querySelectorAll('[data-engine-name="' + engine_name + '"] .engine-description'); let elements = d.querySelectorAll('[data-engine-name="' + engine_name + '"] .engine-description');
for(const element of elements) { for(const element of elements) {
let source = ' (<i>' + searx.translations['Source'] + ':&nbsp;' + description[1] + '</i>)'; let source = ' (<i>' + searxng.translations['Source'] + ':&nbsp;' + description[1] + '</i>)';
element.innerHTML = description[0] + source; element.innerHTML = description[0] + source;
} }
} }
@ -20,8 +21,8 @@
if (d.querySelector('body[class="preferences_endpoint"]')) { if (d.querySelector('body[class="preferences_endpoint"]')) {
for(const el of d.querySelectorAll('[data-engine-name]')) { for(const el of d.querySelectorAll('[data-engine-name]')) {
searx.on(el, 'mouseenter', load_engine_descriptions); searxng.on(el, 'mouseenter', load_engine_descriptions);
} }
} }
}); });
})(window, document, window.searx); })(window, document, window.searxng);

View File

@ -1,27 +1,12 @@
/** /* SPDX-License-Identifier: AGPL-3.0-or-later */
* searx is free software: you can redistribute it and/or modify (function(w, d, searxng) {
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* searx is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with searx. If not, see < http://www.gnu.org/licenses/ >.
*
* (C) 2017 by Alexandre Flament, <alex@al-f.net>
*/
(function(w, d, searx) {
'use strict'; 'use strict';
searx.ready(function() { searxng.ready(function() {
searx.image_thumbnail_layout = new searx.ImageLayout('#urls', '#urls .result-images', 'img.image_thumbnail', 10, 200); searxng.image_thumbnail_layout = new searxng.ImageLayout('#urls', '#urls .result-images', 'img.image_thumbnail', 10, 200);
searx.image_thumbnail_layout.watch(); searxng.image_thumbnail_layout.watch();
searx.on('.btn-collapse', 'click', function() { searxng.on('.btn-collapse', 'click', function() {
var btnLabelCollapsed = this.getAttribute('data-btn-text-collapsed'); var btnLabelCollapsed = this.getAttribute('data-btn-text-collapsed');
var btnLabelNotCollapsed = this.getAttribute('data-btn-text-not-collapsed'); var btnLabelNotCollapsed = this.getAttribute('data-btn-text-not-collapsed');
var target = this.getAttribute('data-target'); var target = this.getAttribute('data-target');
@ -37,7 +22,7 @@
targetElement.classList.toggle('invisible'); targetElement.classList.toggle('invisible');
}); });
searx.on('.media-loader', 'click', function() { searxng.on('.media-loader', 'click', function() {
var target = this.getAttribute('data-target'); var target = this.getAttribute('data-target');
var iframe_load = d.querySelector(target + ' > iframe'); var iframe_load = d.querySelector(target + ' > iframe');
var srctest = iframe_load.getAttribute('src'); var srctest = iframe_load.getAttribute('src');
@ -60,4 +45,4 @@
}); });
})(window, document, window.searx); })(window, document, window.searxng);

View File

@ -1,21 +1,6 @@
/** /* SPDX-License-Identifier: AGPL-3.0-or-later */
* searx is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* searx is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with searx. If not, see < http://www.gnu.org/licenses/ >.
*
* (C) 2017 by Alexandre Flament, <alex@al-f.net>
*/
/* global AutoComplete */ /* global AutoComplete */
(function(w, d, searx) { (function(w, d, searxng) {
'use strict'; 'use strict';
var firstFocus = true, qinput_id = "q", qinput; var firstFocus = true, qinput_id = "q", qinput;
@ -54,7 +39,7 @@
qinput.addEventListener('keyup', updateClearButton, false); qinput.addEventListener('keyup', updateClearButton, false);
} }
searx.ready(function() { searxng.ready(function() {
qinput = d.getElementById(qinput_id); qinput = d.getElementById(qinput_id);
function placeCursorAtEndOnce() { function placeCursorAtEndOnce() {
@ -71,11 +56,11 @@
createClearButton(qinput); createClearButton(qinput);
// autocompleter // autocompleter
if (searx.autocompleter) { if (searxng.autocompleter) {
searx.autocomplete = AutoComplete.call(w, { searxng.autocomplete = AutoComplete.call(w, {
Url: "./autocompleter", Url: "./autocompleter",
EmptyMessage: searx.translations.no_item_found, EmptyMessage: searxng.translations.no_item_found,
HttpMethod: searx.method, HttpMethod: searxng.method,
HttpHeaders: { HttpHeaders: {
"Content-type": "application/x-www-form-urlencoded", "Content-type": "application/x-www-form-urlencoded",
"X-Requested-With": "XMLHttpRequest" "X-Requested-With": "XMLHttpRequest"
@ -96,10 +81,10 @@
} }
// vanilla js version of search_on_category_select.js // vanilla js version of search_on_category_select.js
if (qinput !== null && d.querySelector('.help') != null && searx.search_on_category_select) { if (qinput !== null && d.querySelector('.help') != null && searxng.search_on_category_select) {
d.querySelector('.help').className='invisible'; d.querySelector('.help').className='invisible';
searx.on('#categories input', 'change', function() { searxng.on('#categories input', 'change', function() {
var i, categories = d.querySelectorAll('#categories input[type="checkbox"]'); var i, categories = d.querySelectorAll('#categories input[type="checkbox"]');
for(i=0; i<categories.length; i++) { for(i=0; i<categories.length; i++) {
if (categories[i] !== this && categories[i].checked) { if (categories[i] !== this && categories[i].checked) {
@ -113,10 +98,10 @@
return false; return false;
}); });
searx.on(d.getElementById('time_range'), 'change', submitIfQuery); searxng.on(d.getElementById('time_range'), 'change', submitIfQuery);
searx.on(d.getElementById('language'), 'change', submitIfQuery); searxng.on(d.getElementById('language'), 'change', submitIfQuery);
} }
}); });
})(window, document, window.searx); })(window, document, window.searxng);

View File

@ -1,5 +1,5 @@
/* /*
* searx, A privacy-respecting, hackable metasearch engine * SearXNG, A privacy-respecting, hackable metasearch engine
* *
* To change the colors of the site, simple edit this variables * To change the colors of the site, simple edit this variables
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* searx, A privacy-respecting, hackable metasearch engine * SearXNG, A privacy-respecting, hackable metasearch engine
*/ */
// Mixins // Mixins

View File

@ -1,5 +1,5 @@
/* /*
* searx, A privacy-respecting, hackable metasearch engine * SearXNG, A privacy-respecting, hackable metasearch engine
*/ */
#search { #search {

View File

@ -1,5 +1,5 @@
/* /*
* searx, A privacy-respecting, hackable metasearch engine * SearXNG, A privacy-respecting, hackable metasearch engine
* *
* To convert "style.less" to "style.css" run: $make styles * To convert "style.less" to "style.css" run: $make styles
*/ */

View File

@ -2,9 +2,9 @@
<html class="no-js" lang="en" {% if rtl %} dir="rtl"{% endif %}> <html class="no-js" lang="en" {% if rtl %} dir="rtl"{% endif %}>
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="description" content="searx — a privacy-respecting, hackable metasearch engine"> <meta name="description" content="SearXNG — a privacy-respecting, hackable metasearch engine">
<meta name="keywords" content="searx, search, search engine, metasearch, meta search"> <meta name="keywords" content="SearXNG, search, search engine, metasearch, meta search">
<meta name="generator" content="searx/{{ searx_version }}"> <meta name="generator" content="searxng/{{ searx_version }}">
<meta name="referrer" content="no-referrer"> <meta name="referrer" content="no-referrer">
<meta name="robots" content="noarchive"> <meta name="robots" content="noarchive">
<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=1"> <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=1">
@ -13,13 +13,13 @@
<title>{% block title %}{% endblock %}{{ instance_name }}</title> <title>{% block title %}{% endblock %}{{ instance_name }}</title>
{% block meta %}{% endblock %} {% block meta %}{% endblock %}
{% if rtl %} {% if rtl %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/searx-rtl.min.css') }}" type="text/css" media="screen" /> <link rel="stylesheet" href="{{ url_for('static', filename='css/searxng-rtl.min.css') }}" type="text/css" media="screen" />
{% else %} {% else %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/searx.min.css') }}" type="text/css" media="screen" /> <link rel="stylesheet" href="{{ url_for('static', filename='css/searxng.min.css') }}" type="text/css" media="screen" />
{% endif %} {% endif %}
{% block styles %}{% endblock %} {% block styles %}{% endblock %}
<!--[if gte IE 9]>--> <!--[if gte IE 9]>-->
<script src="{{ url_for('static', filename='js/searx.head.min.js') }}" <script src="{{ url_for('static', filename='js/searxng.head.min.js') }}"
data-method="{{ method or 'POST' }}" data-method="{{ method or 'POST' }}"
data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}" data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}"
data-search-on-category-select="{{ 'true' if 'plugins/js/search_on_category_select.js' in scripts else 'false'}}" data-search-on-category-select="{{ 'true' if 'plugins/js/search_on_category_select.js' in scripts else 'false'}}"
@ -59,7 +59,7 @@
</p> </p>
</footer> </footer>
<!--[if gte IE 9]>--> <!--[if gte IE 9]>-->
<script src="{{ url_for('static', filename='js/searx.min.js') }}"></script> <script src="{{ url_for('static', filename='js/searxng.min.js') }}"></script>
<!--<![endif]--> <!--<![endif]-->
</body> </body>
</html> </html>

View File

@ -11,7 +11,7 @@
</p> </p>
{%- endfor %} {%- endfor %}
<p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>) </small></p> <p><small>{{ _('Please, try again later or find another SearXNG instance.') }} (<a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>) </small></p>
</div> </div>
{% else %} {% else %}
<div class="dialog-error" role="alert"> <div class="dialog-error" role="alert">

View File

@ -95,7 +95,7 @@
{% block head %} {% endblock %} {% block head %} {% endblock %}
{% block content %} {% block content %}
<a href="{{ url_for('index') }}"><h1><span>searx</span></h1></a> <a href="{{ url_for('index') }}"><h1><span>SearXNG</span></h1></a>
<h2>{{ _('Preferences') }}</h2> <h2>{{ _('Preferences') }}</h2>
@ -194,7 +194,7 @@
{%- endfor -%} {%- endfor -%}
</select> </select>
</p> </p>
<div class="description">{{ _('Change searx layout') }}</div> <div class="description">{{ _('Change SearXNG layout') }}</div>
</fieldset> </fieldset>
{% endif %} {% endif %}
{% if 'results_on_new_tab' not in locked_preferences %} {% if 'results_on_new_tab' not in locked_preferences %}
@ -234,7 +234,7 @@
<option value="" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option> <option value="" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
</select> </select>
</p> </p>
<div class="description">{{ _('Proxying image results through searx') }}</div> <div class="description">{{ _('Proxying image results through SearXNG') }}</div>
</fieldset> </fieldset>
{% endif %} {% endif %}
{{ plugin_preferences('privacy') }} {{ plugin_preferences('privacy') }}
@ -293,7 +293,7 @@
<th>{{ _('Examples') }}</th> <th>{{ _('Examples') }}</th>
</tr> </tr>
<td></td> <td></td>
<th scope="colgroup" colspan="4">{{ _('This is the list of searx\'s instant answering modules.') }}</th> <th scope="colgroup" colspan="4">{{ _('This is the list of SearXNG\'s instant answering modules.') }}</th>
{% for answerer in answerers %} {% for answerer in answerers %}
<tr> <tr>
<td></td> <td></td>
@ -323,8 +323,8 @@
{{ tab_header('maintab', 'cookies', _('Cookies')) }} {{ tab_header('maintab', 'cookies', _('Cookies')) }}
<p class="text-muted"> <p class="text-muted">
{{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br /> {{ _('This is the list of cookies and their values SearXNG is storing on your computer.') }}<br />
{{ _('With that list, you can assess searx transparency.') }}<br /> {{ _('With that list, you can assess SearXNG transparency.') }}<br />
</p> </p>
{% if cookies %} {% if cookies %}
<table class="cookies"> <table class="cookies">

View File

@ -39,7 +39,7 @@
</table> </table>
{%- if (result.latitude and result.longitude) or result.boundingbox -%} {%- if (result.latitude and result.longitude) or result.boundingbox -%}
<small> <a class="btn-collapse collapsed searx_init_map hide_if_nojs" data-target="#result-map-{{ index }}" data-btn-text-collapsed="{{ _('show map') }}" data-btn-text-not-collapsed="{{ _('hide map') }}" data-leaflet-target="osm-map-{{ index }}" data-map-lon="{{ result.longitude }}" data-map-lat="{{ result.latitude }}" {% if result.boundingbox %}data-map-boundingbox='{{ result.boundingbox|tojson|safe }}'{% endif %} {% if result.geojson %}data-map-geojson='{{ result.geojson|tojson|safe }}'{% endif %}>{{ icon( 'globe') }} {{ _('show map') }}</a></small> <small> <a class="btn-collapse collapsed searxng_init_map hide_if_nojs" data-target="#result-map-{{ index }}" data-btn-text-collapsed="{{ _('show map') }}" data-btn-text-not-collapsed="{{ _('hide map') }}" data-leaflet-target="osm-map-{{ index }}" data-map-lon="{{ result.longitude }}" data-map-lat="{{ result.latitude }}" {% if result.boundingbox %}data-map-boundingbox='{{ result.boundingbox|tojson|safe }}'{% endif %} {% if result.geojson %}data-map-geojson='{{ result.geojson|tojson|safe }}'{% endif %}>{{ icon( 'globe') }} {{ _('show map') }}</a></small>
{%- endif -%} {%- endif -%}
{{- result_sub_footer(result, proxify) -}} {{- result_sub_footer(result, proxify) -}}

View File

@ -16,7 +16,7 @@
{% block head %} {% endblock %} {% block head %} {% endblock %}
{% block content %} {% block content %}
<a href="{{ url_for('index') }}"><h1><span>searx</span></h1></a> <a href="{{ url_for('index') }}"><h1><span>SearXNG</span></h1></a>
<h2>{% if selected_engine_name %}<a href="{{ url_for('stats') }}">{% endif %}{{ _('Engine stats') }}{% if selected_engine_name %}</a> - {{ selected_engine_name }}{% endif %}</h2> <h2>{% if selected_engine_name %}<a href="{{ url_for('stats') }}">{% endif %}{{ _('Engine stats') }}{% if selected_engine_name %}</a> - {{ selected_engine_name }}{% endif %}</h2>