base.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {% from 'oscar/macros.html' import icon %}
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ preferences.get_value('locale') }}" xml:lang="{{ preferences.get_value('locale') }}"{% 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=2.0, user-scalable=1" />
  12. {% block meta %}{% endblock %}
  13. <script src="{{ url_for('js_translations') }}"></script>
  14. <title>{% block title %}{% endblock %}{{ instance_name }}</title>
  15. <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
  16. {% if preferences.get_value('oscar-style') -%}
  17. {{' '}}<link rel="stylesheet" href="{{ url_for('static', filename='css/'+preferences.get_value('oscar-style')+'.min.css') }}" type="text/css" />
  18. {%- else -%}
  19. {{' '}}<link rel="stylesheet" href="{{ url_for('static', filename='css/logicodev.min.css') }}" type="text/css" />
  20. {%- endif %}
  21. <link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.min.css') }}" type="text/css" />
  22. {%- for css in styles %}
  23. <link rel="stylesheet" href="{{ url_for('static', filename=css) }}" type="text/css" />
  24. {% endfor %}
  25. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  26. <!--[if lt IE 9]>
  27. <script src="{{ url_for('static', filename='js/html5shiv.min.js') }}"></script>
  28. <script src="{{ url_for('static', filename='js/respond.min.js') }}"></script>
  29. <![endif]-->
  30. <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" />
  31. {% block styles %}
  32. {% endblock %}
  33. {% block head %}
  34. {% endblock %}
  35. <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/>
  36. <noscript>
  37. <style type="text/css">
  38. .tab-content > .active_if_nojs, .active_if_nojs {display: block !important; visibility: visible !important;}
  39. .margin_top_if_nojs {margin-top: 20px;}
  40. .hide_if_nojs {display: none !important;overflow: hidden !important;}
  41. .disabled_if_nojs {pointer-events: none; cursor: default; text-decoration: line-through;}
  42. </style>
  43. </noscript>
  44. </head>
  45. <body class="{{ endpoint }}_endpoint" >
  46. {% include 'oscar/navbar.html' %}
  47. <div class="container">
  48. {% if errors %}
  49. <div class="alert alert-danger fade in" role="alert">
  50. <button class="close" data-dismiss="alert" type="button">
  51. <span aria-hidden="true">×</span>
  52. <span class="sr-only">{{ _('Close') }}</span>
  53. </button>
  54. <strong class="lead">{{ icon('info-sign') }} {{ _('Error!') }}</strong>
  55. <ul>
  56. {% for message in errors %}
  57. <li>{{ message }}</li>
  58. {% endfor %}
  59. </ul>
  60. </div>
  61. {% endif %}
  62. {% block site_alert_error %}
  63. {% endblock %}
  64. {% block site_alert_warning %}
  65. {% endblock %}
  66. {% block site_alert_info %}
  67. {% endblock %}
  68. {% block site_alert_success %}
  69. {% endblock %}
  70. {% block content %}
  71. {% endblock %}
  72. </div>
  73. <div class="footer">
  74. <div class="container">
  75. {% block footer %}
  76. {% endblock %}
  77. <p class="text-muted">
  78. <small>
  79. {{ _('Powered by') }} <a href="{{ brand.DOCS_URL }}">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
  80. <a href="{{ brand.GIT_URL }}">{{ _('Source code') }}</a> |
  81. <a href="{{ brand.ISSUE_URL }}">{{ _('Issue tracker') }}</a> |
  82. <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>{% if brand.CONTACT_URL %} |
  83. <a href="{{ brand.CONTACT_URL }}">{{ _('Contact instance maintainer') }}</a>{% endif %}
  84. </small>
  85. </p>
  86. </div>
  87. </div>
  88. <script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"></script>
  89. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  90. {% if autocomplete %} <script src="{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"></script>{% endif %}
  91. <script src="{{ url_for('static', filename='js/require-2.1.15.min.js') }}"></script>
  92. <script src="{{ url_for('static', filename='js/searx.min.js') }}"
  93. data-method="{{ method or 'POST' }}"
  94. data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}"></script>
  95. {% for script in scripts %}
  96. {{""}}<script src="{{ url_for('static', filename=script) }}"></script>
  97. {% endfor %}
  98. <noscript>
  99. <style>
  100. .glyphicon { display: none; }
  101. </style>
  102. </noscript>
  103. </body>
  104. </html>