preferences.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. {% from 'simple/macros.html' import tabs_open, tabs_close, tab_header, tab_footer, checkbox_onoff, checkbox %}
  2. {% from 'simple/icons.html' import icon_big %}
  3. {% extends "simple/page_with_header.html" %}
  4. {%- macro plugin_preferences(section) -%}
  5. {%- for plugin in plugins -%}
  6. {%- if plugin.preference_section == section -%}
  7. <fieldset>{{- '' -}}
  8. <legend>{{ _(plugin.name) }}</legend>{{- '' -}}
  9. <div class="value">
  10. {{- checkbox_onoff('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}
  11. </div>{{- '' -}}
  12. <div class="description">
  13. {{- _(plugin.description) -}}
  14. </div>{{- '' -}}
  15. </fieldset>
  16. {%- endif -%}
  17. {%- endfor -%}
  18. {%- endmacro -%}
  19. {% macro engine_about(search_engine) -%}
  20. {% if search_engine.about is defined %}
  21. {% set about = search_engine.about %}
  22. <div class="engine-tooltip" role="tooltip">{{- "" -}}
  23. <p class="engine-description"></p>{{- "" -}}
  24. <p><a href="{{about.website}}" rel="noreferrer">{{about.website}}</a></p>
  25. {%- if about.wikidata_id -%}<p><a href="https://www.wikidata.org/wiki/{{about.wikidata_id}}" rel="noreferrer">wikidata.org/wiki/{{about.wikidata_id}}</a></p>{%- endif -%}
  26. {%- if search_engine.enable_http %}<p>{{ icon_big('exclamation-sign', 'No HTTPS') }}{{ _('No HTTPS')}}</p>{% endif -%}
  27. {%- if reliabilities.get(search_engine.name, {}).errors or reliabilities.get(search_engine.name, {}).checker -%}
  28. <a href="{{ url_for('stats', engine=search_engine.name|e) }}" title="{{ _('View error logs and submit a bug report') }}">
  29. {{ _('View error logs and submit a bug report') -}}
  30. </a>
  31. {%- endif -%}
  32. </div>
  33. {%- endif -%}
  34. {%- endmacro %}
  35. {%- macro engine_time(engine_name) -%}
  36. <td class="{{ label }}">{{- "" -}}
  37. {%- if stats[engine_name].time != None -%}
  38. <span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}
  39. <span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
  40. {%- if max_rate95 is not none and max_rate95 > 0 -%}
  41. <div class="stacked-bar-chart-median bar{{ (100 * (stats[engine_name].time / max_rate95))|round }}"></div>{{- "" -}}
  42. <div class="stacked-bar-chart-rate80 bar{{ (100 * ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95))|round }}"></div>{{- "" -}}
  43. <div class="stacked-bar-chart-rate95 bar{{ (100 * ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95))|round }}"></div>{{- "" -}}
  44. <span class="stacked-bar-chart-rate100"></span>
  45. {%- endif -%}
  46. </span>{{- "" -}}
  47. <div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_graph">{{- "" -}}
  48. <p>{{ _('Median') }}: {{ stats[engine_name].time }}</p>{{- "" -}}
  49. <p>{{ _('P80') }}: {{ stats[engine_name].rate80 }}</p>{{- "" -}}
  50. <p>{{ _('P95') }}: {{ stats[engine_name].rate95 }}</p>{{- "" -}}
  51. </div>
  52. {%- endif -%}
  53. </td>
  54. {%- endmacro -%}
  55. {%- macro engine_reliability(engine_name) -%}
  56. {% set r = reliabilities.get(engine_name, {}).get('reliablity', None) %}
  57. {% set checker_result = reliabilities.get(engine_name, {}).get('checker', []) %}
  58. {% set errors = reliabilities.get(engine_name, {}).get('errors', []) %}
  59. {% if r != None %}
  60. {% if r <= 50 %}{% set label = 'danger' %}
  61. {% elif r < 80 %}{% set label = 'warning' %}
  62. {% elif r < 90 %}{% set label = '' %}
  63. {% else %}{% set label = 'success' %}
  64. {% endif %}
  65. {% else %}
  66. {% set r = '' %}
  67. {% endif %}
  68. {% if checker_result or errors %}
  69. <td class="{{ label }} column-reliability">{{- "" -}}
  70. <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}}
  71. <span aria-labelledby="{{engine_name}}_reliability">
  72. {{ icon_big('warning', 'The engine is not reliabled') }} {{ r -}}
  73. </span>{{- "" -}}
  74. </a>{{- "" -}}
  75. <div class="engine-tooltip" role="tooltip" id="{{engine_name}}_reliability">
  76. {%- if checker_result -%}
  77. <p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p>
  78. {%- endif -%}
  79. {%- if errors %}<p>{{ _('Errors:') }}</p>{% endif -%}
  80. {%- for error in errors -%}
  81. <p>{{ error }} </p>{{- "" -}}
  82. {%- endfor -%}
  83. </div>{{- "" -}}
  84. </td>
  85. {%- else -%}
  86. <td class="{{ label }}">{% if r %}<span>{{ r }}</span>{% endif %}</td>
  87. {%- endif -%}
  88. {%- endmacro -%}
  89. {% block head %} {% endblock %}
  90. {% block linkto_preferences %}{% endblock %}
  91. {% block content %}
  92. <h1>{{ _('Preferences') }}</h1>
  93. <form id="search_form" method="post" action="{{ url_for('preferences') }}" autocomplete="off" class="reversed-checkbox">
  94. {{ tabs_open() }}
  95. {{ tab_header('maintab', 'general', _('General'), True) }}
  96. {% if 'categories' not in locked_preferences %}
  97. <fieldset>
  98. <legend>{{ _('Default categories') }}</legend>
  99. {% set display_tooltip = false %}
  100. {% include 'simple/categories.html' %}
  101. </fieldset>
  102. {% endif %}
  103. {% if 'language' not in locked_preferences %}
  104. <fieldset>
  105. <legend id="pref_language">{{ _('Search language') }}</legend>
  106. <p class="value">{{- '' -}}
  107. <select name='language' aria-labelledby="pref_language" aria-describedby="desc_language">{{- '' -}}
  108. <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Default language') }}</option>
  109. {%- for lang_id,lang_name,country_name,english_name,flag in language_codes | sort(attribute=1) -%}
  110. <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{% if flag %}{{ flag }} {% endif%} {{- lang_name }} {% if country_name %}({{ country_name }}) {% endif %}</option>
  111. {%- endfor -%}
  112. </select>{{- '' -}}
  113. </p>
  114. <div class="description" id="desc_language">{{ _('What language do you prefer for search?') }}</div>
  115. </fieldset>
  116. {% endif %}
  117. {% if 'autocomplete' not in locked_preferences %}
  118. <fieldset>
  119. <legend id="pref_autocomplete">{{ _('Autocomplete') }}</legend>
  120. <p class="value">
  121. <select name="autocomplete" aria-labelledby="pref_autocomplete">
  122. <option value=""> - </option>
  123. {%- for backend in autocomplete_backends -%}
  124. <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
  125. {%- endfor -%}
  126. </select>
  127. </p>
  128. <div class="description">{{ _('Find stuff as you type') }}</div>
  129. </fieldset>
  130. {% endif %}
  131. {% if 'safesearch' not in locked_preferences %}
  132. <fieldset>
  133. <legend id="pref_safesearch">{{ _('SafeSearch') }}</legend>
  134. <p class="value">
  135. <select name='safesearch' aria-labelledby="pref_safesearch">
  136. <option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option>
  137. <option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option>
  138. <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option>
  139. </select>
  140. </p>
  141. <p class="description">{{ _('Filter content') }}</p>
  142. </fieldset>
  143. {% endif %}
  144. {{ plugin_preferences('general') }}
  145. {% if 'doi_resolver' not in locked_preferences %}
  146. <fieldset>
  147. <legend id="pref_doi_resolver">{{ _('Open Access DOI resolver') }}</legend>
  148. <p class="value">
  149. <select id='doi_resolver' name='doi_resolver' aria-labelledby="pref_doi_resolver">
  150. {%- for doi_resolver_name,doi_resolver_url in doi_resolvers.items() -%}
  151. <option value="{{ doi_resolver_name }}" {% if doi_resolver_url == current_doi_resolver %}selected="selected"{% endif %}>
  152. {{- doi_resolver_name }} - {{ doi_resolver_url -}}
  153. </option>
  154. {%- endfor -%}
  155. </select>
  156. </p>
  157. <div class="description"><!-- {{ _('Redirect to open-access versions of publications when available (plugin required)') }} --></div>
  158. </fieldset>
  159. {% endif %}
  160. <fieldset>
  161. <legend id="pref_tokens">{{ _('Engine tokens') }}</legend>
  162. <p class="value">
  163. <input name="tokens" aria-labelledby="pref_tokens" type="text" autocomplete="off" spellcheck="false" autocorrect="off" value='{{ preferences.tokens.get_value() }}'/>
  164. </p>
  165. <p class="description">{{ _('Access tokens for private engines') }}</p>
  166. </fieldset>
  167. {{ tab_footer() }}
  168. {{ tab_header('maintab', 'ui', _('User interface')) }}
  169. {% if 'locale' not in locked_preferences %}
  170. <fieldset>
  171. <legend id="pref_locale">{{ _('Interface language') }}</legend>
  172. <p class="value">
  173. <select name='locale' aria-labelledby="pref_locale">
  174. {%- for locale_id,locale_name in locales.items() | sort -%}
  175. <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
  176. {%- endfor -%}
  177. </select>
  178. </p>
  179. <div class="description">{{ _('Change the language of the layout') }}</div>
  180. </fieldset>
  181. {% endif %}
  182. {% if 'theme' not in locked_preferences %}
  183. <fieldset>
  184. <legend id="pref_theme">{{ _('Theme') }}</legend>
  185. <p class="value">
  186. <select name="theme" aria-labelledby="pref_theme">
  187. {%- for name in themes -%}
  188. <option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
  189. {%- endfor -%}
  190. </select>
  191. </p>
  192. <div class="description">{{ _('Change SearXNG layout') }}</div>
  193. </fieldset>
  194. <fieldset>
  195. <legend id="pref_simple_style">{{ _('Theme style') }}</legend>
  196. <p class="value">
  197. <select name="simple_style" aria-labelledby="pref_simple_style">
  198. {%- for name in ['auto', 'light', 'dark'] -%}
  199. <option value="{{ name }}" {% if name == preferences.get_value('simple_style') %}selected="selected"{% endif %}>{{ _(name) }}</option>
  200. {%- endfor -%}
  201. </select>
  202. </p>
  203. <div class="description">{{ _('Choose auto to follow your browser settings') }}</div>
  204. </fieldset>
  205. <fieldset>
  206. <legend id="pref_center_alignment">{{ _('Center Alignment') }}</legend>
  207. <p class="value">
  208. <select name="center_alignment" aria-labelledby="pref_center_alignment">
  209. <option value="1" {% if preferences.get_value('center_alignment') %}selected="selected"{% endif %}>{{ _('On') }}</option>
  210. <option value="0" {% if not preferences.get_value('center_alignment') %}selected="selected"{% endif %}>{{ _('Off')}}</option>
  211. </select>
  212. </p>
  213. <div class="description">{{ _('Displays results in the center of the page (Oscar layout).') }}</div>
  214. </fieldset>
  215. {% endif %}
  216. {% if 'results_on_new_tab' not in locked_preferences %}
  217. <fieldset>
  218. <legend id="pref_results_on_new_tab">{{ _('Results on new tabs') }}</legend>
  219. <p class="value">
  220. <select name='results_on_new_tab' aria-labelledby="pref_results_on_new_tab">
  221. <option value="1" {% if results_on_new_tab %}selected="selected"{% endif %}>{{ _('On') }}</option>
  222. <option value="0" {% if not results_on_new_tab %}selected="selected"{% endif %}>{{ _('Off')}}</option>
  223. </select>
  224. </p>
  225. <div class="description">{{_('Open result links on new browser tabs') }}</div>
  226. </fieldset>
  227. {% endif %}
  228. {% if 'infinite_scroll' not in locked_preferences %}
  229. <fieldset>
  230. <legend>{{ _('Infinite scroll') }}</legend>
  231. <p class="value">
  232. <select name='infinite_scroll'>
  233. <option value="1" {% if infinite_scroll %}selected="selected"{% endif %}>{{ _('On') }}</option>
  234. <option value="0" {% if not infinite_scroll %}selected="selected"{% endif %}>{{ _('Off')}}</option>
  235. </select>
  236. </p>
  237. <div class="description">{{ _('Automatically load next page when scrolling to bottom of current page') }}</div>
  238. </fieldset>
  239. {% endif %}
  240. {{ plugin_preferences('ui') }}
  241. {{ tab_footer() }}
  242. {{ tab_header('maintab', 'privacy', _('Privacy')) }}
  243. {% if 'method' not in locked_preferences %}
  244. <fieldset>
  245. <legend id="pref_method">{{ _('HTTP Method') }}</legend>
  246. <p class="value">
  247. <select name='method' aria-labelledby="pref_method">
  248. <option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
  249. <option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
  250. </select>
  251. </p>
  252. <div class="description">{{ _('Change how forms are submitted, <a href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods" rel="external">learn more about request methods</a>') }}</div>
  253. </fieldset>
  254. {% endif %}
  255. {% if 'image_proxy' not in locked_preferences %}
  256. <fieldset>
  257. <legend id="pref_image_proxy">{{ _('Image proxy') }}</legend>
  258. <p class="value">
  259. <select name='image_proxy' aria-labelledby="pref_image_proxy">
  260. <option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
  261. <option value="0" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
  262. </select>
  263. </p>
  264. <div class="description">{{ _('Proxying image results through SearXNG') }}</div>
  265. </fieldset>
  266. {% endif %}
  267. {% if 'query_in_title' not in locked_preferences %}
  268. <fieldset>
  269. <legend id="pref_query_in_title">{{ _("Query in the page's title") }}</legend>
  270. <p class="value">
  271. <select name='query_in_title' aria-labelledby="pref_query_in_title">
  272. <option value="1" {% if query_in_title %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
  273. <option value="0" {% if not query_in_title %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
  274. </select>
  275. </p>
  276. <div class="description">{{ _("When enabled, the result page's title contains your query. Your browser can record this title") }}</div>
  277. </fieldset>
  278. {% endif %}
  279. {{ plugin_preferences('privacy') }}
  280. {{ tab_footer() }}
  281. {{ tab_header('maintab', 'engines', _('Engines')) }}
  282. <p>{{ _('Currently used search engines') }}</p>
  283. {{ tabs_open() }}
  284. {% set ns = namespace(checked=true) %}
  285. {% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
  286. {{ tab_header('enginetab', 'category' + categ, _(categ), ns.checked )}}
  287. {% set ns.checked = false %}
  288. {% if categ == OTHER_CATEGORY %}
  289. <p>{{_('This tab does not show up for search results, but you can search the engines listed here via bangs.')}}</p>
  290. {% endif %}
  291. <div class="scrollx">
  292. <table class="striped table_engines">
  293. <tr>{{- "" -}}
  294. <th class="engine_checkbox">{{ _("Allow") }}</th>{{- "" -}}
  295. <th class="name">{{ _("Engine name") }}</th>{{- "" -}}
  296. <th class="shortcut">{{ _("Shortcut") }}</th>{{- "" -}}
  297. <th>{{ _("Supports selected language") }}</th>{{- "" -}}
  298. <th>{{ _("SafeSearch") }}</th>{{- "" -}}
  299. <th>{{ _("Time range") }}</th>{{- "" -}}
  300. {%- if enable_metrics %}<th>{{ _("Response time") }}</th>{% endif -%}
  301. <th>{{ _("Max time") }}</th>{{- "" -}}
  302. {%- if enable_metrics %}<th>{{ _("Reliability") }}</th>{% endif -%}
  303. </tr>
  304. {% for group, engines in engines_by_category[categ] | group_engines_in_tab %}
  305. {% if loop.length > 1 %}
  306. <tr><th colspan="9" class="engine-group">{{_(group)}}</th></tr>
  307. {% endif %}
  308. {% for search_engine in engines %}
  309. {% if not search_engine.private %}
  310. {% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %}
  311. <tr>{{- "" -}}
  312. <td>{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}</td>{{- "" -}}
  313. <th class="name" data-engine-name="{{ search_engine.name }}">{% if search_engine.enable_http %}{{ icon_big('warning', 'No HTTPS') }}{% endif -%}
  314. <label for="{{ engine_id }}">
  315. {{- search_engine.name -}}
  316. {%- if search_engine.about and search_engine.about.language -%}
  317. ({{search_engine.about.language | upper}})
  318. {%- endif -%}
  319. </label>
  320. {{- engine_about(search_engine) -}}
  321. </th>{{- "" -}}
  322. <td class="shortcut">{{ shortcuts[search_engine.name] }}</td>{{- "" -}}
  323. <td>{{ checkbox(None, supports[search_engine.name]['supports_selected_language'], true) }}</td>{{- "" -}}
  324. <td>{{ checkbox(None, supports[search_engine.name]['safesearch'], true) }}</td>{{- "" -}}
  325. <td>{{ checkbox(None, supports[search_engine.name]['time_range_support'], true) }}</td>{{- "" -}}
  326. {%- if enable_metrics %}{{- engine_time(search_engine.name) -}}{% endif -%}
  327. <td class="{{ 'danger' if stats[search_engine.name]['warn_timeout'] else '' }}">{{ search_engine.timeout }}</td>{{- "" -}}
  328. {%- if enable_metrics %}{{ engine_reliability(search_engine.name) -}}{% endif -%}
  329. </tr>
  330. {% endif %}
  331. {% endfor %}
  332. {% endfor %}
  333. </table>
  334. </div>
  335. {{ tab_footer() }}
  336. {% endfor %}
  337. {{ tabs_close() }}
  338. {{ tab_footer() }}
  339. {{ tab_header('maintab', 'query', _('Special Queries')) }}
  340. {% if answerers %}
  341. <div class="scrollx">
  342. <table class="striped">
  343. <tr>
  344. <th>{{ _('Allow') }}</th>
  345. <th>{{ _('Keywords') }}</th>
  346. <th>{{ _('Name') }}</th>
  347. <th>{{ _('Description') }}</th>
  348. <th>{{ _('Examples') }}</th>
  349. </tr>
  350. <td></td>
  351. <th scope="colgroup" colspan="4">{{ _("This is the list of SearXNG's instant answering modules.") }}</th>
  352. {% for answerer in answerers %}
  353. <tr>
  354. <td></td>
  355. <td>{{ answerer.keywords|join(', ') }}</td>
  356. <td>{{ answerer.info.name }}</td>
  357. <td>{{ answerer.info.description }}</td>
  358. <td>{{ answerer.info.examples|join(', ') }}</td>
  359. </tr>
  360. {% endfor %}
  361. <td></td>
  362. <th scope="colgroup" colspan="4">{{ _('This is the list of plugins.') }}</th>
  363. {%- for plugin in plugins -%}
  364. {%- if plugin.preference_section == 'query' -%}
  365. <tr>
  366. <td>{{- checkbox_onoff('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}</td>
  367. <td>{{ plugin.query_keywords|join(', ') }}</td>
  368. <td>{{ _(plugin.name) }}</td>
  369. <td>{{ _(plugin.description) }}</td>
  370. <td>{{ plugin.query_examples }}</td>
  371. </tr>
  372. {%- endif -%}
  373. {%- endfor -%}
  374. </table>
  375. </div>
  376. {% endif %}
  377. {{ tab_footer() }}
  378. {{ tab_header('maintab', 'cookies', _('Cookies')) }}
  379. <p class="text-muted">{{- "" -}}
  380. {{- _('This is the list of cookies and their values SearXNG is storing on your computer.') }}<br />{{- "" -}}
  381. {{- _('With that list, you can assess SearXNG transparency.') }}<br />{{- "" -}}
  382. </p>
  383. {% if cookies %}
  384. <table class="cookies">
  385. <tr>{{- "" -}}
  386. <th>{{ _('Cookie name') }}</th>{{- "" -}}
  387. <th>{{ _('Value') }}</th>{{- "" -}}
  388. </tr>
  389. {% for cookie in cookies %}
  390. <tr>{{- "" -}}
  391. <td>{{ cookie }}</td>{{- "" -}}
  392. <td>{{ cookies[cookie] }}</td>{{- "" -}}
  393. </tr>
  394. {% endfor %}
  395. </table>
  396. {% else %}
  397. {% include 'simple/messages/no_cookies.html' %}
  398. {% endif %}
  399. <h4>{{ _('Search URL of the currently saved preferences') }} :</h4>
  400. <div class="selectable_url">
  401. <pre>{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&amp;q=%s{% endraw %}</pre>
  402. </div>
  403. <p class="small_font">{{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}</p>
  404. <h4>{{ _('URL to restore your preferences in another browser') }} :</h4>
  405. <div class="selectable_url">
  406. <pre>{{ url_for('preferences', _external=True) }}?preferences={{ preferences_url_params|e }}&amp;save=1</pre>
  407. </div>
  408. <p class="small_font">{{ _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') }}</p>
  409. {{ tab_footer() }}
  410. {{ tabs_close() }}
  411. <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
  412. <br />
  413. {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
  414. </p>
  415. <input type="submit" value="{{ _('Save') }}" />
  416. <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('clear_cookies') }}">{{ _('Reset defaults') }}</a></div>
  417. <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('index') }}">{{ _('Back') }}</a></div>
  418. </form>
  419. {% endblock %}