summaryrefslogtreecommitdiff
path: root/searx/templates/simple
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-11-27 13:42:08 +0100
committerBnyro <bnyro@tutanota.com>2024-12-01 13:08:50 +0100
commita7537a69357f961030ace8f23be945f1fbbbaf37 (patch)
treebfdb0b27eebc67c2fe3b5bc06d088af997691f8a /searx/templates/simple
parentcae07b9bf87f6f3745f4633e2193dcb5ecbba0fb (diff)
downloadsearxng-a7537a69357f961030ace8f23be945f1fbbbaf37.tar.gz
searxng-a7537a69357f961030ace8f23be945f1fbbbaf37.zip
[feat] search: add url formatting preference
Diffstat (limited to 'searx/templates/simple')
-rw-r--r--searx/templates/simple/preferences.html1
-rw-r--r--searx/templates/simple/preferences/urlformatting.html25
2 files changed, 26 insertions, 0 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index bc96e1198..665f2e638 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -204,6 +204,7 @@
{%- include 'simple/preferences/search_on_category_select.html' -%}
{%- endif -%}
{%- include 'simple/preferences/hotkeys.html' -%}
+ {%- include 'simple/preferences/urlformatting.html' -%}
{{- plugin_preferences('ui') -}}
{{- tab_footer() -}}
diff --git a/searx/templates/simple/preferences/urlformatting.html b/searx/templates/simple/preferences/urlformatting.html
new file mode 100644
index 000000000..ba11bdb63
--- /dev/null
+++ b/searx/templates/simple/preferences/urlformatting.html
@@ -0,0 +1,25 @@
+<fieldset>{{- '' -}}
+ <legend id="pref_url_formatting">{{- _('URL formatting') -}}</legend>{{- '' -}}
+ <div class="value">{{- '' -}}
+ <select name="url_formatting" aria-labelledby="pref_url_formatting">{{- '' -}}
+ <option value="pretty"
+ {%- if preferences.get_value('url_formatting') == 'pretty' %} selected="selected"
+ {%- endif -%}>
+ {{- _('Pretty') -}}
+ </option>{{- '' -}}
+ <option value="full"
+ {%- if preferences.get_value('url_formatting') == 'full' %} selected="selected"
+ {%- endif -%}>
+ {{- _('Full') -}}
+ </option>{{- '' -}}
+ <option value="host"
+ {%- if preferences.get_value('url_formatting') == 'host' %} selected="selected"
+ {%- endif -%}>
+ {{- _('Host') -}}
+ </option>{{- '' -}}
+ </select>{{- '' -}}
+ </div>{{- '' -}}
+ <div class="description">
+ {{- _('Change result URL formatting') -}}
+ </div>{{- '' -}}
+</fieldset>{{- '' -}}