base.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {% from 'oscar/macros.html' import icon %}
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"{% if rtl %} dir="rtl"{% endif %}>
  4. <head>
  5. <meta charset="UTF-8" />
  6. <meta name="description" content="searx - a privacy-respecting, hackable metasearch engine" />
  7. <meta name="keywords" content="searx, search, search engine, metasearch, meta search" />
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="generator" content="searx/{{ searx_version }}">
  10. <meta name="referrer" content="no-referrer">
  11. <meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
  12. {% block meta %}{% endblock %}
  13. <title>{% block title %}{% endblock %}{{ instance_name }}</title>
  14. <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
  15. {% if preferences.get_value('oscar-style') -%}
  16. {{' '}}<link rel="stylesheet" href="{{ url_for('static', filename='css/'+preferences.get_value('oscar-style')+'.min.css') }}" type="text/css" />
  17. {%- else -%}
  18. {{' '}}<link rel="stylesheet" href="{{ url_for('static', filename='css/logicodev.min.css') }}" type="text/css" />
  19. {%- endif %}
  20. <link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.min.css') }}" type="text/css" />
  21. {%- for css in styles %}
  22. <link rel="stylesheet" href="{{ url_for('static', filename=css) }}" type="text/css" />
  23. {% endfor %}
  24. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  25. <!--[if lt IE 9]>
  26. <script src="{{ url_for('static', filename='js/html5shiv.min.js') }}"></script>
  27. <script src="{{ url_for('static', filename='js/respond.min.js') }}"></script>
  28. <![endif]-->
  29. <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" />
  30. {% block styles %}
  31. {% endblock %}
  32. {% block head %}
  33. {% endblock %}
  34. <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
  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. {% include 'oscar/navbar.html' %}
  46. <div class="container">
  47. {% if errors %}
  48. <div class="alert alert-danger fade in" role="alert">
  49. <button class="close" data-dismiss="alert" type="button">
  50. <span aria-hidden="true">×</span>
  51. <span class="sr-only">{{ _('Close') }}</span>
  52. </button>
  53. <strong class="lead">{{ icon('info-sign') }} {{ _('Error!') }}</strong>
  54. <ul>
  55. {% for message in errors %}
  56. <li>{{ message }}</li>
  57. {% endfor %}
  58. </ul>
  59. </div>
  60. {% endif %}
  61. {% block site_alert_error %}
  62. {% endblock %}
  63. {% block site_alert_warning %}
  64. {% endblock %}
  65. {% block site_alert_info %}
  66. {% endblock %}
  67. {% block site_alert_success %}
  68. {% endblock %}
  69. {% block content %}
  70. {% endblock %}
  71. </div>
  72. <div class="footer">
  73. <div class="container">
  74. {% block footer %}
  75. {% endblock %}
  76. <p class="text-muted">
  77. <small>
  78. {{ _('Powered by') }} <a href="{{ brand.DOCS_URL }}">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
  79. <a href="{{ brand.GIT_URL }}">{{ _('Source code') }}</a> |
  80. <a href="{{ brand.ISSUE_URL }}">{{ _('Issue tracker') }}</a> |
  81. <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>
  82. </small>
  83. </p>
  84. </div>
  85. </div>
  86. <script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"></script>
  87. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  88. {% if autocomplete %} <script src="{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"></script>{% endif %}
  89. <script src="{{ url_for('static', filename='js/require-2.1.15.min.js') }}"></script>
  90. <script src="{{ url_for('static', filename='js/searx.min.js') }}"
  91. data-method="{{ method or 'POST' }}"
  92. data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}"></script>
  93. {% for script in scripts %}
  94. {{""}}<script src="{{ url_for('static', filename=script) }}"></script>
  95. {% endfor %}
  96. <noscript>
  97. <style>
  98. .glyphicon { display: none; }
  99. </style>
  100. </noscript>
  101. </body>
  102. </html>