base.html 3.5 KB

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