mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[feat] search: add url formatting preference
This commit is contained in:
parent
cae07b9bf8
commit
a7537a6935
8 changed files with 51 additions and 0 deletions
|
@ -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() -}}
|
||||
|
||||
|
|
25
searx/templates/simple/preferences/urlformatting.html
Normal file
25
searx/templates/simple/preferences/urlformatting.html
Normal file
|
@ -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>{{- '' -}}
|
Loading…
Add table
Add a link
Reference in a new issue