summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-04-21 18:49:13 +0200
committerAlexandre Flament <alex@al-f.net>2021-04-21 18:49:13 +0200
commitbaff1cbbab8a72155823c3186971a5f56d7a92f2 (patch)
tree8dbfe68268cd74c31b9a1c8ff2da3002edcb658d /searx
parent7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f (diff)
downloadsearxng-baff1cbbab8a72155823c3186971a5f56d7a92f2.tar.gz
searxng-baff1cbbab8a72155823c3186971a5f56d7a92f2.zip
fix issues from review
Diffstat (limited to 'searx')
-rw-r--r--searx/__init__.py1
-rw-r--r--searx/static/themes/simple/less/toolkit.less2
-rw-r--r--searx/templates/oscar/preferences.html18
3 files changed, 2 insertions, 19 deletions
diff --git a/searx/__init__.py b/searx/__init__.py
index 15048bcc2..11adbba73 100644
--- a/searx/__init__.py
+++ b/searx/__init__.py
@@ -20,6 +20,7 @@ import searx.settings_loader
from os import environ
from os.path import realpath, dirname, join, abspath, isfile
+
searx_dir = abspath(dirname(__file__))
engine_dir = dirname(realpath(__file__))
static_path = abspath(join(dirname(__file__), 'static'))
diff --git a/searx/static/themes/simple/less/toolkit.less b/searx/static/themes/simple/less/toolkit.less
index 3999df3b6..b3dba9ea9 100644
--- a/searx/static/themes/simple/less/toolkit.less
+++ b/searx/static/themes/simple/less/toolkit.less
@@ -493,7 +493,7 @@ select {
width: 3rem;
display: inline-block;
position: absolute;
- padding: 0 0.5rem;
+ padding: 0 0.5rem;
text-align: right;
}
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index 9051f82aa..e8cae1ca5 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -17,24 +17,6 @@
{%- endmacro %}
{%- macro engine_time(engine_name, css_align_class) -%}
-<td class="{{ css_align_class }} {{ 'danger' if stats[engine_name]['warn_time'] else '' }}">
- {%- if stats[engine_name].time != None -%}
- <span aria-labelledby="{{engine_name}}_time">
- {%- if stats[engine_name]['warn_time'] -%}
- {{icon('exclamation-sign')}}
- {%- endif -%}
- {{- stats[engine_name].time -}}
- </span>{{- "" -}}
- <div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_time">{{- "" -}}
- <p>{{ _('Median') }}: {{ stats[engine_name].time }}</p>{{- "" -}}
- <p>{{ _('P80') }}: {{ stats[engine_name].rate80 }}</p>{{- "" -}}
- <p>{{ _('P95') }}: {{ stats[engine_name].rate95 }}</p>{{- "" -}}
- </div>
- {%- endif -%}
-</td>
-{%- endmacro -%}
-
-{%- macro engine_time(engine_name, css_align_class) -%}
<td class="{{ label }}" style="padding: 2px">{{- "" -}}
{%- if stats[engine_name].time != None -%}
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}