logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

preferences.html (5583B)


  1. {% extends "legacy/base.html" %}
  2. {% block head %} {% endblock %}
  3. {% block content %}
  4. <div class="row">
  5. <h2>{{ _('Preferences') }}</h2>
  6. <form method="post" action="{{ url_for('preferences') }}" id="search_form">
  7. <fieldset>
  8. <legend>{{ _('Default categories') }}</legend>
  9. {% set display_tooltip = false %}
  10. {% include 'legacy/categories.html' %}
  11. </fieldset>
  12. <fieldset>
  13. <legend>{{ _('Search language') }}</legend>
  14. <p>
  15. <select name='language'>
  16. {% for lang_id,lang_name,country_name,english_name in language_codes | sort(attribute=1) %}
  17. <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} {% if country_name %}({{ country_name }}) {% endif %}- {{ lang_id }}</option>
  18. {% endfor %}
  19. </select>
  20. </p>
  21. </fieldset>
  22. <fieldset>
  23. <legend>{{ _('Interface language') }}</legend>
  24. <p>
  25. <select name='locale'>
  26. {% for locale_id,locale_name in locales.items() | sort %}
  27. <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
  28. {% endfor %}
  29. </select>
  30. </p>
  31. </fieldset>
  32. <fieldset>
  33. <legend>{{ _('Autocomplete') }}</legend>
  34. <p>
  35. <select name="autocomplete">
  36. <option value=""> - </option>
  37. {% for backend in autocomplete_backends %}
  38. <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
  39. {% endfor %}
  40. </select>
  41. </p>
  42. </fieldset>
  43. <fieldset>
  44. <legend>{{ _('Image proxy') }}</legend>
  45. <p>
  46. <select name='image_proxy'>
  47. <option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
  48. <option value="" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
  49. </select>
  50. </p>
  51. </fieldset>
  52. <fieldset>
  53. <legend>{{ _('Method') }}</legend>
  54. <p>
  55. <select name='method'>
  56. <option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
  57. <option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
  58. </select>
  59. </p>
  60. </fieldset>
  61. <fieldset>
  62. <legend>{{ _('SafeSearch') }}</legend>
  63. <p>
  64. <select name='safesearch'>
  65. <option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option>
  66. <option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option>
  67. <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option>
  68. </select>
  69. </p>
  70. </fieldset>
  71. <fieldset>
  72. <legend>{{ _('Themes') }}</legend>
  73. <p>
  74. <select name="theme">
  75. {% for name in themes %}
  76. <option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
  77. {% endfor %}
  78. </select>
  79. </p>
  80. </fieldset>
  81. <fieldset>
  82. <legend>{{ _('Results on new tabs') }}</legend>
  83. <p>
  84. <select name='results_on_new_tab'>
  85. <option value="1" {% if results_on_new_tab %}selected="selected"{% endif %}>{{ _('On') }}</option>
  86. <option value="0" {% if not results_on_new_tab %}selected="selected"{% endif %}>{{ _('Off')}}</option>
  87. </select>
  88. </p>
  89. </fieldset>
  90. <fieldset>
  91. <legend>{{ _('Currently used search engines') }}</legend>
  92. <table>
  93. <tr>
  94. <th>{{ _('Engine name') }}</th>
  95. <th>{{ _('Category') }}</th>
  96. <th>{{ _('Allow') }} / {{ _('Block') }}</th>
  97. </tr>
  98. {% for categ in all_categories %}
  99. {% for search_engine in engines_by_category[categ] %}
  100. {% if not search_engine.private %}
  101. <tr>
  102. <td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})&lrm;</td>
  103. <td>{{ _(categ) }}</td>
  104. <td class="engine_checkbox">
  105. <input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in disabled_engines %} checked="checked"{% endif %} />
  106. <label class="allow" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
  107. <label class="deny" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label>
  108. </td>
  109. </tr>
  110. {% endif %}
  111. {% endfor %}
  112. {% endfor %}
  113. </table>
  114. </fieldset>
  115. <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
  116. <br />
  117. {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
  118. </p>
  119. <input type="submit" value="{{ _('save') }}" />
  120. <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('clear_cookies') }}">{{ _('Reset defaults') }}</a></div>
  121. <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
  122. </form>
  123. </div>
  124. {% endblock %}