base.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="description" content="Searx - a privacy-respecting, hackable metasearch engine" />
  6. <meta name="keywords" content="searx, search, search engine, metasearch, meta search" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="generator" content="searx/{{ searx_version }}">
  9. <meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
  10. {% block meta %}{% endblock %}
  11. <title>{% block title %}{% endblock %}searx</title>
  12. {% if bootstrap_theme == 'default' %}
  13. <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
  14. {% else %}
  15. <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.' + bootstrap_theme + '.min.css') }}" type="text/css" />
  16. {% endif %}
  17. <link rel="stylesheet" href="{{ url_for('static', filename='css/oscar.min.css') }}" type="text/css" />
  18. <link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.min.css') }}" type="text/css" />
  19. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  20. <!--[if lt IE 9]>
  21. <script src="{{ url_for('static', filename='js/html5shiv.min.js') }}"></script>
  22. <script src="{{ url_for('static', filename='js/respond.min.js') }}"></script>
  23. <![endif]-->
  24. <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" />
  25. {% block styles %}
  26. {% endblock %}
  27. {% block head %}
  28. {% endblock %}
  29. <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
  30. <script type="text/javascript">
  31. searx = {};
  32. searx.method = "{{ method or 'POST' }}";
  33. searx.autocompleter = {% if autocomplete %}true{% else %}false{% endif %};
  34. </script>
  35. <noscript>
  36. <style type="text/css">
  37. .tab-content > .active_if_nojs, .active_if_nojs {display: block !important; visibility: visible !important;}
  38. .margin_top_if_nojs {margin-top: 20px;}
  39. .hide_if_nojs {display: none !important;overflow:none !important;}
  40. .disabled_if_nojs {pointer-events: none; cursor: default; text-decoration: line-through;}
  41. </style>
  42. </noscript>
  43. </head>
  44. <body>
  45. <div class="container">
  46. {% include 'oscar/navbar.html' %}
  47. {% block site_alert_error %}
  48. {% endblock %}
  49. {% block site_alert_warning %}
  50. {% endblock %}
  51. {% block site_alert_warning_nojs %}
  52. <noscript>
  53. {% include 'oscar/messages/js_disabled.html' %}
  54. </noscript>
  55. {% endblock %}
  56. {% block site_alert_info %}
  57. {% endblock %}
  58. {% block site_alert_success %}
  59. {% endblock %}
  60. {% block content %}
  61. {% endblock %}
  62. </div>
  63. <div class="footer">
  64. <div class="container">
  65. {% block footer %}
  66. {% endblock %}
  67. <p class="text-muted">{{ _('Powered by') }} <a href="https://github.com/asciimoo/searx">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}</p>
  68. </div>
  69. </div>
  70. <script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"></script>
  71. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  72. {% if autocomplete %}<script src="{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"></script>{% endif %}
  73. <script src="{{ url_for('static', filename='js/require-2.1.15.min.js') }}"></script>
  74. <script src="{{ url_for('static', filename='js/searx.min.js') }}"></script>
  75. </body>
  76. </html>