preferences.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  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. <option value="auto" {% if current_language == 'auto' %}selected="selected"{% endif %}>{{ _('Auto-detect') }}</option>
  110. {%- for lang_id,lang_name,country_name,english_name,flag in language_codes | sort(attribute=1) -%}
  111. <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>
  112. {%- endfor -%}
  113. </select>{{- '' -}}
  114. </p>
  115. <div class="description" id="desc_language">
  116. {{- _('What language do you prefer for search?') }} {{ _('Choose Auto-detect to let SearXNG detect the language of your query.') -}}
  117. </div>
  118. </fieldset>
  119. {% endif %}
  120. {% if 'autocomplete' not in locked_preferences %}
  121. <fieldset>
  122. <legend id="pref_autocomplete">{{ _('Autocomplete') }}</legend>
  123. <p class="value">
  124. <select name="autocomplete" aria-labelledby="pref_autocomplete">
  125. <option value=""> - </option>
  126. {%- for backend in autocomplete_backends -%}
  127. <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
  128. {%- endfor -%}
  129. </select>
  130. </p>
  131. <div class="description">{{ _('Find stuff as you type') }}</div>
  132. </fieldset>
  133. {% endif %}
  134. {% if 'safesearch' not in locked_preferences %}
  135. <fieldset>
  136. <legend id="pref_safesearch">{{ _('SafeSearch') }}</legend>
  137. <p class="value">
  138. <select name='safesearch' aria-labelledby="pref_safesearch">
  139. <option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option>
  140. <option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option>
  141. <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option>
  142. </select>
  143. </p>
  144. <p class="description">{{ _('Filter content') }}</p>
  145. </fieldset>
  146. {% endif %}
  147. {{ plugin_preferences('general') }}
  148. {% if 'doi_resolver' not in locked_preferences %}
  149. <fieldset>
  150. <legend id="pref_doi_resolver">{{ _('Open Access DOI resolver') }}</legend>
  151. <p class="value">
  152. <select id='doi_resolver' name='doi_resolver' aria-labelledby="pref_doi_resolver">
  153. {%- for doi_resolver_name,doi_resolver_url in doi_resolvers.items() -%}
  154. <option value="{{ doi_resolver_name }}" {% if doi_resolver_url == current_doi_resolver %}selected="selected"{% endif %}>
  155. {{- doi_resolver_name }} - {{ doi_resolver_url -}}
  156. </option>
  157. {%- endfor -%}
  158. </select>
  159. </p>
  160. <div class="description"><!-- {{ _('Redirect to open-access versions of publications when available (plugin required)') }} --></div>
  161. </fieldset>
  162. {% endif %}
  163. <fieldset>
  164. <legend id="pref_tokens">{{ _('Engine tokens') }}</legend>
  165. <p class="value">
  166. <input name="tokens" aria-labelledby="pref_tokens" type="text" autocomplete="off" spellcheck="false" autocorrect="off" value='{{ preferences.tokens.get_value() }}'/>
  167. </p>
  168. <p class="description">{{ _('Access tokens for private engines') }}</p>
  169. </fieldset>
  170. {{ tab_footer() }}
  171. {{ tab_header('maintab', 'ui', _('User interface')) }}
  172. {% if 'locale' not in locked_preferences %}
  173. <fieldset>
  174. <legend id="pref_locale">{{ _('Interface language') }}</legend>
  175. <p class="value">
  176. <select name='locale' aria-labelledby="pref_locale">
  177. {%- for locale_id,locale_name in locales.items() | sort -%}
  178. <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
  179. {%- endfor -%}
  180. </select>
  181. </p>
  182. <div class="description">{{ _('Change the language of the layout') }}</div>
  183. </fieldset>
  184. {% endif %}
  185. {% if 'theme' not in locked_preferences %}
  186. <fieldset>
  187. <legend id="pref_theme">{{ _('Theme') }}</legend>
  188. <p class="value">
  189. <select name="theme" aria-labelledby="pref_theme">
  190. {%- for name in themes -%}
  191. <option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
  192. {%- endfor -%}
  193. </select>
  194. </p>
  195. <div class="description">{{ _('Change SearXNG layout') }}</div>
  196. </fieldset>
  197. <fieldset>
  198. <legend id="pref_simple_style">{{ _('Theme style') }}</legend>
  199. <p class="value">
  200. <select name="simple_style" aria-labelledby="pref_simple_style">
  201. {%- for name in ['auto', 'light', 'dark'] -%}
  202. <option value="{{ name }}" {% if name == preferences.get_value('simple_style') %}selected="selected"{% endif %}>{{ _(name) }}</option>
  203. {%- endfor -%}
  204. </select>
  205. </p>
  206. <div class="description">{{ _('Choose auto to follow your browser settings') }}</div>
  207. </fieldset>
  208. <fieldset>
  209. <legend id="pref_center_alignment">{{ _('Center Alignment') }}</legend>
  210. <p class="value">
  211. <select name="center_alignment" aria-labelledby="pref_center_alignment">
  212. <option value="1" {% if preferences.get_value('center_alignment') %}selected="selected"{% endif %}>{{ _('On') }}</option>
  213. <option value="0" {% if not preferences.get_value('center_alignment') %}selected="selected"{% endif %}>{{ _('Off')}}</option>
  214. </select>
  215. </p>
  216. <div class="description">{{ _('Displays results in the center of the page (Oscar layout).') }}</div>
  217. </fieldset>
  218. {% endif %}
  219. {% if 'results_on_new_tab' not in locked_preferences %}
  220. <fieldset>
  221. <legend id="pref_results_on_new_tab">{{ _('Results on new tabs') }}</legend>
  222. <p class="value">
  223. <select name='results_on_new_tab' aria-labelledby="pref_results_on_new_tab">
  224. <option value="1" {% if results_on_new_tab %}selected="selected"{% endif %}>{{ _('On') }}</option>
  225. <option value="0" {% if not results_on_new_tab %}selected="selected"{% endif %}>{{ _('Off')}}</option>
  226. </select>
  227. </p>
  228. <div class="description">{{_('Open result links on new browser tabs') }}</div>
  229. </fieldset>
  230. {% endif %}
  231. {% if 'infinite_scroll' not in locked_preferences %}
  232. <fieldset>
  233. <legend>{{ _('Infinite scroll') }}</legend>
  234. <p class="value">
  235. <select name='infinite_scroll'>
  236. <option value="1" {% if infinite_scroll %}selected="selected"{% endif %}>{{ _('On') }}</option>
  237. <option value="0" {% if not infinite_scroll %}selected="selected"{% endif %}>{{ _('Off')}}</option>
  238. </select>
  239. </p>
  240. <div class="description">{{ _('Automatically load next page when scrolling to bottom of current page') }}</div>
  241. </fieldset>
  242. {% endif %}
  243. {{ plugin_preferences('ui') }}
  244. {{ tab_footer() }}
  245. {{ tab_header('maintab', 'privacy', _('Privacy')) }}
  246. {% if 'method' not in locked_preferences %}
  247. <fieldset>
  248. <legend id="pref_method">{{ _('HTTP Method') }}</legend>
  249. <p class="value">
  250. <select name='method' aria-labelledby="pref_method">
  251. <option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
  252. <option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
  253. </select>
  254. </p>
  255. <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>
  256. </fieldset>
  257. {% endif %}
  258. {% if 'image_proxy' not in locked_preferences %}
  259. <fieldset>
  260. <legend id="pref_image_proxy">{{ _('Image proxy') }}</legend>
  261. <p class="value">
  262. <select name='image_proxy' aria-labelledby="pref_image_proxy">
  263. <option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
  264. <option value="0" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
  265. </select>
  266. </p>
  267. <div class="description">{{ _('Proxying image results through SearXNG') }}</div>
  268. </fieldset>
  269. {% endif %}
  270. {% if 'query_in_title' not in locked_preferences %}
  271. <fieldset>
  272. <legend id="pref_query_in_title">{{ _("Query in the page's title") }}</legend>
  273. <p class="value">
  274. <select name='query_in_title' aria-labelledby="pref_query_in_title">
  275. <option value="1" {% if query_in_title %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
  276. <option value="0" {% if not query_in_title %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
  277. </select>
  278. </p>
  279. <div class="description">{{ _("When enabled, the result page's title contains your query. Your browser can record this title") }}</div>
  280. </fieldset>
  281. {% endif %}
  282. {{ plugin_preferences('privacy') }}
  283. {{ tab_footer() }}
  284. {{ tab_header('maintab', 'engines', _('Engines')) }}
  285. <p>{{ _('Currently used search engines') }}</p>
  286. {{ tabs_open() }}
  287. {% set ns = namespace(checked=true) %}
  288. {% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
  289. {{ tab_header('enginetab', 'category' + categ, _(categ), ns.checked )}}
  290. {% set ns.checked = false %}
  291. {% if categ == OTHER_CATEGORY %}
  292. <p>{{_('This tab does not show up for search results, but you can search the engines listed here via bangs.')}}</p>
  293. {% endif %}
  294. <div class="scrollx">
  295. <table class="striped table_engines">
  296. <tr>{{- "" -}}
  297. <th class="engine_checkbox">{{ _("Allow") }}</th>{{- "" -}}
  298. <th class="name">{{ _("Engine name") }}</th>{{- "" -}}
  299. <th class="shortcut">{{ _("Shortcut") }}</th>{{- "" -}}
  300. <th>{{ _("Supports selected language") }}</th>{{- "" -}}
  301. <th>{{ _("SafeSearch") }}</th>{{- "" -}}
  302. <th>{{ _("Time range") }}</th>{{- "" -}}
  303. {%- if enable_metrics %}<th>{{ _("Response time") }}</th>{% endif -%}
  304. <th>{{ _("Max time") }}</th>{{- "" -}}
  305. {%- if enable_metrics %}<th>{{ _("Reliability") }}</th>{% endif -%}
  306. </tr>
  307. {% for group, engines in engines_by_category[categ] | group_engines_in_tab %}
  308. {% if loop.length > 1 %}
  309. <tr><th colspan="9" class="engine-group">{{_(group)}}</th></tr>
  310. {% endif %}
  311. {% for search_engine in engines %}
  312. {% if not search_engine.private %}
  313. {% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %}
  314. <tr>{{- "" -}}
  315. <td>{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}</td>{{- "" -}}
  316. <th class="name" data-engine-name="{{ search_engine.name }}">{% if search_engine.enable_http %}{{ icon_big('warning', 'No HTTPS') }}{% endif -%}
  317. <label for="{{ engine_id }}">
  318. {{- search_engine.name -}}
  319. {%- if search_engine.about and search_engine.about.language -%}
  320. ({{search_engine.about.language | upper}})
  321. {%- endif -%}
  322. </label>
  323. {{- engine_about(search_engine) -}}
  324. </th>{{- "" -}}
  325. <td class="shortcut">{{ shortcuts[search_engine.name] }}</td>{{- "" -}}
  326. <td>{{ checkbox(None, supports[search_engine.name]['supports_selected_language'], true) }}</td>{{- "" -}}
  327. <td>{{ checkbox(None, supports[search_engine.name]['safesearch'], true) }}</td>{{- "" -}}
  328. <td>{{ checkbox(None, supports[search_engine.name]['time_range_support'], true) }}</td>{{- "" -}}
  329. {%- if enable_metrics %}{{- engine_time(search_engine.name) -}}{% endif -%}
  330. <td class="{{ 'danger' if stats[search_engine.name]['warn_timeout'] else '' }}">{{ search_engine.timeout }}</td>{{- "" -}}
  331. {%- if enable_metrics %}{{ engine_reliability(search_engine.name) -}}{% endif -%}
  332. </tr>
  333. {% endif %}
  334. {% endfor %}
  335. {% endfor %}
  336. </table>
  337. </div>
  338. {{ tab_footer() }}
  339. {% endfor %}
  340. {{ tabs_close() }}
  341. {{ tab_footer() }}
  342. {{ tab_header('maintab', 'query', _('Special Queries')) }}
  343. {% if answerers %}
  344. <div class="scrollx">
  345. <table class="striped">
  346. <tr>
  347. <th>{{ _('Allow') }}</th>
  348. <th>{{ _('Keywords') }}</th>
  349. <th>{{ _('Name') }}</th>
  350. <th>{{ _('Description') }}</th>
  351. <th>{{ _('Examples') }}</th>
  352. </tr>
  353. <td></td>
  354. <th scope="colgroup" colspan="4">{{ _("This is the list of SearXNG's instant answering modules.") }}</th>
  355. {% for answerer in answerers %}
  356. <tr>
  357. <td></td>
  358. <td>{{ answerer.keywords|join(', ') }}</td>
  359. <td>{{ answerer.info.name }}</td>
  360. <td>{{ answerer.info.description }}</td>
  361. <td>{{ answerer.info.examples|join(', ') }}</td>
  362. </tr>
  363. {% endfor %}
  364. <td></td>
  365. <th scope="colgroup" colspan="4">{{ _('This is the list of plugins.') }}</th>
  366. {%- for plugin in plugins -%}
  367. {%- if plugin.preference_section == 'query' -%}
  368. <tr>
  369. <td>{{- checkbox_onoff('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}</td>
  370. <td>{{ plugin.query_keywords|join(', ') }}</td>
  371. <td>{{ _(plugin.name) }}</td>
  372. <td>{{ _(plugin.description) }}</td>
  373. <td>{{ plugin.query_examples }}</td>
  374. </tr>
  375. {%- endif -%}
  376. {%- endfor -%}
  377. </table>
  378. </div>
  379. {% endif %}
  380. {{ tab_footer() }}
  381. {{ tab_header('maintab', 'cookies', _('Cookies')) }}
  382. <p class="text-muted">{{- "" -}}
  383. {{- _('This is the list of cookies and their values SearXNG is storing on your computer.') }}<br />{{- "" -}}
  384. {{- _('With that list, you can assess SearXNG transparency.') }}<br />{{- "" -}}
  385. </p>
  386. {% if cookies %}
  387. <table class="cookies">
  388. <tr>{{- "" -}}
  389. <th>{{ _('Cookie name') }}</th>{{- "" -}}
  390. <th>{{ _('Value') }}</th>{{- "" -}}
  391. </tr>
  392. {% for cookie in cookies %}
  393. <tr>{{- "" -}}
  394. <td>{{ cookie }}</td>{{- "" -}}
  395. <td>{{ cookies[cookie] }}</td>{{- "" -}}
  396. </tr>
  397. {% endfor %}
  398. </table>
  399. {% else %}
  400. {% include 'simple/messages/no_cookies.html' %}
  401. {% endif %}
  402. <h4>{{ _('Search URL of the currently saved preferences') }} :</h4>
  403. <div class="selectable_url">
  404. <pre>{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&amp;q=%s{% endraw %}</pre>
  405. </div>
  406. <p class="small_font">{{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}</p>
  407. <h4>{{ _('URL to restore your preferences in another browser') }} :</h4>
  408. <div class="selectable_url">
  409. <pre>{{ url_for('preferences', _external=True) }}?preferences={{ preferences_url_params|e }}&amp;save=1</pre>
  410. </div>
  411. <p class="small_font">{{ _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') }}</p>
  412. {{ tab_footer() }}
  413. {{ tabs_close() }}
  414. <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
  415. <br />
  416. {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
  417. </p>
  418. <input type="submit" value="{{ _('Save') }}" />
  419. <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('clear_cookies') }}">{{ _('Reset defaults') }}</a></div>
  420. <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('index') }}">{{ _('Back') }}</a></div>
  421. </form>
  422. {% endblock %}