base.html 3.8 KB

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