base.html 3.9 KB

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